-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtechnunctus_mun_event.php
218 lines (183 loc) · 6.49 KB
/
technunctus_mun_event.php
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
<!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>MUN</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]-->
<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/mun.png" alt="Background Image"/></div>
</header>
<div class="title">
<h1>Technunctus MUN</h1>
<p class="subline">Event Information</p>
</div>
<article class="content">
<div>
<h1>About The Event<h1>
<p style="font-size: 30px">There are a lot of problems in the world that need solutions. But in order to bring those problems to the light, the whistleblower has to be amazing at leadership and public speaking. Technunctus MUN provides young professionals from schools and colleges to test their skills against their peers.</p>
<br>
<h1>Guidelines</h1>
<p>1. Each participant will be allotted a council.</p>
<p>2. Each council comes with a problem and participants have to submit a position paper on that.</p>
<p>3. On the main day, participants will discuss, debate and present their solutions and will be based upon these skills by chair members.</p>
<br>
<h1>Date and Time</h1>
<p>13th - 14th March 2020</p>
<br>
<h1>Prizes</h1>
<p>Rs 20k</p>
<br>
<h1>Contact</h1>
<p>Aayush Goyal: +91-7357424777</p>
<br>
</div>
</article>
<article class="content">
<div>
<button><a href="https://www.mun.technunctus.org/"><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>