Skip to content

Commit

Permalink
フルスクリーンボタンを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
bem130 committed Jul 7, 2024
1 parent 1002497 commit d7acf4e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)=>{
Expand Down

0 comments on commit d7acf4e

Please sign in to comment.