add: added onClick event in online tictactoe
This commit is contained in:
@ -17,11 +17,13 @@ export default class extends AbstractView
|
||||
{
|
||||
this.Morpion = new TicTacToe(this.height, this.width, 60, 60, document.getElementById("Morpion"));
|
||||
this.Morpion.DrawSuperMorpion();
|
||||
this.Morpion.SetOutline("#43d166");
|
||||
this.Morpion.init();
|
||||
}
|
||||
|
||||
async leavePage()
|
||||
{
|
||||
|
||||
this.Morpion.uninit();
|
||||
}
|
||||
|
||||
setTitle()
|
||||
|
@ -155,7 +155,7 @@ export default class extends AbstractView
|
||||
highlightNewTab(morpion);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
function findSquare(x, gap, morpion)
|
||||
{
|
||||
if (x <= gap + morpion.rectsize)
|
||||
|
Reference in New Issue
Block a user