-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
252 lines (217 loc) · 16.6 KB
/
index.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<html style="" class=" js flexbox canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths" lang="en"><head>
<title>Life in Jain | Activities</title>
<link rel="stylesheet" href="hackalot_files/material-icons.css">
<link rel="stylesheet" type="text/css" media="screen,projection" href="hackalot_files/materialize.css">
<link rel="stylesheet" href="hackalot_files/normalize.css">
<link rel="stylesheet" href="hackalot_files/main.css">
<link href="index_files/styles.css" type="text/css" rel="stylesheet" media="screen,projection">
<link href="https://.com/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link rel="icon" type="image/png" sizes="32x32" href="https://.com/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="https://.com/favicon-96x96.png">
<style type="text/css">/* jsxstyle */</style><style type="text/css" class="garry_injected_style_4fjhu"><br> /*!<br> * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)<br> * Copyright 2011-2017 The Bootstrap Authors<br> * Copyright 2011-2017 Twitter, Inc.<br> * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)<br> * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)<br> */<br><br> .__no-scroll {<br> overflow: hidden;<br> }<br><br> .garry-bot-window {<br> position: relative;<br> z-index: 9999;<br> }<br> .garry-bot-window *,<br> .garry-bot-window *::before,<br> .garry-bot-window *::after {<br> box-sizing: border-box;<br> }<br><br> .garry-bot-window {<br> font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,<br> "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",<br> "Segoe UI Symbol";<br> font-size: 16px;<br> font-weight: 400;<br> line-height: 1.5;<br> color: #212529;<br> text-align: left;<br> background-color: #fff;<br> }<br><br> .garry-bot-window h3,<br> .garry-bot-window h5 {<br> margin-top: 0;<br> }<br><br> .garry-bot-window ul {<br> margin-top: 0;<br> margin-bottom: 1rem;<br> }<br><br> .garry-bot-window a,<br> .garry-bot-window area,<br> .garry-bot-window button,<br> .garry-bot-window [role="button"],<br> .garry-bot-window input:not([type="range"]),<br> .garry-bot-window label,<br> .garry-bot-window select,<br> .garry-bot-window summary,<br> .garry-bot-window textarea {<br> -ms-touch-action: manipulation;<br> touch-action: manipulation;<br> }<br><br> .garry-bot-window input,<br> .garry-bot-window button,<br> .garry-bot-window textarea {<br> font-family: inherit;<br> font-size: inherit;<br> line-height: inherit;<br> }<br><br> .garry-bot-window button,<br> .garry-bot-window input {<br> overflow: visible;<br> }<br><br> .garry-bot-window button,<br> .garry-bot-window select {<br> text-transform: none;<br> }<br><br> .garry-bot-window button,<br> .garry-bot-window [type="button"],<br> .garry-bot-window [type="reset"],<br> .garry-bot-window [type="submit"] {<br> -webkit-appearance: button;<br> }<br><br> .garry-bot-window button::-moz-focus-inner,<br> .garry-bot-window [type="button"]::-moz-focus-inner,<br> .garry-bot-window [type="reset"]::-moz-focus-inner,<br> .garry-bot-window [type="submit"]::-moz-focus-inner {<br> padding: 0;<br> border-style: none;<br> }<br><br> #garry-bot-window {<br> font-family: "Lato", sans-serif;<br> }<br> #garry-bot-window a.linkified {<br> display: block;<br> color: #4b63c3;<br> text-decoration: none;<br> margin: 5px 0;<br> transition: color ease 0.3s;<br> }<br><br> #garry-bot-window a.linkified:hover {<br> color: #4bade3;<br> }<br><br> #garry-bot-window input:required {<br> box-shadow: none;<br> }<br> #garry-bot-window :not(output):-moz-ui-invalid:-moz-focusring {<br> /* box-shadow: 0 0 2px 2px rgba(255, 0, 0, 0.4); */<br> box-shadow: none;<br> }<br><br> /* #garry-bot-window .shrunk * {<br> visibility: hidden;<br>} */<br><br> #garry-bot-window .shrunk textarea {<br> display: none;<br> }<br><br> #garry-bot-window.IS-IE {<br> -ms-overflow-style: none;<br> }<br><br> #garry-bot-window.IS-IE #garry-bot-scrollbar > div {<br> margin-right: -11px !important;<br> }<br><br> #garry-bot-window.IS-IE #garry-chat-log > li {<br> margin: 0 25px;<br> }<br><br> #garry-bot-window #garry-bot-scrollbar > div:first-child {<br> overflow-x: hidden !important;<br> margin-bottom: 0 !important;<br> }<br><br> #garry-bot-window #garry-bot-scrollbar > div:last-child {<br> top: 26px !important;<br> }<br> .fadeInUp {<br> animation-name: fadeInUp;<br> animation-duration: 0.6s;<br> animation-fill-mode: forwards;<br> animation-timing-function: ease-out;<br> }<br><br> .fadeIn {<br> animation-name: fadeIn;<br> animation-duration: 0.3s;<br> animation-fill-mode: forwards;<br> animation-timing-function: ease-out;<br> }<br><br> .fadeOut {<br> animation-name: fadeOut;<br> animation-duration: 0.3s;<br> animation-fill-mode: forwards;<br> animation-timing-function: ease-out;<br> }<br><br> .fade-appear {<br> opacity: 0;<br> transform: translateY(-5px);<br> animation-duration: 0.5s;<br> animation-fill-mode: both;<br> animation-timing-function: ease;<br> animation-play-state: paused;<br> }<br><br> .fade-enter {<br> opacity: 0;<br> transform: translateY(-5px);<br> animation-duration: 0.5s;<br> animation-delay: 0.1;<br> animation-fill-mode: both;<br> animation-timing-function: ease;<br> animation-play-state: paused;<br> }<br><br> .fade-leave {<br> animation-duration: 0.5s;<br> animation-fill-mode: both;<br> animation-timing-function: ease;<br> animation-play-state: paused;<br> }<br><br> .fade-enter.fade-enter-active {<br> animation-name: fadeInUp;<br> animation-play-state: running;<br> }<br><br> .fade-appear.fade-appear-active {<br> animation-name: fadeInUp;<br> animation-play-state: running;<br> }<br><br> .fade-leave {<br> animation-duration: 0.5s;<br> animation-play-state: paused;<br> }<br><br> .fade-leave.fade-leave-active {<br> animation-name: fadeOut;<br> animation-play-state: running;<br> }<br><br> @keyframes fadeIn {<br> 0% {<br> opacity: 0;<br> transform: translateY(5px);<br> }<br> 100% {<br> opacity: 1;<br> transform: translateY(0);<br> }<br> }<br><br> @keyframes fadeOut {<br> 0% {<br> opacity: 1;<br> transform: translateY(0);<br> }<br> 100% {<br> opacity: 0;<br> transform: translateY(-5px);<br> }<br> }<br><br> @keyframes fadeInUp {<br> from {<br> opacity: 0;<br> transform: translateY(5px);<br> }<br> to {<br> opacity: 1;<br> transform: translateY(0);<br> }<br> }<br><br> .garry-message img {<br> max-width: 100%;<br> border-radius: 4px;<br> margin: 5px 0;<br> }<br> .garry-message a {<br> color: #4fa1d6;<br> }<br><br> .garry-message code {<br> background: #5553;<br> padding: 3px 5px;<br> border-radius: 3px;<br> }<br><br> @-webkit-keyframes rotation {<br> 0% {<br> -webkit-transform: rotate(0deg);<br> transform: rotate(0deg);<br> }<br><br> 100% {<br> -webkit-transform: rotate(270deg);<br> transform: rotate(270deg);<br> }<br> }<br><br> @keyframes rotation {<br> 0% {<br> -webkit-transform: rotate(0deg);<br> transform: rotate(0deg);<br> }<br><br> 100% {<br> -webkit-transform: rotate(270deg);<br> transform: rotate(270deg);<br> }<br> }<br><br> @-webkit-keyframes turn {<br> 0% {<br> stroke-dashoffset: 180;<br> }<br><br> 50% {<br> stroke-dashoffset: 45;<br> -webkit-transform: rotate(135deg);<br> transform: rotate(135deg);<br> }<br><br> 100% {<br> stroke-dashoffset: 180;<br> -webkit-transform: rotate(450deg);<br> transform: rotate(450deg);<br> }<br> }<br><br> @keyframes turn {<br> 0% {<br> stroke-dashoffset: 180;<br> }<br><br> 50% {<br> stroke-dashoffset: 45;<br> -webkit-transform: rotate(135deg);<br> transform: rotate(135deg);<br> }<br><br> 100% {<br> stroke-dashoffset: 180;<br> -webkit-transform: rotate(450deg);<br> transform: rotate(450deg);<br> }<br> }<br><br> .GlaHquq0 {<br> -webkit-animation: rotation 1.35s linear infinite;<br> animation: rotation 1.35s linear infinite;<br> }<br><br> .GlaHquq0 circle {<br> stroke-dasharray: 180;<br> stroke-dashoffset: 0;<br> -webkit-transform-origin: center;<br> -ms-transform-origin: center;<br> stroke-width: 5px;<br> transform-origin: center;<br> -webkit-animation: turn 1.35s ease-in-out infinite;<br> animation: turn 1.35s ease-in-out infinite;<br> }<br></style></head>
<body bgcolor=black>
</div>
<div class="home-top" id="home-top">
<canvas id="web-canvas" style="position: absolute;z-index:4;" width="1346" height="700"></canvas>
<div id="top-content">
<h1>A Website made by the students of Jain University for Listing Events at Jain Univeristy Kochi Campus and educating them on what is happening within and around the campus</h1>
<h1>PS: the .wtf means "what the fu*k" but we do not intend to hurt or harm anyone/any organisation</h1>
<h3>Jain University,Knowledge Park,Nirmal Infopark,Kochi</h3>
<div class="stars"></div>
<div class="twinkling"></div>
<div id="cloud-blend"></div>
<div id="top-right-bg"></div>
<div id="top-clouds"></div>
</div>
<div class="white-section mobile-white">
<div class="container has-text-centered"><br>
<div class="container">
</div>
<div style="font-size: 80px; height: 8em; color: #ffffff">
<div id="text"></div>
</p>
</div>
</div>
</div>
<script src="hackalot_files/EasePack.js"></script>
<script src="hackalot_files/TweenLite.js"></script>
<script>
(function() {
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
// Main
initHeader();
initAnimation();
addListeners();
function initHeader() {
width = window.innerWidth-20;
height = window.innerHeight;
target = {x: width/2, y: height/2};
largeHeader = document.getElementById('home-top');
//largeHeader.style.height = '700px';
canvas = document.getElementById('web-canvas');
canvas.width = width;
//canvas.height = height;
canvas.height = height;
ctx = canvas.getContext('2d');
// create points
points = [];
for(var x = 0; x < width; x = x + width/20) {
for(var y = 0; y < height; y = y + height/20) {
var px = x + Math.random()*width/20;
var py = y + Math.random()*height/20;
var p = {x: px, originX: px, y: py, originY: py };
points.push(p);
}
}
// for each point find the 5 closest points
for(var i = 0; i < points.length; i++) {
var closest = [];
var p1 = points[i];
for(var j = 0; j < points.length; j++) {
var p2 = points[j]
if(!(p1 == p2)) {
var placed = false;
for(var k = 0; k < 5; k++) {
if(!placed) {
if(closest[k] == undefined) {
closest[k] = p2;
placed = true;
}
}
}
for(var k = 0; k < 5; k++) {
if(!placed) {
if(getDistance(p1, p2) < getDistance(p1, closest[k])) {
closest[k] = p2;
placed = true;
}
}
}
}
}
p1.closest = closest;
}
// assign a circle to each point
for(var i in points) {
var c = new Circle(points[i], 2+Math.random()*2, 'rgba(255,255,255,0.3)');
points[i].circle = c;
}
}
// Event handling
function addListeners() {
if(!('ontouchstart' in window)) {
window.addEventListener('mousemove', mouseMove);
}
window.addEventListener('scroll', scrollCheck);
window.addEventListener('resize', resize);
}
function mouseMove(e) {
var posx = posy = 0;
if (e.pageX || e.pageY) {
posx = e.pageX;
posy = e.pageY;
}
else if (e.clientX || e.clientY) {
posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
}
target.x = posx;
target.y = posy;
}
function scrollCheck() {
if(document.body.scrollTop > height) animateHeader = false;
else animateHeader = true;
}
function resize() {
width = window.innerWidth-20;
height = window.innerHeight;
//largeHeader.style.height = height+'px';
canvas.width = width;
//canvas.height = height;
canvas.height = height;
}
// animation
function initAnimation() {
animate();
for(var i in points) {
shiftPoint(points[i]);
}
}
function animate() {
if(animateHeader) {
ctx.clearRect(0,0,width,height);
for(var i in points) {
// detect points in range
if(Math.abs(getDistance(target, points[i])) < 4000) {
points[i].active = 0.3;
points[i].circle.active = 0.6;
} else if(Math.abs(getDistance(target, points[i])) < 20000) {
points[i].active = 0.1;
points[i].circle.active = 0.3;
} else if(Math.abs(getDistance(target, points[i])) < 40000) {
points[i].active = 0.02;
points[i].circle.active = 0.1;
} else {
points[i].active = 0;
points[i].circle.active = 0;
}
drawLines(points[i]);
points[i].circle.draw();
}
}
requestAnimationFrame(animate);
}
function shiftPoint(p) {
TweenLite.to(p, 1+1*Math.random(), {x:p.originX-50+Math.random()*100,
y: p.originY-50+Math.random()*100, ease:Circ.easeInOut,
onComplete: function() {
shiftPoint(p);
}});
}
// Canvas manipulation
function drawLines(p) {
if(!p.active) return;
for(var i in p.closest) {
ctx.beginPath();
ctx.moveTo(p.x, p.y);
ctx.lineTo(p.closest[i].x, p.closest[i].y);
ctx.strokeStyle = 'rgba(156,217,249,'+ p.active+')';
ctx.stroke();
}
}
function Circle(pos,rad,color) {
var _this = this;
// constructor
(function() {
_this.pos = pos || null;
_this.radius = rad || null;
_this.color = color || null;
})();
this.draw = function() {
if(!_this.active) return;
ctx.beginPath();
ctx.arc(_this.pos.x, _this.pos.y, _this.radius, 0, 2 * Math.PI, false);
ctx.fillStyle = 'rgba(156,217,249,'+ _this.active+')';
ctx.fill();
};
}
// Util
function getDistance(p1, p2) {
return Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2);
}
})();
</script>
<div id="push" class=""></div>
</div>
<div class="footer " id="footer">
<div id="footer-links">
<div class="footer-link-cont">
</ul>
</div>
</div>
<div id="footer_logo">
<i></i>
</div>
</div>
<script type="text/javascript" src="hackalot_files/typewriter.js"></script>
</body></html>