Skip to content

Commit 7186e68

Browse files
authored
Add initial Minesweeper HTML structure
1 parent 327d1c5 commit 7186e68

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

minesweeper/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)