-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
59 lines (50 loc) · 1.09 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
<!DOCTYPE html>
<html>
<head>
<title>Sean from MLH</title>
<style>
body {
text-align: center;
font-family: sans-serif;
background-image: url("sean.png");
background-repeat: no-repeat;
background-position: center;
}
#incrementButton {
background-color: #000080;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin-top: 20px;
margin-bottom: 30px;
}
#numTimes {
font-size: 250px;
line-height: 0.05;
color: white;
}
h1 {
font-size: 45px;
}
</style>
<script>
var times = 0;
function incrementCount() {
times++;
document.getElementById("numTimes").innerHTML = String(times);
if(times == 100) {
document.getElementById("numTimes").innerHTML = "STOP";
}
}
</script>
</head>
<body>
<h1>How many times have I said the phrase "Sean from MLH"?</h1>
<p id="numTimes">0</p>
<button id="incrementButton" onclick="incrementCount()">I said it again</button>
</body>
</html>