-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (31 loc) · 1.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number Guess</title>
<link rel="icon" href="icon.webp" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="overlay" id="overlay"></div>
<div class="modal" id="resultModal">
<h2>Prediction</h2>
<p>The number you drew is: <span id="predictedNumber">...</span></p>
<button onclick="tryAgain()" class="try-again-btn">Try Again</button>
</div>
<h1 id="heading">Number Predictor</h1>
<div class="grid_container">
<div class="scanLine-h"></div>
<div class="scanLine-v"></div>
<div class="grid" id="grid"></div>
<div class="controls">
<button onclick="clearGrid()" class="clear-btn">Clear</button>
<button onclick="getPixelValues()" class="predict-btn">Predict Number</button>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"></script>
<script src="script.js"></script>
</html>