-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
54 lines (50 loc) · 2.78 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
<!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 viewer">
<meta name="author" content="Subhransu">
<title>rlottie viewer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="window">
<div class="header bg-grey-lighter border-grey-light rounded border or">
<span text-grey-darkest font-bold justify-center text-xs> Drag and Drop your Lottie JSON file to the window </span>
<span text-grey-darkest font-bold justify-center text-xs> Or </span>
<input class="cursor-pointer" type="file" id="fileSelector" accept=".json">
</div>
<div class="content " id="content">
<canvas class="" id="myCanvas" width="100" height="100" style="border:1px solid #dae1e7;"></canvas>
</div>
<div class="footer">
<div class="slider bg-grey-lighter border-grey-light rounded border">
<button class="playButton cursor-pointer" type="button" id="playButton" onclick="buttonClicked()">Pause</button>
<input class="margin-left-10px" type="range" id="slider" min="0" max="100" value="0" id="slider" oninput="onSliderDrag(this.value)">
</div>
<div class="bg_color_container bg-grey-lighter border-grey-light rounded border">
<div class="text-grey-darkest font-bold justify-center text-xs"> Background Color</div>
<div class="margin-left-10px color_button_group">
<button class="color_button btn_white cursor-pointer"
onclick="document.getElementById('content').style.backgroundColor = 'white'"> </button>
<button class="color_button btn_black cursor-pointer"
onclick="document.getElementById('content').style.backgroundColor = 'black'"> </button>
<button class="color_button btn_red cursor-pointer"
onclick="document.getElementById('content').style.backgroundColor = 'red'"> </button>
<button class="color_button btn_green cursor-pointer"
onclick="document.getElementById('content').style.backgroundColor = 'green'"> </button>
<button class="color_button btn_blue cursor-pointer"
onclick="document.getElementById('content').style.backgroundColor = 'blue'"> </button>
</div>
</div>
<div class="speed bg-grey-lighter border-grey-light rounded border">
<div class="margin-left-10px text-grey-darkest font-bold justify-center text-xs">Canvas Resize </div>
<input class="margin-left-10px" type="range" id="slider" min="0" max="100" value="100" id="slider" oninput="onResizeSliderDrag(this.value)">
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>