🍧🎓 Checkpoint
./public/styles.css:1954897/100 ./views/index.html:1954897/37487 ./public/script.js:1954897/13888
This commit is contained in:
1 parent
d13977cefc
commit
90c90920ad
3 files changed
+21
-9
No files matched your search
+11
-2
@@ -20,11 +20,20 @@
|
||||
}
|
||||
prev = iam
|
||||
})
|
||||
if (btns[i].dataset.fire) {
|
||||
btns[i].addEventListener('click', function (e) {
|
||||
console.log(this, e)
|
||||
document.dispatchEvent(new Event(this.dataset.fire))
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const fs = document.getElementById('fs')
|
||||
|
||||
fs.addEventListener('click', e => {
|
||||
document.addEventListener('word', (e) => {
|
||||
console.log('Word dispatched')
|
||||
});
|
||||
|
||||
document.addEventListener('fs', (e) => {
|
||||
if (!screen.orientation.lock) return
|
||||
document
|
||||
.documentElement
|
||||
|
||||
Reference in new issue
Block a user