-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (45 loc) · 2.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/vue@next"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
<title>Tempo</title>
</head>
<body>
<div id="clock">
<h1>Tempo</h1>
<span id="counter" @click="toggleInputs">
<counter :time-left="timeLeft"></counter>
</span>
<div id="input-overlay">
<div class="time-input">
<div class="time-input-fields">
<label for="input-hours" class="time-label"><input id="input-hours" type="number" class="hours"
v-model.number="hours" min=0></label>
<label for="input-minutes" class="time-label"><input id="input-minutes" type="number" class="minutes"
v-model.number="minutes" min=0></label>
<label for="input-seconds" class="time-label"><input id="input-seconds" type="number" class="seconds"
v-model.number="seconds" min=0></label>
</div>
<button id="button-timesubmit" @click="submitTime">Set time</button>
<button id="button-timecancel" @click="toggleInputs">Cancel</button>
</div>
</div>
<label class="container" :class="[!looping ? 'checked-label' : '']">Loop
<input type="checkbox" name="loop" id="input-loop" v-model="looping">
<span class="checkmark"></span>
</label>
<button id="button-start" :disabled="!timeLimit" @click="startTimer">{{ timerInterval ? 'Stop' : 'Start'
}}</button>
<button id="button-reset" :disabled="resetIsDisabled" @click="resetTimer">Reset</button>
</div>
<script src="tempo.js"></script>
</body>
</html>