-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (115 loc) · 4.56 KB
/
index.html
File metadata and controls
125 lines (115 loc) · 4.56 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<meta charset="UTF-8">
<title>Task Tracker</title>
</head>
<body>
<header>
<h1 class = "header1">Objectives</h1>
<h6 id = "currentDate"></h6>
</header>
<form id = "taskForm">
<div class = "taskbuttons">
<label for="taskName"> </label>
<input class = "inputField" type="text" required id="taskName" placeholder="Task Name"/>
<label for="taskPoints"> </label>
<input class = "inputField" type="text" id="taskPoints" placeholder="Points" />
<label for="taskType"></label>
<select id="taskType">
<option value="Daily">Daily</option>
<option value="Weekly">Weekly</option>
</select>
<button id="addTask">Add Task</button>
<label for = "userFile"></label>
<input id="userFile" type="file" accept = ".json" autocomplete="off" />
<label for ="saveFile"></label>
<a id = "downloadFile" download="userfile.json"></a>
<input id="saveFile" type="button" value = "Download">
</div>
</form>
<table id = "dailyTable" class = "taskTable">
<caption class = "tableNames">Daily Tasks</caption>
<thead>
<tr>
<th>Task</th>
<th>Points</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
<th>Sunday</th>
</tr>
</thead>
<tbody id="dailyTaskTable"></tbody>
<tfoot class="days">
<tr id="dailyTotalsRow">
<th colspan="1">Current Total</th>
<td id="currTotals">0</td>
<td id="dayTotal-0">0</td>
<td id="dayTotal-1">0</td>
<td id="dayTotal-2">0</td>
<td id="dayTotal-3">0</td>
<td id="dayTotal-4">0</td>
<td id="dayTotal-5">0</td>
<td id="dayTotal-6">0</td>
</tr>
<tr id="overallTotals">
<th colspan="1">Total Points</th>
<td id="totalPoints"><span id="totalPointsSum">0</span></td>
<td colspan="7" id="completedPoints">
Completed: <span id="completedPointsSum">0</span>
</td>
</tr>
</tfoot>
</table>
<label for="dailyCompletion">Task Progress:</label>
<progress id="dailyCompletion" max="1" value="0">0</progress>
<table id = "weeklyTable" class = "taskTable">
<caption>Weekly Tasks</caption>
<thead>
<tr>
<th>Task</th>
<th>Points</th>
<th>Status</th>
</tr>
</thead>
<tfoot class = "weeklyPoints">
<tr id = "currentWeeklyTotal">
<th colspan = "1">Current Overall</th>
<td id = "currentWeeklyPoints">0</td>
</tr>
<tr id = "overallWeeklyTotal">
<th colspan="1">Total Overall</th>
<td id="totalWeeklyPoints">0</td>
</tr>
</tfoot>
<tbody id="weeklyTaskTable"></tbody>
</table>
<header>
<h1>Stats</h1>
</header>
<label id = calculateStatsLabel for="calculateStats">Calculate Stats</label>
<input type="button" id="calculateStats" value="Calculate" />
<table id="statsTable">
<thead>
<tr>
<th>Day</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<tr>
<td id="bestDay"></td>
<td id="bestPoints">0</td>
</tr>
</tbody>
</table>
<script type="module" src="js/main.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</body>
</html>