-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (78 loc) · 1.75 KB
/
index.html
File metadata and controls
84 lines (78 loc) · 1.75 KB
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
<title>Click Counter</title>
<style>
body {
margin: 0;
padding: 0;
font-family: "Lato", sans-serif;
font-size: 20pt;
font-weight: normal;
background: lightblue; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(
-90deg,
lightblue,
black
); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(
-90deg,
lightblue,
black
); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(
-90deg,
lightblue,
black
); /* For Firefox 3.6 to 15 */
background: linear-gradient(-90deg, lightblue, black); /* Standard syntax */
}
.main {
margin: 100px auto;
text-align: center;
}
button {
padding: 20px;
background: transparent;
text-shadow: 1px 1px 1px #202020;
font-family: "Lato", sans-serif;
font-size: 18pt;
border: 1px solid lightblue;
color: lightblue;
}
p {
text-color: white
}
</style>
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="main">
<h3>Click Counter By Will</h3>
<button id="clickme">0 Clicks</button>
</div>
<style>
#sixnine {
visibility:hidden
}
</style>
<div id="sixnine">
<center><p><h3>( ͡° ͜ʖ ͡°)</h3></p></center>
</div>
<script>
var button = document.getElementById("clickme")
count = 0;
button.onclick = function() {
count += 1;
button.innerHTML = `${count} Clicks`;
if (count === 69) {
document.getElementById("sixnine").style.visibility = 'visible';
}
if (count === 70) {
document.getElementById("sixnine").style.visibility = 'hidden';
}
if (count === 420) {
document.getElementById("sixnine").style.visibility = 'visible';
}
if (count === 421) {
document.getElementById("sixnine").style.visibility = 'hidden';
}
}
</script>