diff --git a/assets/audio/Vanilla.ogg b/assets/audio/Vanilla.ogg new file mode 100644 index 0000000..798a3e9 Binary files /dev/null and b/assets/audio/Vanilla.ogg differ diff --git a/assets/css/styles.css b/assets/css/styles.css index c910674..286cfe4 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -2,6 +2,7 @@ html, body { margin: 0; height: 100%; overflow: hidden; + } @font-face{ @@ -10,6 +11,7 @@ html, body { } #background { + background-color: #000; position: fixed; right: 0; bottom: 0; @@ -102,6 +104,7 @@ html, body { outline: none; display: inline-block; transform: scale(0.8); + filter: drop-shadow(0px 0px 8px #000); z-index: 2; } @@ -163,12 +166,16 @@ html, body { background-color: transparent; transform: scale(0.8); transition: 0.2s; + filter: drop-shadow(0px 0px 6px #000); + } .xPacButton:hover { transform: scale(0.81); + filter: drop-shadow(0px 0px 10px #000); } .xPacButton:active { transform: scale(0.79); + filter: drop-shadow(0px 0px 0px #000); } \ No newline at end of file diff --git a/assets/img/bg/Vanilla.webm b/assets/img/bg/Vanilla.webm new file mode 100644 index 0000000..b206a97 Binary files /dev/null and b/assets/img/bg/Vanilla.webm differ diff --git a/assets/img/bg/Vanilla.webm.xmp b/assets/img/bg/Vanilla.webm.xmp new file mode 100644 index 0000000..f6b77eb --- /dev/null +++ b/assets/img/bg/Vanilla.webm.xmp @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/img/ui/logos/Vanilla.png b/assets/img/ui/logos/Vanilla.png new file mode 100644 index 0000000..0de6ccb Binary files /dev/null and b/assets/img/ui/logos/Vanilla.png differ diff --git a/assets/js/audiohandler.js b/assets/js/audiohandler.js index ea41d26..370c00c 100644 --- a/assets/js/audiohandler.js +++ b/assets/js/audiohandler.js @@ -1,13 +1,16 @@ var expansion = 8; var audioSelect = { + 'Vanilla' : './assets/audio/Vanilla.ogg', 'BattleForAzeroth' : './assets/audio/BattleForAzeroth.ogg', 'Shadowlands' : './assets/audio/Shadowlands.ogg' } var videoSelect = { + 'Vanilla' : './assets/img/bg/Vanilla.webm', 'BattleForAzeroth' : './assets/img/bg/BattleForAzeroth.webm', 'Shadowlands' : './assets/img/bg/Shadowlands.webm' } var logoSelect = { + 'Vanilla' : './assets/img/ui/logos/Vanilla.png', 'BattleForAzeroth' : './assets/img/ui/logos/BattleForAzeroth.png', 'Shadowlands' : './assets/img/ui/logos/Shadowlands.png', } @@ -34,7 +37,7 @@ function waitForInteractionToPlayAudio() if(!audioInitialPlayback) { buttonAudio.volume = 0.5; - audio.volume = 0.1; + audio.volume = 0.5; audio.loop = true; audio.play(); audioInitialPlayback = true; @@ -107,14 +110,21 @@ function switchExpansion() getPositionInQueue(); var bg = document.getElementById('background'); - var logo = document.getElementById('logo') + var logo = document.getElementById('logo'); + var version = document.getElementById('buildVersion'); + var date = document.getElementById('buildDate'); + var copyright = document.getElementById('copyrightText'); audio.pause(); switch(expansion) { case 0: console.log('Vanilla'); - expansion = 7; - switchExpansion(); + audio.src = audioSelect.Vanilla; + bg.setAttribute('src', videoSelect.Vanilla); + logo.style.background = `url(${logoSelect.Vanilla})`; + version.innerHTML = 'Version 1.12.1 (5875) (Release)'; + date.innerHTML = 'Sept 19 2006'; + copyright.innerHTML = 'Copyright 2004-2006 Blizzard Entertainment. All Right Reserved.'; break; case 1: @@ -158,6 +168,9 @@ function switchExpansion() audio.src = audioSelect.BattleForAzeroth; bg.setAttribute('src', videoSelect.BattleForAzeroth); logo.style.background = `url(${logoSelect.BattleForAzeroth})`; + version.innerHTML = 'Version 8.3.7 (35662) (Release x64)'; + date.innerHTML = 'Aug 24 2020'; + copyright.innerHTML = 'Copyright 2004-2020 Blizzard Entertainment. All Right Reserved.'; break; case 8: @@ -165,6 +178,9 @@ function switchExpansion() audio.src = audioSelect.Shadowlands; bg.setAttribute('src', videoSelect.Shadowlands); logo.style.background = `url(${logoSelect.Shadowlands})`; + version.innerHTML = 'Version 9.0.1 (35944) (Release x64)'; + date.innerHTML = 'Oct 13 2020'; + copyright.innerHTML = 'Copyright 2004-2020 Blizzard Entertainment. All Right Reserved.'; break; } audio.play();