forked from Edgartheprogrammer/CRUD-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (68 loc) · 3.27 KB
/
index.html
File metadata and controls
72 lines (68 loc) · 3.27 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
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Game Management</title>
<link rel="stylesheet" href="./src/styles/main.css">
</head>
<body>
<header class="header">
<h1 class="header__title">Game Database Manager</h1>
</header>
<main class="main">
<section class="section section--edit">
<form id="editForm" class="form">
<input class="form__input" id="Id" placeholder="Enter Id">
<input class="form__input" id="Name" placeholder="Enter Name">
<input class="form__input" id="Genre" placeholder="Enter Genre">
<input class="form__input" id="ReleaseDate" type="date" max="2025-12-31"
placeholder="Enter Release Date">
<fieldset class="form__fieldset">
<legend class="form__legend">Choose platform:</legend>
<label class="form__label">
<input class="form__checkbox" type="checkbox" name="console" value="nintendo"> Nintendo
</label><br>
<label class="form__label">
<input class="form__checkbox" type="checkbox" name="console" value="playstation"> PlayStation
</label><br>
<label class="form__label">
<input class="form__checkbox" type="checkbox" name="console" value="xbox"> Xbox
</label><br>
</fieldset>
<input class="form__input" id="Price" type="number" step="0.01" placeholder="Enter Price">
<div id="imagePreviewContainer">
<img id="imagePreview" src="" alt="Game Image Preview" class="form__image-preview"
style="display: none;">
</div>
<input type="file" id="ImageUpload" accept="image/*" style="display: none;">
</form>
</section>
<section class="section--table">
<table id="gameTable" class="table">
<tr class="tr">
<th class="th">Id</th>
<th class="th">Name</th>
<th class="th">Genre</th>
<th class="th">Platform</th>
<th class="th">Price</th>
<th class="th">Release Date</th>
</tr>
</table>
</section>
</main>
<script type="module" src="./src/script/constants.js"></script>
<script type="module" src="./src/script/formHandlers.js"></script>
<script type="module" src="./src/script/formUtils.js"></script>
<script type="module" src="./src/script/gameHandlers.js"></script>
<script type="module" src="./src/script/imagePreviewHandler.js"></script>
<script type="module" src="./src/script/messageUtils.js"></script>
<script type="module" src="./src/script/popupUtils.js"></script>
<script type="module" src="./src/script/searchHandlers.js"></script>
<script type="module" src="./src/script/services.js"></script>
<script type="module">
import { printGames } from './src/script/services.js';
document.addEventListener("DOMContentLoaded", printGames);
</script>
</body>
</html>