Refactoring fullscreenhandling

This commit is contained in:
Pieter Vander Vennet 2021-01-25 03:12:09 +01:00
parent e1a4c75391
commit 00f610c589
23 changed files with 346 additions and 245 deletions

View file

@ -119,11 +119,10 @@ if (layoutFromBase64.startsWith("wiki:")) {
} else {
// We fall through: no theme loaded: just show a few buttons
State.state = new State(undefined);
document.getElementById("messagesboxmobile").remove();
new Combine([new MoreScreen(true)
.SetStyle("pointer-events: all;"),
Translations.t.general.openStreetMapIntro
]).AddClass("block m-5 lg:w-3/4 lg:ml-40")
]).SetClass("block m-5 lg:w-3/4 lg:ml-40")
.AttachTo("topleft-tools");
}
window.addEventListener('contextmenu', function (e) { // Not compatible with IE < 9