-
Notifications
You must be signed in to change notification settings - Fork 1
/
round-two.html
247 lines (229 loc) · 11 KB
/
round-two.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/round-two.css">
<title>AIB | Acumen</title>
<style>
div {
background-image: url('graphics/Image2.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
</head>
<body>
<div class="navbar">
<ul>
<li style="float: left;">
<a href="instructionstwo.html">Instructions</a>
</li>
<li style="float:right;">
<button id="myBtn" class="button button1">Contact Us</button>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<br>
<p>
<p style="text-align: center; font-size: xx-large; color: orange; font-style: oblique;">Contact
us</p>
</p>
<br>
<p style="text-align: center; color: red;">Shaurya :
<p style="align-items: center; text-align: center;"><button id="p1" class="buttononclick"
onclick="p1()">+91 87573 73564</button></p>
</p>
<p style="text-align: center; color:red;">Anupriya :
<p style="align-items: center; text-align: center;"><button id="p2" class="buttononclick"
onclick="p2()">+91 95701 64884</button></p>
</p>
<p style="text-align: center; color: red;">Pranav :
<p style="align-items: center; text-align: center;"><button id="p3" class="buttononclick"
onclick="p3()">+91 97030 03291</button></p>
</p>
<p style="text-align: center; color: red;">Sparsh :
<p style="align-items: center; text-align: center;"><button id="p4" class="buttononclick"
onclick="p4()">+91 94331 80822</button></p>
</p>
<br>
<p style="font-size: small; color:grey; text-align: center;">(Click to copy to Clipboard)</p>
<script>
function p1() {
var input = document.createElement('input');
input.value = document.getElementById('p1').innerHTML;
input.id = 'inputID';
document.body.appendChild(input);
input.select();
document.execCommand('copy');
document.body.removeChild(input);
}
function p2() {
var input = document.createElement('input');
input.value = document.getElementById('p2').innerHTML;
input.id = 'inputID';
document.body.appendChild(input);
input.select();
document.execCommand('copy');
document.body.removeChild(input);
}
function p3() {
var input = document.createElement('input');
input.value = document.getElementById('p3').innerHTML;
input.id = 'inputID';
document.body.appendChild(input);
input.select();
document.execCommand('copy');
document.body.removeChild(input);
}
function p4() {
var input = document.createElement('input');
input.value = document.getElementById('p4').innerHTML;
input.id = 'inputID';
document.body.appendChild(input);
input.select();
document.execCommand('copy');
document.body.removeChild(input);
}
</script>
</div>
<script>
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var btn = document.getElementById("myBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.onclick = function () {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</div>
</li>
</ul>
</div>
<div class="headings">
<p class="acumen">Acumen</p>
<p class="presents">presents</p>
<p class="aib">
<a href="index.html">AIB</a></p>
<br>
<p class=" round-one ">Round 2</p>
<br>
<br>
</div>
<div id="info " style="display: block; ">
<div style="width: 100%; height: 800px; font-weight: 500;">
<p style="align-items: center; text-align: center; padding-top: 10%; font-size: xx-large;">Round 2 starts at
3pm on 7th November.</p>
</div>
</div>
<div id="infoend " style="display: block; ">
<div style="width: 100%; height: 800px; font-weight: 500;">
<p style="align-items: center; text-align: center; padding-top: 10%; font-size: xx-large;">Round 2 has
ended. PLease wait for the results to be released on Leaderboards.</p>
</div>
</div>
<div id="eventend " style="display: block; ">
<div style="width: 100%; height: 800px; font-weight: 500;">
<p style="align-items: center; text-align: center; padding-top: 10%; font-size: xx-large;">This event has
ended. Thank You for participating in AIB by Acumen @ TechTatva 2020.</p>
<p style="align-items: center; text-align: center; padding-top: 10%; font-size: xx-large;">Winners have been
annouced on the Leaderboard page.</p>
</div>
</div>
<div id="frames " class="iframes " style="align-items: center; display: none;">
<iframe id="frame1 " style="display: none; " src="https://test.gclocked.com/?form=-MLTgHX-VkUKiF57l3S4"
width="100% " height="800 " frameborder="0 " marginheight="0 " marginwidth="0 ">Loading…</iframe>
<script>
var d = new Date(); // for now
//var d = new Date("2020-11-05T20:30:51.01 ");
var currentDay = d.getDate();
//console.log(currentDay);
if (currentDay == 7) {
var currentHour = d.getHours();
console.log(currentHour);
if (currentHour == 15) {
console.log("in 13 ");
var x = document.getElementById("info ");
x.style.display = "none ";
x = document.getElementById("frames ");
x.style.display = "block ";
x = document.getElementById("frame1 ");
x.style.display = "block ";
var x = document.getElementById("infoend ");
x.style.display = "none ";
var x = document.getElementById("eventend ");
x.style.display = "none ";
} else if (currentHour == 18) {
var x = document.getElementById("info ");
x.style.display = "none ";
x = document.getElementById("frames ");
x.style.display = "none ";
x = document.getElementById("frame1 ");
x.style.display = "none ";
var x = document.getElementById("infoend ");
x.style.display = "block ";
var x = document.getElementById("eventend ");
x.style.display = "none ";
} else {
var x = document.getElementById("info ");
x.style.display = "block";
x = document.getElementById("frames ");
x.style.display = "none";
x = document.getElementById("frame1 ");
x.style.display = "none";
var x = document.getElementById("infoend ");
x.style.display = "none";
var x = document.getElementById("eventend ");
x.style.display = "none";
}
}
else if (currentDay == 8 || currentDay == 9 || currentDay == 10) {
var x = document.getElementById("info ");
x.style.display = "none ";
x = document.getElementById("frames ");
x.style.display = "none ";
x = document.getElementById("frame1 ");
x.style.display = "none ";
var x = document.getElementById("infoend ");
x.style.display = "none ";
var x = document.getElementById("eventend ");
x.style.display = "block ";
} else {
var x = document.getElementById("info ");
x.style.display = "block";
x = document.getElementById("frames ");
x.style.display = "none";
x = document.getElementById("frame1 ");
x.style.display = "none";
var x = document.getElementById("infoend ");
x.style.display = "none";
var x = document.getElementById("eventend ");
x.style.display = "none";
}
</script>
</div>
</div>
<footer>
<div class="footer ">
<p>
AIB - Acumen @ TechTatva 2020, MIT Manipal.
</p>
</div>
</footer>
</body>
</html>