Request landscape orientation

This commit is contained in:
Arne Keller 2022-02-01 10:33:08 +01:00
parent 1c89765b63
commit 5f66862843

View File

@ -276,6 +276,7 @@ document.getElementById("start").onclick = () => {
set_head_gn();
try {
document.body.requestFullscreen();
window.screen.orientation.lock.call(window.screen.orientation, 'landscape');
} catch (e) {
// browser doesn't support this API, try another hack
window.scrollTo(0,1);