🎈👛 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 () {
|
requestAnimationFrame(function () {
|
||||||
var landscape = window.matchMedia("(orientation: landscape)").matches
|
screen.orientation.lock('landscape')
|
||||||
alert(landscape ? "Horizontally" : "Vertically")
|
|
||||||
})
|
})
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user