-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.html
79 lines (77 loc) · 3.33 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
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="3分と5分でタイマーが測れるWebラーメンタイマー">
<meta property="og:title" content="ラーメンタイマー">
<meta property="og:description" content="3分と5分でタイマーが測れるWebラーメンタイマー" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://ramen-timer.com" />
<meta property="og:image" content="https://ramen-timer.com/img/ramen-timer.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@aocattleya" />
<title>ラーメンタイマー</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="icon" type="image/png" href="img/kurin.jpg" />
<link rel="manifest" href="manifest.json">
<script>
if('serviceWorker' in navigator){
navigator.serviceWorker.register('./serviceworker.js').then(function(){
console.log("Service Worker Registered");
});
}
</script>
</head>
<body>
<div id="app" v-cloak>
<div class="content" v-show="!show" v-cloak>
<!-- Character Icon -->
<img src="/img/button_right.png" v-show="isRight" class="right_face" alt="くりんちゃん">
<img src="/img/button_left.png" v-show="isLeft" class="left_face" alt="くりんちゃん" loading="lazy">
<!-- Pick TimeButton -->
<div class="pick-button">
<img
@click="show = !show; threeMin()" v-on:mouseover="rotate_left"
type="image" class="left_timer" src="/img/3min.svg" alt="3min_timer" loading="lazy"
/>
<img
type="image" class="right_timer" src="/img/5min.svg" alt="5min_timer"
@click="show = !show; fiveMin()" v-on:mouseover="rotate_right" loading="lazy"
/>
</div>
</div>
<transition appear v-cloak>
<div class="timer_container" v-show="show" v-cloak>
<!-- Timer -->
<div class="timer">
<span id="minutes">{{ minutes }}</span>
<span id="middle">:</span>
<span id="seconds">{{ seconds }}</span>
</div>
<div id="buttons">
<!-- Start Button -->
<img
class="start-button" @click="startTimer" v-if="!timer"
type="image" src="/img/start.svg" alt="start-timer" loading="lazy"
/>
<!-- Stop Button -->
<img
class="stop-button" @click="stopTimer" v-if="timer"
type="image" src="/img/stop.svg" alt="stop-timer" loading="lazy"
/>
<!-- Reset Button -->
<img
class="reset-button" @click="resetTimer" v-if="resetButton"
type="image" src="/img/reset.svg" alt="reset-timer" loading="lazy"
/>
</div>
<a @click="show = !show; stopTimer()" class="back-button">BACK</a>
</div>
</transition>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js" async></script>
<script src="js/main.js" async></script>
</body>
</html>