-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (78 loc) · 3.36 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
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
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number Bonds Practice by David Dickinson</title>
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link id="base-theme" rel="stylesheet" href="styles1.css">
<link id="theme" rel="stylesheet" href="styles2.css">
</head>
<body>
<div class="content">
<div class="container">
<h1>Number Bonds Practice</h1>
<div class="input-section">
<label for="time">Time (seconds):</label>
<input type="number" id="time" min="10" max="600">
<label for="questions">Number of Questions:</label>
<input type="number" id="questions" min="1" max="50">
<label for="level">Number Bond Level:</label>
<input type="number" id="level" min="1">
<button id="start-btn">Start</button>
</div>
<div class="test-section" id="test-section">
<div class="timer">
<div class="circle">
<div class="inner"></div>
<div class="outer"></div>
<div class="numb" id="numb">0</div>
<div class="circle-left">
<div class="progress" id="left-progress"></div>
</div>
<div class="circle-right">
<div class="progress" id="right-progress"></div>
</div>
</div>
</div>
<div class="question" id="question"></div>
<input type="number" id="answer">
<button id="next-btn">Next</button>
</div>
<div class="result-section" id="result-section">
<h2>Results</h2>
<table id="result-table">
<thead>
<tr>
<th>Question</th>
<th>Your Answer</th>
<th>Result</th>
</tr>
</thead>
<tbody id="result-body"></tbody>
</table>
<div id="score"></div>
<button id="restart-btn">Restart</button>
</div>
</div>
</div>
<footer>
<a href="https://github.com/rnddave/website-number-bonds" target="_blank">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" width="20" height="20">
</a>
<p id="contribution-text">Do you want to help make this better?</p>
</footer>
<script src="scripts.js"></script>
<script>
const themes = [
'styles2.css', 'styles3.css', 'styles4.css',
'styles5.css', 'styles6.css'
];
const theme = themes[Math.floor(Math.random() * themes.length)];
document.getElementById('theme').href = theme;
document.getElementById('contribution-text').addEventListener('click', function() {
alert('Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure your code follows the existing style and includes appropriate documentation.');
});
</script>
</body>
</html>