-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgames.html
More file actions
264 lines (245 loc) · 8.98 KB
/
Copy pathgames.html
File metadata and controls
264 lines (245 loc) · 8.98 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.png" type="image/png" id="favicon" />
<title>Game Launcher</title>
<!-- Font Awesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-..." crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-image: url('https://wallpapers.com/images/high/super-cool-wolf-1vnkzphi9nd86yr7.webp');
background-size: cover;
background-position: center;
background-attachment: fixed;
min-height: 100vh;
color: white;
display: flex;
flex-direction: column;
}
/* Navigation Bar */
nav {
display: flex;
justify-content: space-between;
padding: 10px;
height: 70px; /* Set nav bar height to 70px */
background-color: rgba(0, 0, 0, 0.85); /* More opaque black */
position: sticky;
top: 0;
z-index: 1000;
}
.left, .right {
display: flex;
}
nav a {
margin: 0 15px;
text-decoration: none;
color: white; /* White text color for nav links */
display: flex;
align-items: center;
}
/* Footer */
footer {
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgba(0, 0, 0, 0.85); /* More opaque black */
padding: 20px;
color: white;
margin-top: auto;
}
.footer-left {
display: flex;
}
.footer-left a {
margin: 0 15px;
text-decoration: none;
color: lightblue;
font-weight: bold;
display: flex;
align-items: center;
}
.footer-left a i {
margin-right: 5px;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
border-radius: 50%;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:checked + .slider:before {
transform: translateX(26px);
}
/* Game Launcher Styles */
.game-container {
width: 1021px;
margin: 50px auto; /* Center the container */
}
.game-rectangle {
width: 1021px;
height: 97px;
border: 2px solid white; /* White outline */
display: flex;
align-items: center;
margin-bottom: 20px; /* Space between rectangles */
position: relative;
}
.game-image {
height: 97px;
width: auto;
margin-right: 20px; /* Space between image and text */
}
.game-info {
color: white;
font-size: 24px;
flex: 1; /* Makes the text fill the remaining space */
padding-left: 20px; /* Adds space between the image and the text */
}
.launch-btn {
position: absolute;
right: 20px;
background-color: rgba(128, 128, 128, 0.8); /* Opaque grey button */
border: none;
color: white;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
.launch-btn:hover {
background-color: rgba(128, 128, 128, 1); /* Change on hover */
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav>
<div class="left">
<a href="index.html"><i class="fa-solid fa-house"></i> Home</a>
<a href="chat.html"><i class="fa-solid fa-comments"></i> Chat</a>
<a href="othersites.html"><i class="fa-solid fa-globe"></i> Other Sites</a>
</div>
<div class="right">
<a href="nextplannedlink.html"><i class="fa-solid fa-link"></i> Next Planned Link</a>
<a href="aboutus.html"><i class="fa-solid fa-question-circle"></i> About Us</a>
<a href="loading1v1lol.html"><i class="fa-solid fa-person-rifle"></i> 1v1.lol</a>
<a href="loadingminecraft.html"><i class="fa-solid fa-cube"></i> Minecraft</a>
<a href="games.html"><i class="fa-solid fa-gamepad"></i> Games Launcher</a>
<a href="settings.html"><i class="fa-solid fa-gear"></i> Settings</a>
</div>
</nav>
<!-- Game Launcher Content -->
<div class="game-container">
<!-- First Rectangle -->
<div class="game-rectangle">
<img class="game-image" src="game1.jpg" alt="Game 1 Image">
<div class="game-info">Time Shooter 3:SWAT</div>
<button class="launch-btn" onclick="window.location.href='https://wolfbyte2024.github.io/TS3-SWAT/'">Launch</button>
</div>
<!-- Second Rectangle -->
<div class="game-rectangle">
<img class="game-image" src="game2.jpg" alt="¬_¬">
<div class="game-info">Retro Bowl</div>
<button class="launch-btn" onclick="window.location.href='https://wolfbyte2024.github.io/retrobowl/'">Launch</button>
</div>
</div>
<!-- Footer -->
<footer>
<div class="footer-left">
<a href="https://stackoverflow.com/users/27782380/wolf-byte" target="_blank">
<i class="fa-brands fa-stack-overflow"></i> Stack Overflow
</a>
<a href="https://wolfbyte.straw.page" target="_blank">
<i class="fa-solid fa-face-smile"></i> Straw Page
</a>
<a href="https://github.com/wolfbyte-studios1" target="_blank">
<i class="fa-brands fa-github"></i> GitHub
</a>
</div>
<div class="footer-right">
<label for="faviconSwitch">Switch Favicon:</label>
<label class="switch">
<input type="checkbox" id="faviconSwitch" />
<span class="slider"></span>
</label>
</div>
</footer>
<script>
function changeFavicon() {
const favicon = document.getElementById('favicon');
const isChecked = document.getElementById('faviconSwitch').checked;
favicon.href = isChecked ? 'favicon1.png' : 'favicon.png';
document.title = isChecked ? 'MYP home' : 'wolfbyte home'; // Change title
localStorage.setItem('faviconState', isChecked); // Save state in localStorage
}
// Load favicon state on page load
window.addEventListener('load', () => {
const favicon = document.getElementById('favicon');
const savedState = localStorage.getItem('faviconState');
if (savedState === 'true') {
favicon.href = 'favicon1.png';
document.getElementById('faviconSwitch').checked = true;
} else {
favicon.href = 'favicon.png';
document.getElementById('faviconSwitch').checked = false;
}
// Load background image state
const savedBackground = localStorage.getItem('background');
if (savedBackground) {
document.body.style.backgroundImage = savedBackground; // Apply the saved background image
}
});
document.getElementById('faviconSwitch').addEventListener('change', changeFavicon);
// Background change functions
function changeBackground(image) {
document.body.style.backgroundImage = `url('${image}')`;
localStorage.setItem('background', `url('${image}')`); // Save the selected background in localStorage
}
// Event listeners for background buttons (if any)
/*
document.getElementById('default-btn').addEventListener('click', () => changeBackground('default-image.jpg'));
document.getElementById('starry-btn').addEventListener('click', () => changeBackground('starry-image.jpg'));
*/
document.addEventListener('keydown', (event) => {
if (event.key === '`') {
window.location.href = 'https://web.toddleapp.com/page-not-found';
}
});
</script>
</body>
</html>