-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
148 lines (147 loc) · 4.58 KB
/
game.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<title>PlayGame</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<style>
img {
width: 1000px;
height: 600px;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="./game.html">PlayGame</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarScroll"
aria-controls="navbarScroll"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarScroll">
<ul
class="navbar-nav mr-auto my-2 my-lg-0 navbar-nav-scroll"
style="max-height: 100px"
>
<li class="nav-item active">
<a class="nav-link" href="./game.html"
>Home <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="./lotto.html">Lotto</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./rps.html">Rock-Paper-Scissors</a>
</li>
</ul>
<div class="navbar-brand" id="time"></div>
</div>
</nav>
</header>
<main>
<div class="container mt-5">
<div
id="carousel-example-2"
class="carousel slide carousel-fade"
data-ride="carousel"
>
<ol class="carousel-indicators">
<li
data-target="#carousel-example-2"
data-slide-to="0"
class="active"
></li>
<li data-target="#carousel-example-2" data-slide-to="1"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<div class="view" id="button1" type="button">
<img
class="d-block w-100 h-60"
src="./lotto.jpg"
alt="First slide"
/>
<div class="mask rgba-black-light"></div>
</div>
</div>
<div class="carousel-item">
<div class="view" id="button2" type="button">
<img
class="d-block w-100 h-40"
src="./rps.jpg"
alt="Second slide"
/>
<div class="mask rgba-black-strong"></div>
</div>
</div>
</div>
<a
class="carousel-control-prev"
href="#carousel-example-2"
role="button"
data-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a
class="carousel-control-next"
href="#carousel-example-2"
role="button"
data-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</main>
<footer>
<div class="bg-dark py-2 mt-5">
<div class="container text-center">
<p class="text-muted mb-0 py-2">
© 2023 GlobalIn 5 jekeun jang.
</p>
</div>
</div>
</footer>
<script>
setInterval(function () {
var timer = new Date();
var h = timer.getHours();
var m = timer.getMinutes();
var s = timer.getSeconds();
$("#time").html(
"TIME " +
String(h).padStart(2, "0") +
":" +
String(m).padStart(2, "0") +
":" +
String(s).padStart(2, "0")
);
}, 1000);
$("#button1").click(function () {
location.href = "./lotto.html";
});
$("#button2").click(function () {
location.href = "./rps.html";
});
</script>
</body>
</html>