-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
50 lines (50 loc) · 2.84 KB
/
table.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div style="background-color:#E9EFC0; font-family: Courier New; padding: 12px; width: 50%; margin: 50px auto; justify-content: center;">
<h3 style="text-align: center;">Tambah Kenalan</h3>
<form onsubmit="isiTabel(); return false;" required style="justify-content: center; text-align: center;">
<label style="text-align: left;">Nama</label><br>
<input type="text" id = "input-nama" required style="border: #B4E197 solid 2px; border-radius: 5px;" ><br><br>
<label>Alamat</label><br>
<input type="text" id = "input-alamat" required style="border: #B4E197 solid 2px; border-radius: 5px;" ><br><br>
<label>Instagram</label>
<div class="input-group flex-nowrap" style="width: 50%; margin: 0px auto; justify-content: center;border: #B4E197 solid 2px; border-radius: 5px;">
<span class="input-group-text" id="addon-wrapping">@</span>
<input id= "input-username" type="text" class="form-control" aria-label="Username" aria-describedby="addon-wrapping">
</div>
<br>
<label>Jenis Kelamin
<select name='Jenis Kelamin' style="font-family: Courier New; border: #B4E197 solid 2px; border-radius: 5px;" required>
<option>Pria</option>
<option>Wanita</option>
</select>
</label><br><br>
<label>URL Foto Profil</label><br>
<input type="url" id = "input-image-url" required style="border: #B4E197 solid 2px; border-radius: 5px;" ><br><br>
<input type="checkbox" required style="border: #B4E197 solid 2px; border-radius: 5px;">
<label>Setuju kenalan</label><br><br>
<button type="submit" style="border: #B4E197 solid 2px; border-radius: 5px;">Save</button>
<button type="reset" style="border: #B4E197 solid 2px; border-radius: 5px;">Reset</button>
</form>
</div>
<div style="background-color:#E9EFC0; font-family: Courier New; padding: 12px; width: 50%; margin: 50px auto; justify-content: center;">
<h3 style="text-align: center;">Tabel Kenalan</h3>
<table class="table" id="tabelKartu">
<thead>
<tr>
<th scope="col">Nama</th>
<th scope="col">Alamat</th>
<th scope="col">Instagram</th>
<th scope="col">Aksi</th>
</tr>
</thead>
</table>
</div>
</body>
<script src="table.js"></script>
</html>