-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepare.html
More file actions
79 lines (72 loc) · 3.47 KB
/
Copy pathprepare.html
File metadata and controls
79 lines (72 loc) · 3.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prepare - AI YOGA</title>
<link rel="website icon" type="png" href="/website_icon/1.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@300&family=Prompt:wght@500&display=swap" rel="stylesheet">
</head>
<body>
<div id="startbtn">
<!-- Start Navbar -->
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid col-md-6 mb-2 mb-md-0">
<a class="navbar-brand" href="index.html">
<img src="/website_icon/1.png" alt="Logo" style="width: 50px;" class="rounded-pill">
</a>
</div>
</nav>
<!-- End Navbar -->
<!-- Start Heroes-->
<div class="px-4 pt-5 my-5 text-center" style="display:block">
<h1 class="display-4 fw-bold" style="font-family: 'Prompt', sans-serif;">อุปกรณ์ที่ต้องเตรียม</h1>
<div class="overflow-hidden row row-cols-1 row-cols-lg-3 align-items-stretch g-4 py-5">
<div class="mx-auto d-block">
<img src="tool_img/1.png" class="img-fluid border rounded-3 shadow-lg mb-4" alt="Example image" width="400" height="200" loading="lazy">
<h3 class="display-6 fw-bold" style="font-family: 'Prompt', sans-serif;">เสื่อโยคะ</h3>
</div>
<div class="mx-auto d-block">
<img src="tool_img/2.png" class="img-fluid border rounded-3 shadow-lg mb-4" alt="Example image" width="400" height="200" loading="lazy">
<h3 class="display-6 fw-bold" style="font-family: 'Prompt', sans-serif;">น้ำดื่ม</h3>
</div>
<div class="mx-auto d-block">
<img src="tool_img/3.png" class="img-fluid border rounded-3 shadow-lg mb-4" alt="Example image" width="400" height="200" loading="lazy">
<h3 class="display-6 fw-bold" style="font-family: 'Prompt', sans-serif;">ผ้าขนหนู</h3>
</div>
</div>
<div class="col-lg-6 mx-auto">
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center mb-5">
<button type="button" class="btn btn-primary btn-lg px-4 me-sm-3" style="font-family: 'Kanit', sans-serif; display:block" onclick="start()">Start</button>
</div>
</div>
</div>
<!-- End Heroes -->
</div>
<!-- Start Countdown -->
<div id="showNumber" class="text-center mx-auto" style="font-size: 30em; color: red; display: none; font-family: 'Prompt', sans-serif;">3</div>
<!-- End Countdorn -->
</body>
</html>
<!-- countdown js -->
<script>
let timer = 3;
let showElement = document.getElementById('showNumber');
function start(){
showElement.style.display = 'block';
document.getElementById('startbtn').style.display = 'none';
setInterval( () => {
if(timer == 1){
window.location = 'http://localhost:5555'
return;
}
timer--;
showElement.innerHTML = timer.toString();
}, 1000)
}
</script>