-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (103 loc) · 2.31 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
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "poppins", sans-serif;
}
#container {
width: 100vw;
height: 100vh;
background: #f1f5f8;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
h1 {
width: auto;
height: auto;
background: #000;
color: #fff;
padding: 20px;
border-radius: 5px;
margin-bottom: 30px;
}
span {
color: red;
}
button {
width: 150px;
height: auto;
padding: 10px;
background-color: transparent;
border: 2px solid black;
border-radius: 5px;
font-size: 1.3rem;
font-weight: 500;
cursor: pointer;
}
button:hover {
background: #000;
color: #fff;
}
.header {
width: 100vw;
height: 70px;
background: #fff;
display: flex;
justify-content: space-evenly;
position: fixed;
box-shadow: 0 8px 8px rgba(0, 0, 0, 0.4);
}
.header h2 {
color: #0091ff;
margin-top: 5px;
}
#p {
display: flex;
gap: 20px;
margin: auto 0 auto;
}
#p a {
cursor: pointer;
text-decoration: none;
color: #000;
}
#p a:hover {
color: #0091ff;
}
</style>
</head>
<body>
<div class="header">
<h2>
Color <br />
Fl!pper
</h2>
<div id="p">
<a href="simple.html">Simple</a>
<a href="hax.html">Hex</a>
<a onclick="whiteBG()">White Background</a>
</div>
</div>
<div id="container">
<h1>Background Color : <span id="color">White Background</span></h1>
<button onclick="whiteBG()">Click Here</button>
</div>
<script>
function whiteBG() {
document.getElementById("container").style.background = "#f1f5f8";
document.getElementById("color").innerHTML = "#f1f5f8";
}
</script>
</body>
</html>