-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (105 loc) · 3.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Network Numbers</title>
<style>
body{
background-color: gray;
color: white;
}
#subnetting__input{
background-color: rgb(223, 223, 223);
transition: all 0.2s;
}
#subnetting__input.correct {
background-color: rgb(81, 190, 81);
}
#subnetting__input.error {
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000px;
background-color: rgb(184, 121, 121);
}
@keyframes shake {
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
20%, 80% {
transform: translate3d(2px, 0, 0);
}
30%, 50%, 70% {
transform: translate3d(-4px, 0, 0);
}
40%, 60% {
transform: translate3d(4px, 0, 0);
}
}
#subnetting__notications{
color: white;
background-color: rgb(73, 73, 167);
display:inline-block;
padding: 10px;
margin-top: 20px;
border-radius: 4px;
}
#subnetting__address{
background-color: #3c3f50;
padding: 10px;
width: fit-content;
border-radius: 4px;
}
#subnetting__hint{
background-color: #a84141;
padding: 10px;
width: fit-content;
border-radius: 4px;
opacity: 0;
transition: all 0.2s;
}
#subnetting__hint.active{
opacity: 1;
}
#credits{
position: absolute;
bottom: 0;
left: 10px;
}
#credits a{
color: rgb(118 221 85);
font-weight: 600;
text-decoration: none;
}
</style>
</head>
<body>
<h1>Network numbers</h1>
<p>A memorization tool for networking students</p>
<p>Type in the correct number</p>
<p>Administrative distance, OSPF cost and STP cost</p>
<hr>
<div>
<div style="display:inline-block">
<pre id="subnetting__address"></pre>
</div>
<div style="display:inline-block">
<pre id="subnetting__hint">hello</pre>
</div>
</div>
</div>
<input type="text" name="" id="subnetting__input">
<button id="subnetting__checkbutton">Check!</button>
<br>
<div id="subnetting__notications">
<span id="subnetting__notications--score">0</span> / <span id="subnetting__notications--attempts">0</span>
</div>
<div id="subnetting__notications">
Streak: <span id="subnetting__notications--streak">0</span>
</div>
<p id="credits">Written by Stanley Skarshaug - <a href="https://www.haxor.no">HAXOR.no</a></p>
<script src="numbers.js"></script>
</body>
</html>