/
index.html
42 lines (42 loc) · 1.02 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
<!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" />
<title>Document</title>
<link rel="stylesheet" href="https://unpkg.com/simple-worker-timer@1/dist/style.css" />
<style>
html,
body {
width: 100%;
height: 100%;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#app {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="app">
<simple-worker-timer />
</div>
</body>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://unpkg.com/simple-worker-timer@1/dist/index.umd.js"></script>
<script>
const { createApp } = Vue
const { SimpleWorkerTimer: timer } = SimpleWorkerTimer
createApp({
components: {
SimpleWorkerTimer: timer
}
}).mount('#app')
</script>
</html>