-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (108 loc) · 5.13 KB
/
index.html
File metadata and controls
117 lines (108 loc) · 5.13 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kitchen Timer Game</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.9.1/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="/favicon.svg">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="config.js" type="module" crossorigin="anonymous"></script>
<script src="app.js" type="module" crossorigin="anonymous"></script>
</head>
<body>
<div id="app">
<main id="kitchen" class="kitchen">
<!-- Page 1 -->
<div id="page1" class="page">
<div id="levelsCtn">
<!-- level options autogenerated here -->
</div>
<div class="page1Content">
<h1 class="title">KITCHEN<br>TIMER</h1>
<input type="text" id="userName" required placeholder="Enter your name" autocomplete="off">
<button id="startBtn" class="game-button">start</button>
</div>
</div>
<!-- Page 2 -->
<div id="page2" class="page">
<div id="recordsCtn">
<button id="recordBtn">Records</button>
</div>
<div class="page2Content">
<div id="targetTimeCtn">
<div id="targetTimeCircle"></div>
<div id="targetTimeDisplay"></div>
<div id="timerDisplay">00:00.00</div>
</div>
<br />
<div class="buttonsCtn">
<button id="againBtn" class="game-button green">Again</button>
<button id="pauseToggleBtn" class="game-button blue">Pause</button>
<button id="endBtn" class="game-button red">It's Now!</button>
<button id="backBtn" class="game-button orange">Back</button>
</div>
</div>
</div>
<!-- Page 1 -->
<img class="kitchenTable" src="./assets/image/table.png" alt="kitchen-table-image">
</main>
<!-- Result Modal -->
<div class="modal fade" id="resultModal" data-bs-keyboard="false" tabindex="-1">
<div class="modal-dialog">
<div class=" modal-content">
<div class="modal-body resultModalBody">
<div id="resultModalContent"></div>
<button id="resultModalCloseBtn" type="button" class="btn btn-light resultCloseBtn"
data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Record Modal -->
<div class="modal fade" id="recordModal" data-bs-keyboard="false" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class=" modal-content">
<div class="modal-header">
<div class="modal-title">Records</div>
<button id="recordModalCloseBtn" type="button" class="btn-close recordCloseBtn"
data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body recordModalBody">
<div class="recordModalBodyTitle">BEST</div>
<div id="bestRecordDisplay"></div>
<div class="recordModalBodyTitle">AVERAGE</div>
<table class="levelDetailsTable">
<thead>
<tr>
<th>Level</th>
<th>Average</th>
<th>Times</th>
</tr>
</thead>
<tbody id="levelDetailsTableBody"></tbody>
</table>
<div class="recordModalBodyTitle">LATEST</div>
<table class="latestRecordsTable">
<thead>
<tr>
<th>#</th>
<th>Score</th>
<th>Level</th>
</tr>
</thead>
<tbody id="latestRecordsTableBody"></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>