123456789101112131415161718192021222324252627282930313233343536373839 |
- <!DOCTYPE html>
- <html lang="">
-
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>p5.js example</title>
- <link href="./css/style.css" rel="stylesheet">
- <script src="./js/p5.min.js"></script>
- <script src="./js/cell.js"></script>
- <script src="./js/grid.js"></script>
- <script src="./js/sketch.js"></script>
- </head>
-
- <body>
- <menu>
- <menuitem>
- <label>Columns</label>
- <input type="number" size="5" id="columns" value="40">
- </menuitem>
- <menuitem>
- <label>Rows</label>
- <input type="number" size="5" id="rows" value="30">
- </menuitem>
- <menuitem>
- <label>Mines</label>
- <input type="number" size="5" id="mines" value="50">
- </menuitem>
- <menuitem>
- <label>Cell size</label>
- <input type="number" size="5" id="cellsize" value="20">
- </menuitem>
- <button type="button" onclick="newGame()">New game</button>
- </menu>
- <main oncontextmenu="return false;">
- </main>
- </body>
-
- </html>
|