-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (71 loc) · 1.83 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Web challenges for newbies</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
div {
border-radius: 0.25rem;
box-shadow: 3px 3px 10px #bebec0;
padding: 0.5rem;
margin: 0.5rem;
ul > li {
cursor: pointer;
list-style: none;
border-bottom: 2px transparent solid;
transition: ease 0.5s;
}
ul > li:nth-child(odd) {
margin: 0.25rem 0;
}
ul > li:hover {
border-bottom: 2px black solid;
}
}
}
</style>
</head>
<body>
<main>
<div>
<h3>Welcome to Challenges for newbies</h3>
<ul id="items">
<li>Parallax Design with sliding image</li>
<li>Sudoku [Incomplete]</li>
<li>Todo List</li>
<li>Image to background</li>
<li>Calculator</li>
<li>Login with Middlewares</li>
<li>Registration Panel with Password Generator</li>
<li>Profile Layout</li>
<li>Calendar (Yearly)</li>
<li>Rock Paper and Scissor Game</li>
</ul>
</div>
</main>
</body>
<script>
const base = document.getElementById("items");
const child = base.children;
for (let i = 0; i < child.length; i++) {
const c = child[i];
c.addEventListener("click", () => {
if (c.textContent != "") {
location.href = `Challenge ${i + 1}`;
}
});
}
</script>
</html>