We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 327d1c5 commit 7186e68Copy full SHA for 7186e68
1 file changed
minesweeper/index.html
@@ -0,0 +1,28 @@
1
+<!doctype html>
2
+<html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Minesweeper</title>
7
+ <script src="https://cjrtnc.leaningtech.com/4.2/loader.js"></script>
8
+ <style>
9
+ html, body {
10
+ margin: 0;
11
+ }
12
+
13
+ #container {
14
+ width: 100vw;
15
+ height: 100svh;
16
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <div id="container"></div>
21
+ <script type="module">
22
+ await cheerpjInit();
23
+ cheerpjCreateDisplay(-1, -1, document.getElementById("container"));
24
+ const dir = location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1);
25
+ await cheerpjRunJar(`/app${dir}Minesweeper.jar`);
26
+ </script>
27
+ </body>
28
+</html>
0 commit comments