🚘🐢 Checkpoint

./public/script.js:1954897/4998
./views/index.html:1954897/9678
This commit is contained in:
Glitch (tabu)
2019-07-01 14:05:08 +00:00
parent b5eeef9269
commit fa1b1fed56
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -60,6 +60,9 @@
screen.orientation.lock('landscape')
})
})
document.addEventListener('exit-fs', e => {
document.exitFullscreen()
});
document.addEventListener('view-word', e => {
// Display the word in the h1
const game = document.getElementById('game')
+1 -1
View File
@@ -92,7 +92,7 @@
<div class="alt">Mi palabra prohibida es...</div>
<h1 class="center" style="font-size: 4rem;"></h1>
<div class="alt center word-type"></div>
<button class="btn" data-open="main"
<button class="btn" data-open="main" data-fire="exit-fs"
style="position: fixed; right: 1rem; bottom: 1rem;">
¡Se acabó!
</button>