-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (50 loc) · 2 KB
/
index.html
File metadata and controls
55 lines (50 loc) · 2 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
<!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" />
<link rel="shortcut icon" href="asset/img/logo.png" type="image/x-icon">
<!-- Google Font -->
<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=Rubik&display=swap" rel="stylesheet"/>
<!-- Kustom CSS -->
<link rel="stylesheet" href="asset/css/index.css" />
<title>CRUD JAVASCRIPT</title>
</head>
<body>
<!-- Bagian Container -->
<div class="container">
<!-- Bagian Content -->
<div class="content">
<h1 class="title">DATA MAHASISWA</h1>
<!-- Bagian Form -->
<form id="dataMahasiswa" action="">
<div class="div-input">
<p>Form Tambah Data Mahasiswa</p>
<input type="text" name="nim" id="nim" placeholder="Masukan NIM..." autofocus />
<input type="text" name="nama" id="nama" placeholder="Masukan Nama..." />
<input type="text" name="kelas" id="kelas" placeholder="Masukan Kelas..." />
<input type="text" name="alamat" id="alamat" placeholder="Masukan Alamat..." />
</div>
<!-- Bagian Tombol Tambah -->
<div class="div-tambah">
<button type="button" class="btn-tambah" onclick="tambahData()">Tambah Data</button>
<button type="reset" class="btn-reset"><a href="">Reset Data</a></button>
</div>
<!-- Bagian Tabel -->
<table id="tabelMahasiswa">
<tr>
<th>NIM</th>
<th>Nama</th>
<th>Kelas</th>
<th>Alamat</th>
</tr>
</table>
</form>
</div>
</div>
<script src="asset/js/index.js"></script>
</body>
</html>