-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (46 loc) · 1.64 KB
/
Copy pathindex.html
File metadata and controls
46 lines (46 loc) · 1.64 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
<!doctype html>
<html>
<head>
<title>Movie Logger</title>
<link rel="stylesheet" href="style.css" />
</head>
<body class="light-mode">
<h1>Movie Logger</h1>
<form id="movie-form">
<div>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required />
</div>
<div>
<label for="releaseYear">Release Year:</label>
<input type="number" id="releaseYear" name="releaseYear" required />
</div>
<div>
<label for="rating">Rating:</label>
<input type="number" id="rating" name="rating" min="0" max="10" required />
</div>
<div>
<button type="submit">Add Movie</button>
</div>
</form>
<table id="movie-table">
<thead>
<tr>
<th>Name</th>
<th>Release Year</th>
<th>Rating</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
<div id="sort-buttons">
<button id="sort-rating-asc" onclick="sortByRating('asc')">Sort by Lowest Rated</button>
<button id="sort-rating-desc" onclick="sortByRating('desc')">Sort by Highest Rated</button>
<button id="sort-release-year-asc" onclick="sortByReleaseYear('asc')">Sort by Newest</button>
<button id="sort-release-year-desc" onclick="sortByReleaseYear('desc')">Sort by Oldest</button>
</div>
<img src="https://nickjohn.gallerycdn.vsassets.io/extensions/nickjohn/autothemeswitcherforwin10darkmode/0.8/1625713621041/Microsoft.VisualStudio.Services.Icons.Default" alt="Toggle color mode" id="color-mode" onclick="toggleColorMode()" />
<script src="script.js"></script>
</body>
</html>