From 51c9d6814b3bc1cab81e08cfa168c930622240f6 Mon Sep 17 00:00:00 2001 From: pisouvigne Date: Wed, 10 Jun 2020 15:25:00 +0200 Subject: [PATCH] responsive tentative --- site/js/func.js | 9 +++++++++ site/vues/jeu.html | 33 ++++++++++++++++++++++++++++++++- site/vues/test.html | 26 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 site/vues/test.html 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