-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
212 lines (198 loc) · 7.55 KB
/
index.ejs
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<html>
<head>
<!-- WEBPACK EXPOSER DOES NOT work with does not work with webpack 4 https://github.com/webpack-contrib/expose-loader/issues/77-->
<!-- In the future I hope they fix this as color picker doesn't work without this-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css">
<!-- Added this style on top so it loads prior to bundle-->
<!-- Change this to a logo when logi is designed-->
<style>
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#main-loading {
z-index: 100;
position: fixed;
top: 50%;
left: 50%;
margin-top: -120px;
margin-left: -100px;
border: 32px solid #f3f3f3;
border-top: 32px solid #3498db;
/* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
</style>
<head>
<body>
<!-- Loading dialog used at start of app-->
<div id="main-loading"></div>
<!-- Blocking dialog, this prevents people from using app at specific sizes -->
<!-- This should only appear when user is invalid size on start-->
<div id="blocking-dialog" style="display:none;">
<div class="slot">
</div>
</div>
<!-- show on load-->
<div id="main-app" style="display: none">
<!--reusable popover-->
<span style="display:none" id="popover" class="magnify-box"></span>
<div id="layer-edit">
<label for="remember">
Name: <input style="width: 70%;" id="edit-layer-name" type="text">
</label>
<div style="margin-top:1em;">
<button id="edit-layer-cancel" style="float: right">Cancel</button>
<button id="edit-layer-ok" style="float: right">OK</button>
</div>
</div>
<!-- SET OF DIALOGS-->
<!-- Layer manager dialog-->
<div id="layer-manager" title="Layers">
<div class="layer-container">
</div>
<div class="layer-footer">
<div id="layer-manager-add" class="icon-button tiny-icon-button footer-layer-icon">
<i class="far fa-plus-square"></i>
</div>
<div id="layer-manager-move-up" class="icon-button tiny-icon-button footer-layer-icon">
<i class="fas fa-arrow-up"></i>
</div>
<div id="layer-manager-move-down" class="icon-button tiny-icon-button footer-layer-icon">
<i class="fas fa-arrow-down"></i>
</div>
<div id="layer-manager-delete" class="icon-button tiny-icon-button footer-layer-icon">
<i class="far fa-trash-alt"></i>
</div>
<div id="layer-manager-duplicate" class="icon-button tiny-icon-button footer-layer-icon">
<i class="far fa-clone"></i>
</div>
<div id="layer-manager-edit" class="icon-button tiny-icon-button footer-layer-icon">
<i class="far fa-edit"></i>
</div>
</div>
</div>
<div id="main-container" class="pure-g">
<!--TODO FIX STYLING FOR TOOL BAR-->
<div id="tool-bar-container" class="pure-u-1">
<nav id="tool-bar">
<ul>
<li>
<a href="#">File</a>
<ul>
<li>
<a id="tool-bar-new-file" href="#">New</a>
</li>
<li>
<a id="tool-bar-export-as" href="#">Export as...</a>
</li>
</ul>
</li>
<li><a href="#">View</a>
<ul>
<li>
<a href="#">Tools <i class="fas fa-caret-right"></i></a>
<ul>
<li>
<a id="tool-bar-showlayers" href="#">Show Layers <i class="fas fa-check"></i>
</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="tool-window" class="pure-u-2-24">
<div class="pure-g tool-row">
<div>
<a id="pan-tool" tool-name="panTool" class="icon-button large-icon-button tool-button">
<i class="fas fa-arrows-alt"></i>
</a>
</div>
<div>
<a id="triangle-tool" style="color:#ffff9c" tool-name="TriangleTool"
class="icon-button large-icon-button tool-button">
<i class="fas fa-caret-up"></i>
</a>
</div>
</div>
<!--TODO TOOLTIP FOR BUTTONS-->
<!-- https://medium.freecodecamp.org/a-step-by-step-guide-to-making-pure-css-tooltips-3d5a3e237346 -->
<div class="pure-g tool-row">
<div>
<a id="line-tool" style="color:#ffd49c" tool-name="lineTool"
class="icon-button large-icon-button tool-button">
<i class="fas fa-slash"></i>
</a>
</div>
<div>
<a id="eraser-tool" style="color:rgb(250, 219, 224);" tool-name="eraserTool"
class="icon-button large-icon-button tool-button">
<i class="fas fa-eraser"></i>
</a>
</div>
</div>
<div class="pure-g tool-row">
<div>
<a id="magnify-plus-tool" tool-name="magnifyPlusTool" class="icon-button large-icon-button tool-button">
<i class="fas fa-search-plus"></i>
</a>
</div>
<div>
<a id="magnify-minus-tool" tool-name="magnifyMinusTool" class="icon-button large-icon-button tool-button">
<i class="fas fa-search-minus"></i>
</a>
</div>
</div>
<div class="pure-g tool-row">
<div>
<a id="bucket-tool" style="color:rgb(161, 161, 255);" tool-name="bucketTool"
class="icon-button large-icon-button tool-button">
<i class="fas fa-fill"></i>
</a>
</div>
</div>
</div>
<!-- TODO Convert image to png https://stackoverflow.com/questions/923885/capture-html-canvas-as-gif-jpg-png-pdf/3514404#3514404-->
<div id="canvas-container" class="pure-u-15-24">
<canvas id="origami-editor" resize></canvas>
</div>
<div id="tool-options" style="min-width:150px;" class="pure-u-1-6">
<div id="tool-options-container">
</div>
<div id="global-tools">
<hr>
<button id="undo-button" class="pure-button" disabled>
<i class="fas fa-undo"></i>
</button>
<button id="redo-button" class="pure-button" disabled>
<i class="fas fa-redo"></i>
</button>
</div>
</div>
<div id="tool-footer">
<div>
<button class="tool-footer-button" id="showhide-grid-button" class="pure-button">
<span>Show/Hide Grid</span>
</button>
<button class="tool-footer-button" id="reset-magnify-button" class="pure-button">
<span>Reset Magnification</span>
</button>
</div>
</div>
</div>
<canvas id="exportCanvas" style="display: none"></canvas>
</div>
</body>
</html>