-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (43 loc) · 1.72 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
<!DOCTYPE html>
<html>
<head>
<title>PoMoDoRo</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<audio id="mooSound" src="assets/moo.wav"></audio>
<audio id="splatSound" src="assets/splat.wav"></audio>
<div id="app">
<h1>PoMoDoRo</h1>
<br><br>
<hr>
<time-selector @start-time-changed="updateTime"></time-selector>
<div id="startTime">
Start Time: {{ startTime }} min<br>
</div>
<div id="remainingTime">
Remaining Time: {{ remainingTimeStr }}<br>
</div>
<div id="remainingTime">
Remaining Time Seconds: {{ remainingTime }}<br>
</div>
<div id="tomato" @mouseover="mouseoverTomato" @mouseout="showMouseover = false">
<img id="tomatoImg" src="./assets/tomato.png"
@click="clickTheTomato"> <!-- @ is the same as v-on: -->
<div id=tomatoTooltip v-show='showMouseover'>Help: {{ mouseoverText }}</div>
</div>
<button class=timeButton @click='pauseTimer'>Pause</button>
<button class=timeButton @click='stopTimer'>Stop</button>
<button class=timeButton @click='resetTimer'>Reset</button>
</div>
<!-- Import App -->
<script type="text/javascript" src="main.js"></script>
<!-- Import component -->
<script type="text/javascript" src="components/time_selector.js"></script>
<!-- Mount App -->
<script>
const mountedApp = app.mount('#app')
</script>
</body>
</html>