-
Notifications
You must be signed in to change notification settings - Fork 13
/
demo.html
104 lines (97 loc) · 3.23 KB
/
demo.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://unpkg.com/vue"></script>
<link rel="stylesheet" type="text/css" href="dist/vue-loaders.css">
</head>
<body style="text-align: center; padding: 20px">
<div id="app">
<vue-loaders name="unsupported-name" color="black"></vue-loaders>
<vue-loaders-ball-beat color="black"></vue-loaders-ball-beat>
<hr/>
<vue-loaders name="ball-beat" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-grid-beat" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-pulse-sync" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-scale-ripple" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-zig-zag-deflect" color="black"></vue-loaders>
<hr/>
<vue-loaders name="line-scale" color="black"></vue-loaders>
<hr/>
<vue-loaders name="line-spin-fade-loader" color="black"></vue-loaders>
<hr/>
<vue-loaders name="triangle-skew-spin" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-clip-rotate" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-grid-pulse" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-rotate" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-scale-ripple-multiple" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-zig-zag" color="black"></vue-loaders>
<hr/>
<vue-loaders name="line-scale-party" color="black"></vue-loaders>
<hr/>
<vue-loaders name="pacman" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-clip-rotate-multiple" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-pulse" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-scale" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-spin-fade-loader" color="black"></vue-loaders>
<hr/>
<vue-loaders name="cube-transition" color="black"></vue-loaders>
<hr/>
<vue-loaders name="line-scale-pulse-out" color="black"></vue-loaders>
<hr/>
<vue-loaders name="semi-circle-spin" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-clip-rotate-pulse" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-pulse-rise" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-scale-multiple" color="black"></vue-loaders>
<hr/>
<vue-loaders name="ball-triangle-path" color="black"></vue-loaders>
<hr/>
<vue-loaders name="line-scale-pulse-out-rapid" color="black"></vue-loaders>
<hr/>
<vue-loaders name="square-spin" color="black"></vue-loaders>
<hr/>
<ball-beat color="black"></ball-beat>
<hr/>
</div>
<script src="./dist/vue-loaders.umd.js"></script>
<script src="./dist/loaders/ball-beat.js"></script>
<script>
function v2() {
Vue.use(VueLoaders);
Vue.use(VueLoadersBallBeat);
Vue.component('ball-beat', VueLoadersBallBeat.component);
new Vue().$mount('#app')
}
function v3() {
const app = Vue.createApp({
components: {
BallBeat: VueLoadersBallBeat.component
}
});
app.use(VueLoaders);
app.mount('#app')
}
const bootstrap = /3\./.test(Vue.version) ? v3 : v2;
bootstrap();
</script>
</body>
</html>