-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (56 loc) · 2.18 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
<!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>Game Javascript</title>
<!-- css -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- sweet alert -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- fungsi -->
<script src="assets/js/login.js"></script>
<script src="assets/js/start_game.js"></script>
</head>
<body>
<div style="display: flex;">
<!-- canvas -->
<div id="game">
<div id="myCanvas">
<p style="color: red; position: absolute; top: 90px; left: 340px;" id="name"></p>
</div>
<button id="btnReset" onclick="reset()">Reset</button>
</div>
<!-- kotak inputan -->
<div id="kotak" >
<div style="margin-left: 18%;">
<form action="post">
<p class="judul">Login - Kuis 3</p>
<label>Username</label>
<br>
<input type="text" id="username" placeholder="username" oninput="inputanUser()">
<!-- output salah -->
<p class="notif" id="userSalah">Username Salah</p>
<p class="notif" id="userIsi">Isi Username</p>
<!-- end -->
<br>
<label>Password</label>
<br>
<input type="password" id="password" placeholder="password" oninput="inputanPw()">
<!-- output salah -->
<p class="notif" id="pwSalah">Password Salah</p>
<p class="notif" id="pwIsi">Isi Password</p>
<!-- end -->
<br>
<button type="button" id="btnLogin" onclick="login()">LOGIN</button>
</form>
</div>
</div>
<!-- gambar -->
<div style="width: 50%;" id="gambar">
<img style="width: 100%; height: 100vh;" src="assets/img/bg login.jpg" alt="gambar game">
</div>
</div>
</body>
</html>