forked from eqvpkbz/Digital-Clock-Countdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (54 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>高考倒计时 | 高考加油</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/normalize.min.css"
/>
<link rel="stylesheet" href="./night.css" id="css"/>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bubbly-bg.js"></script>
<script>
bubbly({
colorStart: "#181520",
colorStop: "#181520",
shadowColor: "#fff7fe",
bubbleFunc: () => `hsla(${Math.random() * 360}, 0%, 100%, ${Math.random() * 0.3})`
});
</script>
<!-- partial:index.partial.html -->
<div id="clock">
<audio controls="controls" playsinline webkit-playsinline>
<source src="https://music.163.com/song/media/outer/url?id=1385176005.mp3">
</audio>
<hr />
<p class="date">{{ date }}</p>
<p class="time">{{ time }}</p>
<hr />
<p class="date">目前距离 2022 年高考还有</p>
<p class="lst_time">{{ lst_d }} 天 {{ lst_h }} 小时 <br>{{ lst_m }} 分 {{ lst_s }} 秒</p>
<hr />
<p class="date">高三你已经走过</p>
<vue-simple-progress size="medium" :val="tcur" bar-border-radius=5></vue-simple-progress>
<p class="termlst">{{ tcur }} %</p>
<p class="date">今天已经过去了</p>
<vue-simple-progress size="medium" :val="cur" bar-border-radius=5></vue-simple-progress>
<p class="todaylst">{{ cur }} %</p>
<hr />
<button onClick="change(1)" class="btn Night">暗色</button>
<button onClick="change(2)" class="btn Light">明亮</button>
</div>
<!-- partial -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-simple-progress.min.js"></script>
<script src="./script.js"></script>
</body>
</html>