diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_LEFT.png b/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_LEFT.png deleted file mode 100644 index ac2c46d08..000000000 Binary files a/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_LEFT.png and /dev/null differ diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_RIGHT.png b/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_RIGHT.png deleted file mode 100644 index b5e960a8b..000000000 Binary files a/server-data/resources/[bpt_addons]/bpt_loadscreen/img/ARROW_RIGHT.png and /dev/null differ diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/index.html b/server-data/resources/[bpt_addons]/bpt_loadscreen/index.html index 67d5c18cb..b5903e755 100644 --- a/server-data/resources/[bpt_addons]/bpt_loadscreen/index.html +++ b/server-data/resources/[bpt_addons]/bpt_loadscreen/index.html @@ -19,11 +19,6 @@ VOLUME DOWN -
- - - CHANGE MUSIC -
MUTE @@ -33,12 +28,10 @@
-
-
JOINING SERVER
@@ -55,10 +48,10 @@
- +
- +
diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/script/main.js b/server-data/resources/[bpt_addons]/bpt_loadscreen/script/main.js index 9c81756e7..9eb0a6503 100644 --- a/server-data/resources/[bpt_addons]/bpt_loadscreen/script/main.js +++ b/server-data/resources/[bpt_addons]/bpt_loadscreen/script/main.js @@ -3,19 +3,6 @@ function getRandomSongNumber() { return random = Math.floor(Math.random() * 3) + 1; } -// Function for getting random number between 1 and 3 for song choose - -// Function for setting a random song -function setNewSong() { - if (random == 1) { - document.getElementById('loading').src = 'song/christmas1.mp3'; - } - else if (random == 2) { - document.getElementById('loading').src = 'song/christmas2.mp3'; - } - -} -// Function for setting a random song // Function for random song select on page loaded document.addEventListener('DOMContentLoaded', function() { @@ -40,48 +27,6 @@ window.addEventListener('keyup', function(e) { vid.volume = Math.max(vid.volume - 0.025, 0); }; }); -// Function for lower or higher up sound in background, its working function in script but its not noted in text// - -const mutetext = document.getElementById('text'); - -window.addEventListener('keyup', function(event) { - // eslint-disable-next-line no-inline-comments - if (event.which == 37) { // ArrowLEFT - if (document.getElementById('loading').src.endsWith('christmas2.mp3')) { - document.getElementById('loading').src = 'song/christmas1.mp3'; - - } - else if (document.getElementById('loading').src.endsWith('christmas1.mp3')) { - document.getElementById('loading').src = 'song/song3.mp3'; - - } - else if (document.getElementById('loading').src.endsWith('song3.mp3')) { - document.getElementById('loading').src = 'song/christmas2.mp3'; - } - document.getElementById('loading').play(); - mutetext.innerHTML = 'MUTE'; - } - - // eslint-disable-next-line no-inline-comments - if (event.which == 39) { // ArrowRIGHT - if (document.getElementById('loading').src.endsWith('christmas2.mp3')) { - document.getElementById('loading').src = 'song/song3.mp3'; - - } - else if (document.getElementById('loading').src.endsWith('song3.mp3')) { - document.getElementById('loading').src = 'song/christmas1.mp3'; - - } - else if (document.getElementById('loading').src.endsWith('christmas1.mp3')) { - document.getElementById('loading').src = 'song/christmas2.mp3'; - - } - document.getElementById('loading').play(); - mutetext.innerHTML = 'MUTE'; - } - -}); - // Function for pause and play music in background// const audio = document.querySelector('audio'); diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas1.mp3 b/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas1.mp3 deleted file mode 100644 index 34f7cfef5..000000000 Binary files a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas1.mp3 and /dev/null differ diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas2.mp3 b/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas2.mp3 deleted file mode 100644 index 7829416d9..000000000 Binary files a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/christmas2.mp3 and /dev/null differ diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/intro.mp3 b/server-data/resources/[bpt_addons]/bpt_loadscreen/song/intro.mp3 new file mode 100644 index 000000000..9c517b7a9 Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_loadscreen/song/intro.mp3 differ diff --git a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/song3.mp3 b/server-data/resources/[bpt_addons]/bpt_loadscreen/song/song3.mp3 deleted file mode 100644 index dfe68cf1c..000000000 Binary files a/server-data/resources/[bpt_addons]/bpt_loadscreen/song/song3.mp3 and /dev/null differ