-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
451 lines (386 loc) · 26.4 KB
/
index.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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html>
<script>
/* notes lawl
general oriented:
finish adding all the songs from the gta radio
i just realized i forgot to add artist names to all the songs lol
line oriented:
187: add more random shit to this thing idk
286: add new songs
303: add more songs and on-end shuffling (done)
370: add more songs to non stop pop fm, rename west coast classic song files and make the west coast classics radio station
381: make thingy that checks if the random index lands on the previous song and then go to the next one, after that make a radio station scroll list thingymajig that tunes you into that specific radio station, if none are selected a random song from a random radio station plays over and over again.
387: fix radio station not showing the correct song when changing the argument to anything but east los fm lol
393: make the song name and station name bold (done)
*/
</script>
<head>
<meta charset="utf-8">
<title>daxy.lol</title>
<link rel="stylesheet" href="./style.css">
<meta property="og:title" content="daxy.lol">
<meta property="og:description" content="greatest webste in th wrold">
<meta property="og:image" content="http://daxy.lol/media/icons/world.gif">
<link rel="icon" href=# type="image/png" id="favicon">
<script> // favicon changer
function randomInt(max){return Math.floor(Math.random()*max+1)};
const favicon = document.getElementById('favicon');
const canny = 'media/icons/canny.png';
const uncanny = 'media/icons/uncanny.png';
const raisin = 'media/icons/raisin.png';
let isFirst = true;
function changeFavicon() {
var int = randomInt(100)
if (randomInt === 1) {
favicon.href = raisin;
} else if (isFirst) {
favicon.href = uncanny;
} else {
favicon.href = canny;
}
isFirst = !isFirst;
};
setInterval(changeFavicon, 2500);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; // why does js let you get away with this
</script>
<!--script>
// sounds (im not sorry)
function randomsound(){
const sounds = ["./sounds/psst.mp3","./sounds/hey.mp3","./sounds/riff.mp3","./sounds/ball.mp3","./sounds/usbin.mp3",'./sounds/usbout.mp3',"./sounds/mc.mp3"];
const index = Math.floor(Math.random()*sounds.length);
const audio = new Audio(sounds[index]);
audio.play();
}
setInterval(randomsound, 1*60*1000);
</script-->
</head>
<body bgcolor="#BADA55">
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script>
//intro (three.js SUCKS so this will be disabled)
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 350;
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
//text
const loader = new THREE.FontLoader();
loader.load('https://threejs.org/examples/fonts/helvetiker_regular.typeface.json', function (font) {
const textGeometry = new THREE.TextGeometry('daxy.lol', {
font: font,
size: 75,
height: 2.5,
curveSegments: 10,
bevelEnabled: true,
bevelThickness: 10,
bevelSize: 3,
bevelOffset: 0,
bevelSegments: 20
});
const randomColor = new THREE.Color(Math.random(), Math.random(), Math.random());
textGeometry.center();
const textMaterial = new THREE.MeshBasicMaterial({ color: randomColor, transparent: true });
const textMesh = new THREE.Mesh(textGeometry, textMaterial);
scene.add(textMesh);
//anim
const rotationTween = gsap.to(textMesh.rotation, { duration: 3, y: Math.PI * 4 });
const fadeTween = gsap.to(textMaterial, { duration: 1, opacity: 0, onComplete: function() {
renderer.domElement.remove();
document.body.style.backgroundColor = "#BADA55" //this is intentional
}});
const timeline = gsap.timeline({ defaults: { ease: 'power2.inOut' } });
timeline.add(rotationTween).add(fadeTween);
});
window.addEventListener('resize', function () {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
function render() {
renderer.render(scene, camera);
requestAnimationFrame(render);
}
render();
</script-->
<button onclick="toggleBgSong()" id="playButton">play music⏵</button><br>
<audio id="bgSong" src="./media/songs/SONG.mp3" autoplay="" loop=""></audio>
<input type="range" min="1" max="100" value="100" placeholder="volume (1-100)" id="songVolumeSlider" style="accent-color: #008080;"/>
<button onclick="window.location.href='https://daxy.lol/login';" id="loginButton" style="position: fixed; top: 20px; right: 20px;">admin login</button>
<script>
//song system
window.mobileAndTabletCheck = function() { //a function that checks if youre on a phone/tablet
var check = false;
(function(a) {
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true;
})(navigator.userAgent || navigator.vendor || window.opera);
return check;
};
//pc
function toggleBgSong() {
if (document.getElementById('playButton').innerHTML == 'play music⏵') {
document.getElementById('bgSong').play()
document.getElementById('playButton').innerHTML = 'stop music⏸'
} else {
document.getElementById('bgSong').pause()
document.getElementById('playButton').innerHTML = 'play music⏵'
}
}
window.addEventListener('load', function() { //on page load, determine if the song is playing, and set the volume of it
document.getElementById('bgSong').addEventListener('play', function() {
document.getElementById('playButton').innerHTML = 'stop music⏸'
}, false)
document.getElementById('songVolumeSlider').addEventListener('change', function() {
document.getElementById('bgSong').volume = document.getElementById('songVolumeSlider').value / 100
localStorage.setItem('songVolume', document.getElementById('songVolumeSlider').value / 100)
}, false);
})
document.getElementById('bgSong').volume = localStorage.getItem('songVolume', 1.0) || 1.0
document.getElementById('songVolumeSlider').value = localStorage.getItem('songVolume', 1.0) * 100 || 100
//mobile (especially ios)
if (mobileAndTabletCheck()) { //if on mobile/tablet (audio functions weirdly differently there in my experience)
var song = new Audio(document.getElementById('bgSong').src)
toggleBgSong = function() {
song.addEventListener('ended', function() {
this.currentTime = 0;
this.play();
}, false);
if (document.getElementById('playButton').innerHTML == 'play music⏵') {
song.play();
document.getElementById('playButton').innerHTML = 'stop music⏸'
} else if (document.getElementById('playButton').innerHTML == 'stop music⏸') {
location.reload(false)
}
}
document.getElementById('playButton').addEventListener('click', function() {
toggleBgSong()
})
}
</script>
<div id="jumpscare text" style="pointer-events: auto;">
<marquee scrollamount="15" id="main-text" style="font-size: 25px; color:#008080; font-family: 'Trebuchet MS', sans-serif; position: fixed; bottom: 0;"; onclick="show(), scream(), change()">text script no worky, please enable javascript</marquee>
</div>
<div id="experimental-radio" style="pointer-events: none; display: none;">
<span id="experimental-radio-text" style="margin-left: 6px; font-size: 15px; color:#008080; font-family: 'Trebuchet MS', sans-serif; position: fixed; top: 1.2%; left: 13.35%">radio script no worky, please enable javascript</span>
</div>
<div id="jumpscare-div" style="pointer-events: none; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 105%; z-index: 9999;">
<img id="gif" style="object-fit: cover; width: 100%; height: 96%; pointer-events: none;" src="./media/jumpscares/jumpscare3.gif" loop="false"/>
<audio id="sound" src="./media/sounds/scream3.mp3"></audio>
</div>
<script id="random-sentence">
const sentences = [
"there is nothing here... or perhaps there might be... what are you looking at me for? i'm not interesting man i'm litteraly just a piece of text designed to throw you off... Or am i? To be honest i'm not quite sure but you shouldn't click me because i don't do anything. why are you still on this site? there's still nothing to see here and there's clearly no reason for you to be here... right?",
"sasasas",
"asiojaiosj",
"i have no idea what to put here so enjoy this text sliding smoothly to the left side of your screen",
"what do you mean <center> is deprecated?",
"visit the all new admin login page on the top right of your screen its great n stuff yeah check it out even though you cant login i think (maybe if you try hard enough)",
"daxy.lol",
"this website has been sponsored by https://saws.land",
"fun fact: i'm rapidly approaching your position as we speak"
];
function randomSentence() {
const randomIndex = Math.floor(Math.random() * sentences.length);
const randomSentence = sentences[randomIndex];
const textElement = document.getElementById('random-sentence');
document.getElementById('main-text').textContent = randomSentence;
}
randomSentence();
</script>
<script id="reset">
function reset() {
document.getElementById("gottem").style.display = 'none';
document.getElementById("jumpscare text").style.pointerEvents = 'auto';
document.getElementById("main-text").textContent = 'there is nothing here... i think?';
}
</script>
<center>
<div id="gottem" style="pointer-events: none; display: none; position: fixed; top: -200; left: 0; width: 100%; height: -100%; z-index: 9998">
<img id="gif" style="object-fit: cover; width: 10%; height: 50%; pointer-events: none;" src="./media/deeznuts.gif" loop="true"/>
</div>
</center>
<script id="misc-functions"> //i get bored and write random shit sometimes
// probably temporary
function changejumpscare(file, reset) {
var jumpscarefile = `./media/jumpscares/${file}`;
if (reset === true) {
document.getElementById("gif").src = jumpscarefile;
document.getElementById("gottem").style.display = 'none';
document.getElementById("jumpscare text").style.pointerEvents = 'auto';
document.getElementById("main-text").textContent = 'there is nothing here... i think?';
} else {
throw 'invalid second argument noob'
}
};
function show() {
const container = document.getElementById("jumpscare-div");
container.style.display = 'block';
//document.body.style.backgroundColor = '#000000'
//document.getElementById('main-text').style.color = '#000000'
setTimeout(() => {
container.style.display = 'none';
//document.body.style.backgroundColor = '#BADA55'
//document.getElementById('main-text').style.color = '#008080'
}, 1720);
};
function scream() {
const sound = document.getElementById('sound');
sound.play();
setTimeout(() => {
sound.pause();
sound.currentTime = 0;
}, 1720)
};
function change() {
setTimeout(() => { // fuck settimeout
const container2 = document.getElementById("gottem");
container2.style.display = 'block';
document.getElementById("main-text").textContent = null
document.getElementById("jumpscare text").style.pointerEvents = 'none'
}, 250)
};
function changeSong(file) {
if (file === undefined) {
throw new Error("file argument undefined or file doesn't exist")
} else if (typeof file !== 'string') {
throw new Error("file argument needs to be a string")
}
var song = `./media/songs/${file}`
document.getElementById("bgSong").src = song
return `changed song to ${file.split('.')[0]}`
};
function songs() {
var songs = ["SONG.mp3", "SONG2.mp3", "USA.mp3"]; //unfinished
return songs.toString()
};
function alertOnce(msg){
var alertShown=sessionStorage.getItem('alertShown')
if(!alertShown){
alert(msg)
sessionStorage.setItem('alertShown',true)
}
};
function gtaRadio(RadioStation) { // gta 5 has the best radio stations change my mind
alertOnce("this is experimental so expect bugs n whatnot");
document.getElementById("experimental-radio").style.display = 'block';
document.getElementById("stationSelectorDiv").style.display = 'block';
document.getElementById("bgSong").removeAttribute("loop");
const gtaSongs = [
{ "song": "./media/radio-stations/East-Los-FM/ElCocaino.mp3", "name": "El Cocaino", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/Estoy.mp3", "name": "Es toy", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/RadioCapital.mp3", "name": "Radio Captital", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/Autos,ModaYRockandRoll.mp3", "name": "Autos, Moda Y Rock and Roll", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/ElTatuado.mp3", "name": "El Tatuado", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/SeMePerdiólaCadenita.mp3", "name": "Se Me Perdió la Cadenita", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/She'saTease.mp3", "name": "She's a Tease", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/Pachuco.mp3", "name": "Pachuco", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/ElSonidito.mp3", "name": "El Sonidito", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/Fresco.mp3", "name": "Fresco", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/TengoElDon.mp3", "name": "Tengo El Don", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/LaGranja.mp3", "name": "La Granja", "station": "East Los FM" },
{ "song": "./media/radio-stations/East-Los-FM/ElReyYYo.mp3", "name": "El Rey Y Yo", "station": "East Los FM" },
{ "song": "./media/radio-stations/Radio-Los-Santos/SlowDown.mp3", "name": "Slow Down", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/LifeOfAMack.mp3", "name": "Life Of A Mack", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Illuminate.mp3", "name": "Illuminate", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/StillLivin'.mp3", "name": "Still Livin'", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/TooHood.mp3", "name": "Too Hood", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/HoodGoneLoveIt.mp3", "name": "Hood Gone Love It", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/A.D.H.D.mp3", "name": "A.D.H.D", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/HoldUp.mp3", "name": "Hold Up", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/SayThatThen.mp3", "name": "Say That Then", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/I'maReal1(Prod.ByDJMustard).mp3", "name": "I'm a Real 1 (Prod. By DJ Mustard)", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/AliBomaye.mp3", "name": "Ali Bomaye", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/ICan'tWait.mp3", "name": "I Can't Wait", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/UpperEchelon.mp3", "name": "Upper Echelon", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Millions.mp3", "name": "Millions", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/CollardGreens.mp3", "name": "Collard Greens", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/DoIt.mp3", "name": "Do It", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Relaxin'.mp3", "name": "Relaxin'", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Sellin'Dope.mp3", "name": "Sellin' Dope", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/KushComa.mp3", "name": "Kush Coma", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/CameThru-Easily(Feat.MacMiller&Ab-Soul).mp3", "name": "Came Thru - Easily (Feat. Mac Miller & Ab-Soul)", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Work.mp3", "name": "Work", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/BadNewsft.DannyBrown(Prod.Alchemist).mp3", "name": "Bad News ft. Danny Brown (Prod. Alchemist)", "station": "Radio Los Santos" },
{ "song": "./media/radio-stations/Radio-Los-Santos/Bugatti.mp3", "name": "Bugatti", "station": "Radio Los Santos" }, // I WOKE UP IN A NEW BUGGATI
{ "song": "./media/radio-stations/iFruit-Radio/100kOnACoup.mp3", "name": "100k On A Coup", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/ActUp.mp3", "name": "Act Up", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/Alienz.mp3", "name": "Alienz", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/BacktoBasics(FloatingPointsRemix).mp3", "name": "Back to Basics (Floating Points Remix)", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/Bop.mp3", "name": "BOP", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/CashShit.mp3", "name": "Cash Shit", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/CrimePays.mp3", "name": "Crime Pays", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/DanceInTheWater.mp3", "name": "Dance In The Water", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/EverythingSheWants.mp3", "name": "Everything She Wants", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/GreazeMode.mp3", "name": "Greaze Mode", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/HighestInTheRoom.mp3", "name": "Highest In The Room", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/Hot(Remix).mp3", "name": "Hot (Remix)", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/INeed.mp3", "name": "I Need", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/KillinDem.mp3", "name": "Killin Dem", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/KissandTell.mp3", "name": "Kiss and Tell", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/KitchenKings.mp3", "name": "Kitchen Kings", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/KnockYourBlockOff.mp3", "name": "Knock Your Block Off", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/MoneyInTheBan.mp3", "name": "Money In The Ban", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/MustBe.mp3", "name": "Must Be", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/NumbNumbJuice.mp3", "name": "Numb Numb Juice", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/Opotoyi(Marlians).mp3", "name": "Opotoyi (Marlians)", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/OriginalFormat.mp3", "name": "Original Format", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/PatternChanel.mp3", "name": "Pattern Chanel", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/PopStar.mp3", "name": "Pop Star", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/ReadytoGo.mp3", "name": "Ready to Go", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/W.mp3", "name": "W", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/Wings.mp3", "name": "Wings", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/iFruit-Radio/WiththeThing.mp3", "name": "With the Thing", "station": "iFruit Radio" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/Rhythmofthenight.mp3", "name": "Rhythm of the night", "station": "Non Stop Pop FM" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/Lady(HereMeTonight).mp3", "name": "Lady (Hear Me Tonight)", "station": "Non Stop Pop FM" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/GimmeMore.mp3", "name": "Gimme More", "station": "Non Stop Pop FM" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/OnlyGirlIntheWorld.mp3", "name": "Only Girl In the World", "station": "Non Stop Pop FM" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/TheMusicSoundsBetterwithYou.mp3", "name": "The Music Sounds Better with You", "station": "Non Stop Pop FM" },
{ "song": "./media/radio-stations/Non-Stop-Pop-FM/Don'tWannaFallInLove.mp3", "name": "Don't Wanna Fall In Love", "station": "Non Stop Pop FM" },
];
var filteredSongs = RadioStation
? gtaSongs.filter(song => song.station === RadioStation)
: gtaSongs
if (filteredSongs.length > 0) {// hot garbage
var randomGtaSongIndex = Math.floor(Math.random() * filteredSongs.length);
var randomGtaSong = filteredSongs[randomGtaSongIndex]
document.getElementById("experimental-radio-text").innerHTML = `playing <b>${filteredSongs[randomGtaSongIndex].name}</b> on station <b>${filteredSongs[randomGtaSongIndex].station}</b>`
document.getElementById("bgSong").src = randomGtaSong.song
return `song: ${filteredSongs[randomGtaSongIndex].name}, station: ${filteredSongs[randomGtaSongIndex].station}`
} else {
return RadioStation
? `no songs found for station ${RadioStation}.`
: "station does not exist."
};
document.getElementById("bgSong").addEventListener("ended", function() {
gtaRadio(RadioStation)
})
};
</script>
<div id="stationSelectorDiv" style="display: none; position: fixed; top: 1.1%; left: 6%">
<select name="stationSelector" id="stationSelector" style="font-family: Arial, Helvetica, sans-serif; color:#008080; background-color: #bada55; border-width: 2px; border-color: buttonborder; border-image: initial; border-style: outset">
<option id="0" selected="default">Random Station</option>
<option id="1" value="east los fm">East Los FM</option>
<option id="2" value="radio los santos">Radio Los Santos</option>
<option id="3" value="ifruit radio">iFruit Radio</option>
<option id="4" value="non stop pop fm">Non Stop Pop FM</option>
</select>
<script>
var stationSelector = document.getElementById("stationSelector")
stationSelector.addEventListener("change", function() {
if (document.getElementById(0).selected === true) {
gtaRadio()
} else if (document.getElementById(1).selected === true) {
gtaRadio("East Los FM")
} else if (document.getElementById(2).selected === true) {
gtaRadio("Radio Los Santos")
} else if (document.getElementById(3).selected === true) {
gtaRadio("iFruit Radio")
} else if (document.getElementById(4).selected === true) {
gtaRadio("Non Stop Pop FM")
};
});
</script>
</div>
</body>
</html>