-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchat.html
More file actions
183 lines (178 loc) · 6.38 KB
/
Copy pathchat.html
File metadata and controls
183 lines (178 loc) · 6.38 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
<!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>Chat</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); /* More opaque black */
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); /* 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);
}
.arena-chat {
position: absolute;
top: 70px; /* Adjust according to the height of the nav bar */
bottom: 60px; /* Adjust according to the height of the footer */
left: 0;
right: 0;
z-index: 500; /* Ensure it is above other content */
overflow: hidden; /* Hide any overflow */
}
</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="arena-chat" data-publisher="cucumberpork" data-chatroom="TqhUXds" data-position="in-page"></div>
<script async src="https://go.arena.im/public/js/arenachatlib.js?p=cucumberpork&e=TqhUXds"></script>
<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;
}
});
document.getElementById('faviconSwitch').addEventListener('change', changeFavicon);
</script>
</body>
</html>