-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathothersites.html
More file actions
224 lines (216 loc) · 8.09 KB
/
Copy pathothersites.html
File metadata and controls
224 lines (216 loc) · 8.09 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
<!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>Other sites</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 {
background-image: url('https://wallpapers.com/images/high/super-cool-wolf-1vnkzphi9nd86yr7.webp');
background-size: cover;
background-position: center;
background-attachment: fixed;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
color: white;
}
nav {
display: flex;
justify-content: space-between;
padding: 10px;
height: 70px;
background-color: rgba(0, 0, 0, 0.85);
position: sticky;
top: 0;
z-index: 1000;
}
.left, .right {
display: flex;
}
nav a {
margin: 0 15px;
text-decoration: none;
color: white;
display: flex;
align-items: center;
}
footer {
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgba(0, 0, 0, 0.85);
padding: 20px;
color: white;
}
.footer-left {
display: flex;
}
.footer-left a {
margin: 0 15px; /* Adds spacing between the links */
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);
}
.content {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
text-align: center;
}
a {
text-decoration: none;
color: lightblue;
font-weight: bold;
}
img {
margin-top: 10px;
width: 100px;
height: auto;
}
</style>
</head>
<body>
<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>
<div class="content">
<h1>Wraithcode</h1>
<img src="https://wraithcode45.github.io/logo_large.png" alt="Wraithcode Logo" />
<p>
<a href="https://wraithcode45.github.io" target="_blank">
Wraithcode is an awesome site created by Kai Pollak, an 8th grader at DCI who is extremely good at coding and is way better than me. You should go check out his site as he is, in my opinion, one of the best developers at DCI. Go check out his site.
</a>
</p>
</div>
<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
const currentBackground = savedBackground.match(/'([^']+)'/)[1];
document.getElementById('current-background').innerText = currentBackground.split('/').pop().split('.')[0]; // Update displayed background name
}
});
document.getElementById('faviconSwitch').addEventListener('change', changeFavicon);
// Background change functions
function changeBackground(image, name) {
document.body.style.backgroundImage = `url('${image}')`;
localStorage.setItem('background', `url('${image}')`); // Save the selected background in localStorage
document.getElementById('current-background').innerText = name; // Update displayed background name
}
// Event listeners for background buttons
document.getElementById('default-btn').addEventListener('click', () => changeBackground('https://wallpapers.com/images/high/super-cool-wolf-1vnkzphi9nd86yr7.webp', 'Default'));
document.getElementById('starry-btn').addEventListener('click', () => changeBackground('b2.jpeg', 'Starry'));
document.getElementById('blue-btn').addEventListener('click', () => changeBackground('b1.jpeg', 'Blue'));
document.getElementById('purple-btn').addEventListener('click', () => changeBackground('b3.jpeg', 'Purple'));
document.addEventListener('keydown', (event) => {
if (event.key === '`') {
window.location.href = 'https://web.toddleapp.com/page-not-found';
}
});
</script>
</body>
</html>