-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (70 loc) · 3.37 KB
/
index.html
File metadata and controls
76 lines (70 loc) · 3.37 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
<!DOCTYPE html>
<html data-bs-theme="dark" lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Clock and Timer App</title>
<link rel="manifest" href="manifest.json">
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script crossorigin="anonymous" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="app.js"></script>
<link href="styles.css" rel="stylesheet">
</head>
<body class="bg-dark text-white">
<div class="container mt-1">
<div class="card mb-3 text-center">
<h1>ClockJS</h1>
</p>
<p><span id="unix">1752172843</span></p>
<p>It is <span id="clock">00:00</span> <span id="ampm">AM</span></p>
<p>In <span id="clock_tz">????</span></p>
</div>
<div class="card mb-3 text-center">
<span id="wasted">You've wasted 0 seconds of your life with this page open.</span>
</div>
<hr>
<div class="row mb-3">
<div class="col-md-6">
<div class="card">
<label class="text-center" for="countdownPicker">Pick a Date for Countdown</label>
<div class="inner-card-style mb-2">
<input class="form-control" id="countdownPicker" type="datetime-local">
<button class="btn btn-primary" onclick="startCountdown()">Start Countdown</button>
</div>
<div class="text-center" id="countdownDisplay">
<span id="countdown"></span>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<label class="text-center" for="timerPicker">Set Timer</label>
<div class="inner-card-style mb-2">
<input class="form-control" id="timerPicker" placeholder="Enter seconds" type="number">
<button class="btn btn-primary" onclick="startTimer()">Start Timer</button>
</div>
<div class="text-center" id="timerDisplay">
<span id="timer"></span>
</div>
</div>
</div>
</div>
<div class="card mb-3">
<label class="text-center" for="timezone-select">Add Extra Clocks</label>
<div class="mb-2 text-center" id="clocks-container">
<div class="inner-card-style">
<select class="form-select timezone-select" id="timezone-select"></select>
<button class="btn btn-primary" onclick="addClock()">Add Clock</button>
</div>
</div>
<div id="extra-clocks"></div>
</div>
</div>
</body>
<footer class="text-center mb-5 mt-auto">
<p class="">Made by <a href="https://github.com/code-irisnk/clockjs" target="_blank" rel="noopener" class="text-white">Iris De Santis</a></p>
</footer>
</html>