-
Notifications
You must be signed in to change notification settings - Fork 0
/
commented out code for index.html
99 lines (80 loc) · 3.09 KB
/
commented out code for 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
javascript for countdown in head
<script>
// Set the date we're counting down to
var countDownDate = new Date("Nov 20, 2021 10:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("demo").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "QCTF has started!";
document.getElementById("timer-desc").innerHTML = "";
}
}, 1000);
</script>
header countdown (at the very top at body):
<!-- <div id="header" class="container">
<div class= "container" >
<div id="clock">
<p class="date" id="timer-desc">QCTF STARTS IN</p>
<!-- <p class="date">2021-11-20 SAT</p> --> <!--
<p class="time" id="demo"></p>
</div> -->
button for sign up code:
<!-- <div>
<div class="container" id="sign-up-button">
<center>
<main>
<!-- <a href="https://forms.gle/VjyzsoT275wrn82FA"><button>Sign Up Now!</button></a> --> <!--
<a><button>Sign up is now closed.</button></a>
</main>
</center>
</div>
</div> -->
wealthsimple block (usually above what-is-a-ctf)
<!-- <div id="sign-up-panel">
<div class="container text-center">
<div id= wealthsimple-logo-block >
<span > <img src="images/wealthsimple_cash.png" alt="QCTF and WealthSimple Cash logo" id ="wealthsimple" ></span>
</div>
<p> Would you like some free cash? Would you also like to gain 25 points before the event has even started (equivalent to solving a level 1 challenge)? Sign up for WealthSimple Cash using our promo code and send us your cash handle to get yourself $25 from WealthSimple and 25 points for QCTF! </p>
<p> Checkout the form below for more details on this promo! </p>
<div id="wealthsimple-button" >
<a class='button2' href="https://forms.gle/QDd4Eca7GsBvqbBh9">QCTF x WealthSimple</a>
</div>
</div>
</div> -->
code for exec join us:
<!-- <div id="exec-join-us">
<div class="hackermans">
<div class="hackermans-box container">
<div id="exec-join-us" class="text-center title">
<h2>Join Our Team</h2>
</div>
<p>
2021-2022 Executive Team Applications are now open! <br \> Deadline: September 23rd, 2021 @ 11:59 pm <br \> Interviews will be held September 24th-26th.
</p>
<div class="sign-up-panel">
<div >
<center>
<div>
<a class='sign-up' href="https://forms.office.com/r/7Ms97dPUcb">Apply Here</a>
</div>
</center>
</div>
</div>
</div>
</div>
</div> -->