-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsettings.html
151 lines (121 loc) · 3.86 KB
/
settings.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Games</title>
</head>
<body>
<style>
select {
background-color: cornflowerblue;
border-radius: 15px;
font-family: sans;
top:0;
right:50%;
width:170px;
}
</style>
<style>
option {
background-color: cornflowerblue;
border-radius: 15px;
font-family: sans;
}
</style>
<style>
.text:hover {
box-shadow:5px 10px 20px #ffffff;
}
.label {
font-family:Poppins;
}
.text {
background-color: white;
color: black;
border: none;
padding: 10px 20px;
font-size: 14px;
cursor: pointer;
border-radius:10px;
font-family:sans;
text-decoration:none;
}
.sample {
border-radius: 12px;
background-color: white;
color: black;
text-decoration: none;
padding: 10px 20px;
}
.sample:hover {
box-shadow:5px 10px 20px #ffffff;
}
</style>
<style>
/* Style for the select dropdown */
#background-select {
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: #f9f9f9; /* Fallback color */
font-size: 16px;
width: 200px;
font-family: Poppins;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<label class="label" for="background-select">Select Background:</label>
<select id="background-select">
<option value="default.jpg">Default</option>
<option value="media/winterforest.gif">Winter Forest</option>
<option value="/media/saquon4k.jpg">Saquon Barkley </option>
<option value="https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExb3ZwYXFta3hwYzBkbHE1dzBucjQ3aGg1cG93d2I1Z2planV1NWdwNSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/9bTjZrytydVRK/giphy.webp">Star-Themed</option>
<option value="https://media.lmpm.website/uploads/sites/18/2023/07/Untitled-design-2023-08-10T093341.090.png">(Developer Favorite) Sunset Sky</option>
<option value="https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExN2t0cDFjdms4N290dGs1NWpheGp4dHF6b2FqdHl2OTVhZG00aG5yMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/PXqNXjkTmEfRK/200.webp">(NEW) Pong</option>
<option value="https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExeXNtOGFpeXprOTE5cnd4MmJkaW94dzNhem51YXk1c2Y4aTh4dzlpZiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/LjULRGiyt1KpO/giphy.webp">(NEW) Racing</option>
<!-- Add more options as needed -->
</select>
</body>
</html>
<!-- Include the JavaScript code -->
<script>
document.addEventListener("DOMContentLoaded", function() {
// Get the select element
var select = document.getElementById("background-select");
// Set initial background image based on stored preference or default
var selectedBackground = localStorage.getItem("selectedBackground");
if (selectedBackground) {
document.body.style.backgroundImage = "url(" + selectedBackground + ")";
select.value = selectedBackground;
}
// Listen for changes in the select element
select.addEventListener("change", function() {
var newBackground = this.value;
document.body.style.backgroundImage = "url(" + newBackground + ")";
localStorage.setItem("selectedBackground", newBackground);
});
});
</script>
<style>
img {
display: block;
margin: auto;
width: 35%; /* change this value to adjust the size of the image */
}
</style>
<style>
body {
background-color:black;
font-family:sans;
color:white;
}
</style>
<img src="blackoutlogo.png" alt="Image">
</body>
</html>