File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -447,13 +447,13 @@ function AnimatedRotateRight(ctx) {
447447
448448function setClickedTileActive ( t ) {
449449
450- // var oldCanvasID = Tiles[activeTileID].getCanvas().id;
451- // document.getElementById(oldCanvasID).style = "border:0px ";
450+ var oldCanvasID = Tiles [ activeTileID ] . getCanvas ( ) . id ;
451+ document . getElementById ( oldCanvasID ) . style . border = "3px solid white " ;
452452
453453 activeTileID = t ;
454454
455- // var newCanvasID = Tiles[activeTileID].getCanvas().id;
456- // document.getElementById(newCanvasID).style = "border:2px solid red";
455+ var newCanvasID = Tiles [ activeTileID ] . getCanvas ( ) . id ;
456+ document . getElementById ( newCanvasID ) . style . border = "3px dotted red" ;
457457
458458
459459 print ( 'output' , "Clicked Tile = " + t ) ;
Original file line number Diff line number Diff line change 11body { background-color : # FFFFFF ;
22 padding : 0 ; }
3+
4+ canvas {
5+ margin : -2px ;
6+ padding : 0px ;
7+ border : 3px solid white;
8+ outline : 0 ;
9+ font-size : 100% ;
10+ vertical-align : baseline;
11+ background : transparent;
12+ }
13+
314
Original file line number Diff line number Diff line change 66 </ head >
77 < body onload ="setMultigridEnvironment() ">
88
9- < canvas id ="canvas00 " width ="201 " height ="201 " margin =" 0 " padding =" 0 " border =" 0 " > </ canvas >
10- < canvas id ="canvas10 " width ="201 " height ="201 " margin =" 0 " padding =" 0 " border =" 0 " > </ canvas >
11- < canvas id ="canvas20 " width ="201 " height ="201 " margin =" 0 " padding =" 0 " border =" 0 " > </ canvas >
9+ < canvas id ="canvas00 " width ="201 " height ="201 "> </ canvas >
10+ < canvas id ="canvas10 " width ="201 " height ="201 "> </ canvas >
11+ < canvas id ="canvas20 " width ="201 " height ="201 "> </ canvas >
1212 < br />
1313 < canvas id ="canvas01 " width ="201 " height ="201 "> </ canvas >
1414 < canvas id ="canvas11 " width ="201 " height ="201 "> </ canvas >
You can’t perform that action at this time.
0 commit comments