-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path08-table-manipulation.html
52 lines (47 loc) · 2.01 KB
/
08-table-manipulation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- BOOTSTRAP CDN -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"
integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- FONTAWESOME -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<title>Table Manipulation</title>
</head>
<body class="p-4 bg-dark">
<h1 class="text-center text-warning">Table Manipulation</h1>
<div class="container">
<div class="d-flex my-3 gap-1">
<input id="nameInput" class="bg-dark text-warning border-warning rounded flex-grow-1" type="text" placeholder="Type name...">
<input id="gradeInput" class="bg-dark text-warning border-warning rounded flex-grow-3" type="number" placeholder="Grade">
<button id="btnAdd" class="btn btn-warning flex-grow-3">+ADD</button>
</div>
<table id="studentsTable" class="table text-warning my-3 text-center">
<thead class="table-warning">
<tr>
<th>#</th>
<th>Name</th>
<th>Grade</th>
<th></th>
</tr>
</thead>
<tbody id="tblBody">
</tbody>
</table>
</div>
<script src="./js/08-table-manipulation.js"></script>
</body>
</html>