-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 1.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<title>TicTacToe Game</title>
<script async src="/build/OOPProject.js"></script>
<script src="/script.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap">
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
// let importObject = {
// env: {
// memory: new WebAssembly.Memory({ initial: 256 }),
// table: new WebAssembly.Table({ initial: 0, element: 'anyfunc' }),
// abort: () => console.log('Abort called')
// }
// };
// WebAssembly.instantiateStreaming(fetch('build/OOPProject.wasm'), importObject)
// .then(obj => {
// const { memory, table, abort } = obj.instance.exports;
// window.memory = memory;
// window.table = table;
// window.abort = abort;
// });
</script>
<button onclick="loadInitialContent()" id="back-btn">Back</button>
<div id="game-content">
<h1 id="game-heading">Tic Tac Toe</h1>
<p id="game-para">Welcome to our game!</p>
<button onclick="loadSecondContent()" id="play-btn">Play</button>
<button onclick="undoPurchaseClick()" id="undo-purchase-click">Get 2 undo moves for 100 coins</button>
</div>
</body>
</html>