-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomp_prog_workshop_event.html
225 lines (192 loc) · 6.84 KB
/
comp_prog_workshop_event.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CP Workshop</title>
<meta name="description" content="Inspiration for Article Intro Effects" />
<meta name="keywords" content="title, header, effect, scroll, inspiration, medium, web design" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="assets/event_layout/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="assets/event_layout/css/demo.css" />
<link rel="stylesheet" type="text/css" href="assets/event_layout/css/component.css" />
<link rel="stylesheet" type="text/css" href="assets/event_layout/css/glow.css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-159141308-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-159141308-1');
</script>
</head>
<body class="demo-1">
<div id="container" class="container intro-effect-push">
<!-- Top Navigation -->
<header class="header">
<div class="bg-img"><img src="assets/event_layout/img/workshop.jpg" alt="Background Image"/></div>
<div class="title">
<h1 style="color:#ff9900;text-shadow: 2px 2px 4px #000000;">Competitive Programming Workshop</h1>
</div>
</header>
<div class="title">
<h1>Competitive Programming Workshop</h1>
<p class="subline">Event Information</p>
</div>
<article class="content">
<div>
<h1>About The Event<h1>
<p style="font-size: 30px">Competitive programming is a mind sport usually held over the Internet or a local network, involving participants trying to program according to provided specifications. In order to give your best, a good knowledge of algorithms is required. Join us in a two-day workshop to understand the concepts and algorithms related to competitive programming. </p>
<br>
<h1>Speaker</h1>
<p>Rachit Jain</p>
<p><a href="https://www.linkedin.com/in/rachitiitr">LinkedIn</a></p>
<p><a href="https://www.youtube.com/channel/UC9fDC_eBh9e_bogw87DbGKQ">Youtube</a></p>
<br>
<h1>Date and Time</h1>
<p>13 - 14 March</p>
<p>Time will be updated later.</p>
<br>
<h1>Certificate criterion :</h1>
<p>Participants should be present in all the sessions. Failing this, no certificate will be awarded to the participant.</p>
<br>
<h1>Registration Fee</h1>
<p>Rs 100/-</p>
<br>
<h1>Contact</h1>
<p>Jayesh Khistariya +91 9712789939</p>
<br>
<blockquote>Talk is cheap. Show me the code.</blockquote>
</div>
</article>
<article class="content">
<div>
<button><a href="https://www.townscript.com/e/competitive-programming-workshop-140244"><div class="glowing"><h1 class="glow_h1">Re<span class="first">g</span>is<span class="first">t</span>er</h1></div></a></button>
</div>
</article>
</div><!-- /container -->
<script src="assets/event_layout/js/classie.js"></script>
<script>
(function() {
// detect if IE : from http://stackoverflow.com/a/16657946
var ie = (function(){
var undef,rv = -1; // Return value assumes failure.
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
var trident = ua.indexOf('Trident/');
if (msie > 0) {
// IE 10 or older => return version number
rv = parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
} else if (trident > 0) {
// IE 11 (or newer) => return version number
var rvNum = ua.indexOf('rv:');
rv = parseInt(ua.substring(rvNum + 3, ua.indexOf('.', rvNum)), 10);
}
return ((rv > -1) ? rv : undef);
}());
// disable/enable scroll (mousewheel and keys) from http://stackoverflow.com/a/4770179
// left: 37, up: 38, right: 39, down: 40,
// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36
var keys = [32, 37, 38, 39, 40], wheelIter = 0;
function preventDefault(e) {
e = e || window.event;
if (e.preventDefault)
e.preventDefault();
e.returnValue = false;
}
function keydown(e) {
for (var i = keys.length; i--;) {
if (e.keyCode === keys[i]) {
preventDefault(e);
return;
}
}
}
function touchmove(e) {
preventDefault(e);
}
function wheel(e) {
// for IE
//if( ie ) {
//preventDefault(e);
//}
}
function disable_scroll() {
window.onmousewheel = document.onmousewheel = wheel;
document.onkeydown = keydown;
document.body.ontouchmove = touchmove;
}
function enable_scroll() {
window.onmousewheel = document.onmousewheel = document.onkeydown = document.body.ontouchmove = null;
}
var docElem = window.document.documentElement,
scrollVal,
isRevealed,
noscroll,
isAnimating,
container = document.getElementById( 'container' ),
trigger = container.querySelector( 'button.trigger' );
function scrollY() {
return window.pageYOffset || docElem.scrollTop;
}
function scrollPage() {
scrollVal = scrollY();
if( noscroll && !ie ) {
if( scrollVal < 0 ) return false;
// keep it that way
window.scrollTo( 0, 0 );
}
if( classie.has( container, 'notrans' ) ) {
classie.remove( container, 'notrans' );
return false;
}
if( isAnimating ) {
return false;
}
if( scrollVal <= 0 && isRevealed ) {
toggle(0);
}
else if( scrollVal > 0 && !isRevealed ){
toggle(1);
}
}
function toggle( reveal ) {
isAnimating = true;
if( reveal ) {
classie.add( container, 'modify' );
}
else {
noscroll = true;
disable_scroll();
classie.remove( container, 'modify' );
}
// simulating the end of the transition:
setTimeout( function() {
isRevealed = !isRevealed;
isAnimating = false;
if( reveal ) {
noscroll = false;
enable_scroll();
}
}, 1200 );
}
// refreshing the page...
var pageScroll = scrollY();
noscroll = pageScroll === 0;
disable_scroll();
if( pageScroll ) {
isRevealed = true;
classie.add( container, 'notrans' );
classie.add( container, 'modify' );
}
window.addEventListener( 'scroll', scrollPage );
trigger.addEventListener( 'click', function() { toggle( 'reveal' ); } );
})();
</script>
</body>
</html>