new commit
This commit is contained in:
Binary file not shown.
BIN
app/assets/audio/main_menu.mp3
Normal file
BIN
app/assets/audio/main_menu.mp3
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 389 KiB |
BIN
app/assets/img/sulli.png
Normal file
BIN
app/assets/img/sulli.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 846 KiB |
@@ -7,7 +7,7 @@ const audioPourcentageLabel = document.querySelector("label[for='audioVolume']")
|
||||
const audio = new Audio()
|
||||
|
||||
function startAudio() {
|
||||
audio.src = "./assets/audio/Golden Hill (Radio Edit).mp3"
|
||||
audio.src = "./assets/audio/main_menu.mp3"
|
||||
audio.loop = true
|
||||
audio.play()
|
||||
audio.onended = () => {
|
||||
@@ -76,7 +76,7 @@ function updateVolume(value) {
|
||||
}
|
||||
|
||||
function logout() {
|
||||
localStorage.removeItem("user")
|
||||
system.call("auth::reset")
|
||||
document.location.href = './login.html'
|
||||
}
|
||||
|
||||
@@ -84,12 +84,6 @@ system.result("server::ping", pong => {
|
||||
playersStatus.innerText = `${pong.players.online}/${pong.players.max}`
|
||||
})
|
||||
|
||||
system.result("player::profile", playerProfile => {
|
||||
if (!localStorage.getItem("user")) {
|
||||
localStorage.setItem("user", JSON.stringify(playerProfile))
|
||||
}
|
||||
})
|
||||
|
||||
function handleOptionsChanges(key, value) {
|
||||
system.call("game::optionSet", { key, value })
|
||||
}
|
||||
@@ -123,6 +117,11 @@ system.result("game::launch", info => {
|
||||
}
|
||||
})
|
||||
|
||||
system.result("player::profile", playerProfile => {
|
||||
console.log(playerProfile)
|
||||
})
|
||||
|
||||
|
||||
window.onload = () => {
|
||||
system.call("hardware::ramInformation")
|
||||
system.call("game::parseOptions")
|
||||
|
||||
@@ -18,13 +18,4 @@ system.result("auth::microsoft", () => {
|
||||
|
||||
system.result("auth::refresh", () => {
|
||||
selectLoginType("select")
|
||||
})
|
||||
|
||||
window.onload = () => {
|
||||
if (localStorage.getItem("user")) {
|
||||
system.call("auth::refresh", {
|
||||
user: JSON.parse(localStorage.getItem("user"))
|
||||
})
|
||||
selectLoginType("token")
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -210,7 +210,7 @@
|
||||
</button>
|
||||
</section>
|
||||
<section class="right">
|
||||
<img class="mascot" src="./assets/img/alcaz_mascote.png" alt="">
|
||||
<img class="mascot" src="./assets/img/sulli.png" alt="">
|
||||
</section>
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user