-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (99 loc) · 3.21 KB
/
index.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Daily Rotation Generator</title>
<link rel="stylesheet" href="styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<h1>Daily Rotation</h1>
<form id="nameForm">
<label for="nameInput">Add Name:</label>
<input
type="text"
id="nameInput"
placeholder="Enter just one name"
required />
<button type="button" id="addNameButton">Add Name</button>
</form>
<form id="namesForm">
<label for="namesInput">Add Names:</label>
<input
type="text"
id="namesInput"
placeholder="Enter names separated by commas"
required
/>
<button id="addNamesButton">Add Names</button>
</form>
<ul id="nameList"></ul>
<form id="inputForm">
<label for="month">Month:</label>
<select id="month" required>
<option value="" disabled selected>Select a Month</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<label for="year">Year:</label>
<input
type="number"
id="year"
min="2023"
max="2100"
required
placeholder="Select a Year"
/>
<fieldset>
<legend>Select Days of the Week:</legend>
<label><input type="checkbox" name="days" value="0" /> Sunday</label>
<label><input type="checkbox" name="days" value="1" /> Monday</label>
<label><input type="checkbox" name="days" value="2" /> Tuesday</label>
<label><input type="checkbox" name="days" value="3" /> Wednesday</label>
<label><input type="checkbox" name="days" value="4" /> Thursday</label>
<label><input type="checkbox" name="days" value="5" /> Friday</label>
<label><input type="checkbox" name="days" value="6" /> Saturday</label>
</fieldset>
<button type="submit">Generate Table</button>
<button type="button" id="resetTableButton">Reset Table</button>
</form>
<table id="resultTable">
<caption></caption>
<thead>
<tr>
<th>Day of the Week</th>
<th>Day of the Month</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<!-- Rows will be dynamically added here -->
</tbody>
</table>
<footer>
<p>
Created by
<a href="https://github.com/gildoneto" target="_blank">Gildo Neto</a> |
<a href="https://github.com/gildoneto/daily-rotation" target="_blank"
>GitHub Repository</a
>
</p>
<p>Version: v1.0</p>
</footer>
<script src="script.js"></script>
</body>
</html>