-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
165 lines (157 loc) · 6.42 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width height=device-height">
<meta name="description" content="rlottie viewer">
<meta name="keywords" content="lottie, rlottie, lottie viewer, rlottie player">
<meta name="author" content="Subhransu, Chae Lin Shin, Sun Hwan Park, Chaewon Shin, Seunghyun Shin, Seungjae Yoon">
<title>rlottie player</title>
<!-- style.css -->
<link rel="stylesheet" href="style.css">
<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- vuetify -->
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<!-- font awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" />
</head>
<body>
<v-app
class="window"
id="app"
>
<div class="row no-gutters">
<!-- navbar component -->
<navbar class="col-12"></navbar>
<!-- leftPanel component -->
<leftpanel
class="col-3"
@keypath-changed="keypathChanged"
></leftpanel>
<!-- player -->
<div class="bg-white col-6">
<div
id="player"
class="player d-flex flex-column justify-content-between"
>
<!-- screen -->
<div class="screen my-auto mx-auto d-flex justify-content-center align-items-center">
<div
class="my-auto mx-auto d-flex justify-content-center align-items-center row"
id="content"
>
<div class="d-flex justify-content-center align-items-center">
<canvas
class="common-canvas"
id="myCanvas1"
></canvas>
</div>
</div>
</div>
<!-- playbar -->
<div class="d-flex justify-content-around align-items-center playbar" id="playbar">
<span
class="play-button"
id="playButton"
type="button"
onclick="buttonClicked()"
>
<em class="fas fa-pause"></em>
</span>
<div class="d-flex flex-column align-items-between player-slider-container">
<input
class="player-slider my-1"
id="slider"
type="range"
min="0"
max="100"
value="0"
oninput="onSliderDrag(this.value)"
>
<div class="d-flex justify-content-between">
<span
class="badge badge-light"
id="currentFrame"
></span>
<span
class="badge badge-light"
id="frameCount"
></span>
</div>
</div>
<div class="color_button_group">
<button class="color_button btn_white cursor-pointer" onclick="document.getElementById('player').style.backgroundColor = 'white'"> </button>
<button class="color_button btn_black cursor-pointer" onclick="document.getElementById('player').style.backgroundColor = 'black'"> </button>
<button class="color_button btn_red cursor-pointer" onclick="document.getElementById('player').style.backgroundColor = 'red'"> </button>
<button class="color_button btn_green cursor-pointer" onclick="document.getElementById('player').style.backgroundColor = 'green'"> </button>
<button class="color_button btn_blue cursor-pointer" onclick="document.getElementById('player').style.backgroundColor = 'blue'"> </button>
</div>
<div class="d-flex flex-column align-items-between">
<input type="range" id="slider" min="0" max="100" value="100" oninput="onResizeSliderDrag(this.value)">
</div>
</div>
</div>
</div>
<!-- right panel - property component -->
<rightpanel
class="col-3"
:keypath="keypath"
></rightpanel>
</div>
</v-app>
<script src="main.js"></script>
<!-- vue -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- dependencies for bootstrap -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- http-vue-loader -->
<script src="https://unpkg.com/http-vue-loader"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
<!-- axios -->
<script src="https://unpkg.com/axios/dist/axios.min.js" crossorigin="anonymous"></script>
<script>
var app = new Vue({
el: '#app',
vuetify: new Vuetify({
// color theme
theme: {
themes: {
light: {
navbar: '#90A4AE',
playbar: '#90A4AE',
sidebar: '#CFD8DC',
accent: '#A8DADC',
preview: '#56a6c2',
icon: '#000000',
mode: '#37474F',
canvas: '#0FCCCE',
upload: '#9e9e9e',
}
},
},
}),
components: {
'navbar': httpVueLoader('./components/navbar.vue'),
'leftpanel': httpVueLoader('./components/leftPanel.vue'),
'rightpanel': httpVueLoader('./components/rightPanel.vue'),
},
data() {
return {
keypath: ''
}
},
methods: {
keypathChanged(keypath) {
this.keypath = keypath
},
},
});
</script>
</body>
</html>