💨🏩 Checkpoint
./views/index.html:1954897/5363 ./public/script.js:1954897/6820
This commit is contained in:
1 parent
5c17e11b8d
commit
7bc62b43f6
2 files changed
+10
-2
No files matched your search
@@ -21,4 +21,12 @@
|
||||
})
|
||||
}
|
||||
|
||||
window.addEventListener("orientationchange", function () {
|
||||
requestAnimationFrame(function () {
|
||||
var landscape = window.matchMedia("(orientation: landscape)").matches
|
||||
alert(landscape ? "Horizontally" : "Vertically")
|
||||
})
|
||||
}, false);
|
||||
|
||||
|
||||
}());
|
||||
Reference in new issue
Block a user