🎈👛 Checkpoint
./public/script.js:1954897/5108
This commit is contained in:
1 parent
7bc62b43f6
commit
c77d96a571
1 file changed
+2
-3
+2
-3
@@ -21,10 +21,9 @@
|
||||
})
|
||||
}
|
||||
|
||||
window.addEventListener("orientationchange", function () {
|
||||
window.addEventListener("mousedown", function () {
|
||||
requestAnimationFrame(function () {
|
||||
var landscape = window.matchMedia("(orientation: landscape)").matches
|
||||
alert(landscape ? "Horizontally" : "Vertically")
|
||||
screen.orientation.lock('landscape')
|
||||
})
|
||||
}, false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user