-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.html
207 lines (201 loc) · 7.62 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Certificate Generator | CERRT | SemiKolan</title>
<link rel="stylesheet" href="assets/style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script src="vendor/joystick.js"></script>
</head>
<body>
<header>
<h1>Certificate Generator</h1>
</header>
<main id="main">
<div class="toolscontainer">
<div class="textforamtting">
<select id="fontfamily" class="font-family">
<option value="Arial">Arial</option>
<option value="Courier New">Courier New</option>
<option value="Georgia">Georgia</option>
<option value="Helvetica">Helvetica</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Verdana">Verdana</option>
<option value="Comic Sans MS">Comic Sans MS</option>
<option value="Impact">Impact</option>
<option value="Lucida Console">Lucida Console</option>
<option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
</select>
<select id="fontsize">
<option value="1">1x</option>
<option value="2">2x</option>
<option value="3">3x</option>
<option value="4">4x</option>
<option value="5">5x</option>
<option value="6">6x</option>
<option value="7">7x</option>
<option value="8">8x</option>
<option value="9">9x</option>
<option value="10">10x</option>
</select>
<select id="textalign">
<option value="left">Left</option>
<option value="center">Center</option>
<option value="right">Right</option>
</select>
</div>
<div class="textforamtting">
<button id="textbold" class="formattool" data-active="0">B</button>
<button id="textitalic" class="formattool" data-active="0">I</button>
<input type="color" id="textcolor" />
<div class="slidecontainer">
<input
type="range"
min="0"
max="100"
value="80"
class="slider"
id="textopacity"
/>
</div>
</div>
</div>
<div>
<div id="containerdiv">
<div id="certificatediv">
<canvas id="certificatecanvas"></canvas>
</div>
<div class="downloadcontainer downloadfile">
<div>
Download as:
<select id="downloadtype">
<option value="png">PNG</option>
<option value="jpg">JPG</option>
<option value="pdf">PDF</option>
</select>
</div>
<div>
<button id="downloadbutton" class="button">Download</button>
</div>
</div>
<div class="downloadcontainer downloadzip">
<button id="downloadzipbutton" class="button">Download Zip</button>
</div>
</div>
<div id="asidebar">
<div id="editor"></div>
<div class="uploadcontainer">
<!-- Limit only Image Files -->
<label class="button uploadlabel">
Upload CSV/Excel
<input
id="uploadcsv"
type="file"
class="button"
value="Upload Image"
accept=".csv,application/vnd.ms-excel,.xlt,application/vnd.ms-excel,.xla,application/vnd.ms-excel,.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template,.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12,.xltm,application/vnd.ms-excel.template.macroEnabled.12,.xlam,application/vnd.ms-excel.addin.macroEnabled.12,.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12"
/>
</label>
<label class="button uploadlabel">
Upload Cerrt
<input
id="uploadimage"
type="file"
class="button"
value="Upload Image"
accept="image/*"
/>
</label>
</div>
<div id="inputs">
<div>
<input type="checkbox" class="certcheck" />
<input
type="text"
value="Holder's Name"
data-fontsize="7"
data-font="Verdana"
data-textalign="center"
data-x="50"
data-y="42"
data-color="#000"
data-opacity="80"
data-bold="1"
data-italic="0"
class="certinputs"
/>
<button class="delbutton"><i class="fa fa-trash"></i></button>
</div>
<div>
<input type="checkbox" class="certcheck" />
<input
type="text"
value="Organization's Name"
data-fontsize="4"
data-font="Verdana"
data-textalign="center"
data-x="50"
data-y="26"
data-color="#000"
data-opacity="80"
class="certinputs"
data-bold="0"
data-italic="0"
/>
<button class="delbutton"><i class="fa fa-trash"></i></button>
</div>
<div>
<input type="checkbox" class="certcheck" />
<input
type="text"
value="using CERRT "
data-fontsize="3"
data-font="Verdana"
data-textalign="center"
data-x="50"
data-y="64"
data-color="#000"
data-opacity="80"
class="certinputs"
data-bold="0"
data-italic="0"
/>
<button class="delbutton"><i class="fa fa-trash"></i></button>
</div>
</div>
<div class="optionscontainer">
<button id="addinput"><i class="fa fa-plus"></i> Add</button>
</div>
<div style="display: flex; justify-content: center">
<div style="width: 128px; position: relative">
<img
src="https://www.cssscript.com/demo/touch-joystick-controller/images/joystick-base.png"
/>
<div id="stick" style="position: absolute; left: 32px; top: 32px">
<img
src="https://www.cssscript.com/demo/touch-joystick-controller/images/joystick-red.png"
/>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="loaderbody">
<div>
<span id="progress">-/-</span>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.14.3/xlsx.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.3/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip-utils/0.1.0/jszip-utils.min.js"></script>
<script src="assets/script.js"></script>
</body>
</html>