File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1919</ head >
2020< body >
2121 < canvas id ="canvas "> </ canvas >
22+ < div id ="help ">
23+ < p > Tile: scroll, swipe ↑↓</ p >
24+ < p > Color: shift + scroll, swipe ←→</ p >
25+ </ div >
2226 < div class ="select " id ="colors "> </ div >
2327 < div class ="select " id ="tiles "> </ div >
2428 < script type ="module " src ="tile.js "> </ script >
Original file line number Diff line number Diff line change @@ -80,3 +80,13 @@ input[type="radio"]:checked {
8080@media screen and (min-width : 15cm ) {
8181 .select { width : 50% ; }
8282}
83+
84+ # help {
85+ position : fixed;
86+ top : 50% ;
87+ background-color : black;
88+ padding : 1em ;
89+ font-size : 22pt ;
90+ box-shadow : 0 0 16px 16px black;
91+ transition : opacity 1s ease-in-out;
92+ }
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ function RadioHandler( e ){
128128}
129129
130130function EventHandler ( e ) {
131+ // document.getElementById( 'help' ).style.display = 'none';
132+ document . getElementById ( 'help' ) . style . opacity = 0 ;
131133 switch ( e . type ) {
132134 case 'keydown' :
133135 switch ( e . key ) {
You can’t perform that action at this time.
0 commit comments