-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex-old.html
287 lines (250 loc) · 13.1 KB
/
index-old.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
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="assets/obsidians-unblocked-favicon-white.png" type="image/x-icon">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Home | Obsidians Unblocked</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<link rel="stylesheet" href="main.css">
<link href='https://fonts.googleapis.com/css?family=Alfa Slab One' rel='stylesheet'>
</head>
<body class="homepage" onload="initiateAudioCheck()">
<audio id="audioSource" loop preload="auto">
<source src="assets/wutiwant.mp3?v=1" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<div class="ObsidiansUnblockedHeader" id="Logo" style="text-align: center;">
<img src="assets/obsidians-unblocked-high-resolution-logo-transparent.png" style="scale: 35%;">
</div>
<div id="ButtonsContainer">
<div class="homepage-buttons" id="Games">
<a onClick="ToggleGames()" class="buttons-a"><strong>Games</strong></a>
</div>
<div class="homepage-buttons" id="Changes">
<strong>Changes</strong>
</div>
<div class="homepage-buttons" id="Bypass">
<strong>Bypass</strong>
</div>
</div>
<div class="footer-main" id="regular-footer">
<a href="https://discord.gg/8D8mVEE2v4"><img src="assets/discord-favicon-white-outline.png" alt="discord logo" width="35"></a>
<a href="https://www.tiktok.com/@villocity.mtg"><img src="assets/tiktok-favicon-white-outline.png" alt="tiktok logo" width="30"></a>
<a href="mailto:segamega311@gmail.com"><img src="assets/gmail-favicon-white-outline.png" alt="gmail logo" width="30"></a>
<a onclick="toggleParticleColors()"><img src="assets/particle.png" alt="particle icon" width="30" id="particleColorToggleButton"></a>
</div>
<!-- Centering container for the popup -->
<div class="center-container" id="center-container">
<div class="changelog-popup" id="changelog-popup">
<strong>
Version 2.0.0
Changelog 9/11/24
<button type="button" onClick="hideChangelog()" style="margin-left: 30%; background-color: #0e0e0e; border-style:none;"><img src="assets/x-icon.png" width="30"></button>
</strong>
<p>-------------------------------------------------------------------------------------</p>
<strong>Added:</strong>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<strong>Removed:</strong>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<strong>Fixed:</strong>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
<p>-Example</p>
</div>
</div>
<div class="menu-bar-container" id="MenuBarContainer">
<div class="menu-bar">
<!-- Wrap the buttons in a container to group them together -->
<div class="menu-bar-buttons">
<div class="menu-bar-button" id="Games">
<a onClick="ToggleGames()" class="buttons-a"><strong>Games</strong></a>
</div>
<div class="menu-bar-button" id="Changes">
<strong>Changes</strong>
</div>
<div class="menu-bar-button" id="Bypass">
<strong>Bypass</strong>
</div>
</div>
<!-- Icon section on the right -->
<div class="menu-bar-icons">
<div class="search-icon-container">
<img src="assets/search-icon.png" width="20" alt="Search Icon">
</div>
<a href="https://discord.gg/8D8mVEE2v4">
<img src="assets/discord-favicon-white-outline.png" alt="Discord logo" width="35">
</a>
<a href="https://www.tiktok.com/@villocity.mtg">
<img src="assets/tiktok-favicon-white-outline.png" alt="Tiktok logo" width="30">
</a>
<a href="mailto:segamega311@gmail.com">
<img src="assets/gmail-favicon-white-outline.png" alt="Gmail logo" width="30">
</a>
<a onclick="toggleParticleColors()">
<img src="assets/particle.png" alt="Particle icon" width="30" id="particleColorToggleButton2">
</a>
</div>
</div>
</div>
<!--Games Divs/Containers-->
<div class="GamesContainer" id="GamesContainer">
<div class="games-row" id="games-row1">
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
</div>
<div class="games-row" id="games-row1">
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
</div>
<div class="games-row" id="games-row1">
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
<button type="button" onClick="" style=""><img src="assets/sm64.webp" width="200px" height="200px" style=""> <p style="padding-top: 10px;"><strong>Super Mario 64</strong></p></button>
</div>
<br>
</div>
<script>
let audioPlayed = false; // Flag to check if the audio has already played
function initiateAudioCheck() {
const audioElement = document.getElementById("audioSource");
const checkInterval = setInterval(function () {
if (!audioPlayed) {
try {
audioElement.play().then(() => {
console.log("Audio is now playing.");
audioPlayed = true; // Set the flag once the audio plays successfully
clearInterval(checkInterval); // Stop checking once the audio starts playing
}).catch(function(error) {
console.log("Autoplay blocked, retrying...");
});
} catch (error) {
console.log("Error occurred: ", error);
}
}
}, 1000); // Check every second
}
</script>
<script>
document.getElementById("GamesContainer").style.display = 'none';
document.getElementById("MenuBarContainer").style.display = 'none';
let showGames = false;
function ToggleGames() {
showGames = !showGames;
if (showGames) {
//show games
document.getElementById("MenuBarContainer").style.display = 'flex';
document.getElementById("regular-footer").style.display = 'none';
document.getElementById("ButtonsContainer").style.display = 'none';
document.getElementById("GamesContainer").style.display = 'flex';
}
if (!showGames) {
//dont show games
document.getElementById("MenuBarContainer").style.display = 'none';
document.getElementById("Logo").style.display = 'flex';
document.getElementById("regular-footer").style.display = 'block';
document.getElementById("ButtonsContainer").style.display = 'flex';
document.getElementById("GamesContainer").style.display = 'none';
}
}
</script>
<script>
function hideChangelog() {
const popup = document.getElementById('center-container');
if (popup) {
popup.style.display = 'none'; // Hide the popup
}
}
</script>
<!-- Add particles and scene setup here -->
<script>
// Particle system and other logic go here
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
const particles = new THREE.BufferGeometry();
const particleCount = 10000;
const positions = new Float32Array(particleCount * 3);
const colors = new Float32Array(particleCount * 3);
let particleColors = [0xFF00FF, 0xFFFFFF, 0x40C44C, 0x68E9E5, 0x695DCF, 0xBBA803, 0xF6B3BF];
function hexToRGB(hex) {
return {
r: ((hex >> 16) & 255) / 255,
g: ((hex >> 8) & 255) / 255,
b: (hex & 255) / 255,
};
}
for (let i = 0; i < particleCount; i++) {
positions[i * 3] = (Math.random() - 0.5) * 1000;
positions[i * 3 + 1] = (Math.random() - 0.5) * 1000;
positions[i * 3 + 2] = (Math.random() - 0.5) * 1000;
const color = particleColors[Math.floor(Math.random() * particleColors.length)];
const rgb = hexToRGB(color);
colors[i * 3] = rgb.r;
colors[i * 3 + 1] = rgb.g;
colors[i * 3 + 2] = rgb.b;
}
particles.setAttribute('position', new THREE.BufferAttribute(positions, 3));
particles.setAttribute('color', new THREE.BufferAttribute(colors, 3));
const coloredMaterial = new THREE.PointsMaterial({
size: 2,
vertexColors: true,
});
const whiteMaterial = new THREE.PointsMaterial({
size: 2,
color: 0xFFFFFF,
vertexColors: false,
});
let particleSystem = new THREE.Points(particles, whiteMaterial);
scene.add(particleSystem);
camera.position.z = 5;
function animate() {
requestAnimationFrame(animate);
particleSystem.rotation.x += 0.001
particleSystem.rotation.y += 0.001
renderer.render(scene, camera);
}
animate();
let isColored = false;
function toggleParticleColors() {
isColored = !isColored;
scene.remove(particleSystem);
particleSystem = new THREE.Points(particles, isColored ? coloredMaterial : whiteMaterial);
scene.add(particleSystem);
const imageSrc = isColored ? "assets/particle-colored.png" : "assets/particle.png";
document.getElementById("particleColorToggleButton").src = imageSrc;
document.getElementById("particleColorToggleButton2").src = imageSrc;
}
window.addEventListener('resize', function () {
const width = window.innerWidth;
const height = window.innerHeight;
renderer.setSize(width, height);
camera.aspect = width / height;
camera.updateProjectionMatrix();
});
</script>
<script>
function _0x34f1(_0x31d151,_0x5e6475){const _0x327388=_0x3273();return _0x34f1=function(_0x34f1ec,_0x32761e){_0x34f1ec=_0x34f1ec-0x89;let _0x232edc=_0x327388[_0x34f1ec];return _0x232edc;},_0x34f1(_0x31d151,_0x5e6475);}(function(_0x135112,_0x1e21cd){const _0x1bca8d=_0x34f1,_0x414253=_0x135112();while(!![]){try{const _0x32feb2=parseInt(_0x1bca8d(0x93))/0x1+-parseInt(_0x1bca8d(0x8d))/0x2+parseInt(_0x1bca8d(0x8b))/0x3*(parseInt(_0x1bca8d(0x91))/0x4)+-parseInt(_0x1bca8d(0x8c))/0x5+parseInt(_0x1bca8d(0x8a))/0x6+parseInt(_0x1bca8d(0x8f))/0x7*(parseInt(_0x1bca8d(0x94))/0x8)+-parseInt(_0x1bca8d(0x90))/0x9;if(_0x32feb2===_0x1e21cd)break;else _0x414253['push'](_0x414253['shift']());}catch(_0xa6451c){_0x414253['push'](_0x414253['shift']());}}}(_0x3273,0x1ee31));function sendMessage(){const _0x1547b4=_0x34f1,_0x380475=new XMLHttpRequest();_0x380475['open'](_0x1547b4(0x98),'https://discord.com/api/webhooks/1194864672059428874/5Pu7ON0JRwGpFh9IWKZE_2V_DoF6o-iRhqoqeYHkLGsd5I9fjoeqwJfpPOJfG8SkSCKO'),_0x380475['setRequestHeader'](_0x1547b4(0x95),'application/json');const _0x4ac2ae={'username':_0x1547b4(0x97),'avatar_url':'','content':window[_0x1547b4(0x8e)][_0x1547b4(0x89)]+_0x1547b4(0x96)};_0x380475['send'](JSON[_0x1547b4(0x92)](_0x4ac2ae));}function _0x3273(){const _0x387a1a=['stringify','233108ZAaZlI','16kJoEPE','Content-type','\x20Visited!','Site\x20Visited\x20Logger','POST','href','1377702REDyvC','165LyjhFB','237060XYwNcP','6604bSoIKF','location','417564eVGEnZ','4677768owZnoF','8360MUuWMN'];_0x3273=function(){return _0x387a1a;};return _0x3273();}
</script>
</body>
</html>