💨🏩 Checkpoint

./views/index.html:1954897/5363
./public/script.js:1954897/6820
This commit is contained in:
Glitch (hello-express) committed 2019-06-28 05:00:19 +00:00
1 parent 5c17e11b8d
commit 7bc62b43f6
2 files changed
+10 -2

No files matched your search

+8
View File
@@ -21,4 +21,12 @@
})
}
window.addEventListener("orientationchange", function () {
requestAnimationFrame(function () {
var landscape = window.matchMedia("(orientation: landscape)").matches
alert(landscape ? "Horizontally" : "Vertically")
})
}, false);
}());