-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (69 loc) · 2.18 KB
/
index.html
File metadata and controls
69 lines (69 loc) · 2.18 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Last Hitting practice</title>
<style>
body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#grid-container {
display: grid;
grid-template-columns: 75% 25%;
height: 100%;
}
canvas {
display: block; /* Prevent scrollbar */
border: 2px solid #ccc; /* Add a border around the canvas */
box-sizing: border-box; /* Include border in the element's total width and height */
width: 100%; /* Make canvas fill its container */
height: 100%;
}
#stats {
padding: 20px;
border: 2px solid #ccc; /* Add a border for visual separation */
box-sizing: border-box;
overflow-y: auto; /* Enable scrolling if content overflows */
height: 20vh; /* Set the height to 40% of the viewport height */
}
#configuration {
padding: 20px;
border: 2px solid #ccc; /* Add a border for visual separation */
box-sizing: border-box;
overflow-y: auto; /* Enable scrolling if content overflows */
height: 80vh; /* Set the height to 60% of the viewport height */
}
</style>
</head>
<body>
<div id="grid-container">
<canvas id="myCanvas"></canvas>
<div id="data-container">
<div id="stats">
<h2>Stats</h2>
<p>Successful last hits: <span id="last-hit-counter">0</span></p>
<p>Missed last hits: <span id="missed-counter">0</span></p>
</div>
<div id="configuration">
<h2>Configuration</h2>
<div>
<label for="minion-health">Minion Health:</label>
<input type="number" id="minion-health" value="100">
</div>
<div>
<label for="damage">Damage:</label>
<input type="number" id="damage" value="10">
</div>
<button id="apply-configuration">Apply</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>