forked from yemount/pose-animator
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheditor.html
75 lines (64 loc) · 1.61 KB
/
editor.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
<!DOCTYPE html>
<html>
<head>
<title>Avatar Animator - Editor</title>
<base href="./dist">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<style>
html, body {
max-width: 100%;
max-height: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.svg-container {
display: flex;
justify-content: center;
position: relative;
}
#tooltip {
color: #eeeeee;
background: black;
border: 1px solid black;
border-radius: 5px;
padding: 5px;
font-family: serif;
}
#export {
position: fixed;
bottom: 15px;
right: 15px;
}
#undo {
position: fixed;
top: 15px;
left: 15px;
}
@media only screen and (max-width: 600px) {
.dg {
display: none;
}
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="svg-container">
<div id="svg"></div>
</div>
<div id="tooltip" display="none" style="position: absolute; display: none;"></div>
<div id="undo">
<button>Undo</button>
</div>
<div id="export">
<button>Export SVG</button>
</div>
<script src="editor.js"></script>
</body>
</html>