diff --git a/site/js/func.js b/site/js/func.js index 6319442..24f5659 100644 --- a/site/js/func.js +++ b/site/js/func.js @@ -156,3 +156,12 @@ function calculNombreSwitch(){ } + +function resize(){ + console.log(window.innerWidth); + stage.scale({ x: 1, y: 1 }); + stage.draw(); + console.log(stage); +} + + diff --git a/site/vues/jeu.html b/site/vues/jeu.html index 6ccc1fb..1920164 100644 --- a/site/vues/jeu.html +++ b/site/vues/jeu.html @@ -63,6 +63,7 @@
\ No newline at end of file diff --git a/site/vues/test.html b/site/vues/test.html new file mode 100644 index 0000000..882395d --- /dev/null +++ b/site/vues/test.html @@ -0,0 +1,26 @@ + + + +onresize test + + + + +

Resize the browser window to fire the resize event.

+ +

Window height:

+

Window width:

+ + + + \ No newline at end of file