-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (55 loc) · 1.76 KB
/
index.html
File metadata and controls
61 lines (55 loc) · 1.76 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
56
57
58
59
60
61
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Student Activity Data</title>
<link rel="stylesheet" href="styles.css" />
<script src="script.js"></script>
</head>
<body>
<h1>Welcome to the Student Activity Portal</h1>
<!-- Form for user input -->
<form class="form-inline" id="dataForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required /><br />
<label for="prn">PRN:</label>
<input type="text" id="prn" name="prn" required /><br />
<label for="division">Division:</label>
<select id="division" name="division" required>
<option value="CS-A">CS-A</option>
<option value="CS-B">CS-B</option>
<option value="CS-C">CS-C</option>
<option value="CS-D">CS-D</option></select
><br />
<label>Assignments:</label>
<label
><input type="checkbox" name="assignment" value="1" /> Assignment
1</label
>
<label
><input type="checkbox" name="assignment" value="2" /> Assignment
2</label
>
<label
><input type="checkbox" name="assignment" value="3" /> Assignment
3</label
><br />
<!-- Use 'type="button"' to prevent the default form submission -->
<button type="button" onclick="submitData()">Submit</button>
</form>
<div style="display: none"><pre id="activityData"></pre></div>
<table id="dataTable">
<thead>
<tr>
<th>Name</th>
<th>PRN</th>
<th>Division</th>
<th>Assignments</th>
</tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
</body>
</html>