-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (100 loc) · 3.56 KB
/
Copy pathindex.html
File metadata and controls
111 lines (100 loc) · 3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClockNote</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>ClockNote</h1>
<p class="subtitle">Track your work hours offline</p>
</header>
<main>
<!-- Timer Section -->
<section class="timer-section">
<div class="timer-container">
<div class="timer-display">
<div class="timer-label">Current Session</div>
<div class="timer-time" id="timer-display">00:00:00</div>
<div class="timer-status" id="timer-status">Ready to start</div>
</div>
<button class="btn-timer" id="timer-btn">
<span class="timer-btn-icon">▶</span>
<span class="timer-btn-text">Start Timer</span>
</button>
</div>
</section>
<!-- Entry Form Section -->
<section class="form-section">
<h2 id="form-title">Add Time Entry</h2>
<form id="entry-form">
<div class="form-row">
<div class="form-group">
<label for="entry-date">Date *</label>
<input type="date" id="entry-date" required>
</div>
<div class="form-group">
<label for="entry-description">Description *</label>
<textarea id="entry-description" placeholder="Describe in detail what you worked on during this time..." required rows="4"></textarea>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="entry-start-time">Start Time</label>
<input type="time" id="entry-start-time">
</div>
<div class="form-group">
<label for="entry-end-time">End Time</label>
<input type="time" id="entry-end-time">
</div>
<div class="form-group">
<label for="entry-duration">Duration (hours)</label>
<input type="number" id="entry-duration" step="0.01" min="0" placeholder="Auto-calculated or manual">
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary" id="submit-btn">Add Entry</button>
<button type="button" class="btn btn-secondary" id="cancel-btn" style="display: none;">Cancel</button>
</div>
</form>
</section>
<!-- Entries Table Section -->
<section class="table-section">
<div class="table-header">
<h2>Time Entries</h2>
<div class="table-stats">
<span id="total-entries">0 entries</span>
<span id="total-hours">0.00 hours</span>
</div>
</div>
<div class="table-container">
<table id="entries-table">
<thead>
<tr>
<th>Date</th>
<th>Start Time</th>
<th>End Time</th>
<th>Duration (hrs)</th>
<th>Description</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="entries-tbody">
<tr class="empty-state">
<td colspan="6">No time entries yet. Add your first entry above!</td>
</tr>
</tbody>
</table>
</div>
</section>
</main>
<footer>
<p>Data saved to: <span id="data-file-path">Loading...</span></p>
</footer>
</div>
<script src="renderer.js"></script>
</body>
</html>