PaulMartrenchar commited on
Commit
d7081cd
·
1 Parent(s): 1813729

Change viewport

Browse files
Files changed (1) hide show
  1. index.html +3 -1
index.html CHANGED
@@ -2,7 +2,7 @@
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Randomizer</title>
7
  <style>
8
  body, html {
@@ -14,6 +14,7 @@
14
  display: flex;
15
  justify-content: center;
16
  align-items: center;
 
17
  }
18
 
19
  #canvas-container {
@@ -59,6 +60,7 @@
59
  function resizeCanvas() {
60
  canvas.width = window.innerWidth;
61
  canvas.height = window.innerHeight;
 
62
  }
63
 
64
  window.addEventListener('resize', resizeCanvas);
 
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
  <title>Randomizer</title>
7
  <style>
8
  body, html {
 
14
  display: flex;
15
  justify-content: center;
16
  align-items: center;
17
+ background-color: lightblue;
18
  }
19
 
20
  #canvas-container {
 
60
  function resizeCanvas() {
61
  canvas.width = window.innerWidth;
62
  canvas.height = window.innerHeight;
63
+ draw(); // Redraw the canvas after resizing
64
  }
65
 
66
  window.addEventListener('resize', resizeCanvas);