diff --git a/index.html b/index.html index 2b6992f..8e58c31 100644 --- a/index.html +++ b/index.html @@ -106,6 +106,17 @@ return elm; })(), ]), + elm("div",{},[ + elm("span",{},[textelm("Full Screen")]), + toggleButton().Listen("click",(e)=>{ + if (e.target.dataset.stat=="on") { + document.querySelector("body").requestFullscreen() + } + else { + document.exitFullscreen() + } + }), + ]), ])}, keyboard: ()=>{ let cnv = elm("canvas",{class:"center",id:"screenkeyboard"},[]).Listen("flick",(e)=>{