-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
254 lines (233 loc) · 6.73 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Free WhiteBoard for Mobile</title>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./img/whiteboard.png"
/>
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./css/img.css" />
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
<!-- Custom-Google-Font:Rajdhani -->
<link
href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<!--External colorPicker: Spectrum ColorPicker
https://bgrins.github.io/spectrum
original:
"https://bgrins.github.io/spectrum/spectrum.js"
used spectrum.js file is modified(not original)
-->
<script src="https://rajnishanand.github.io/paint/res/spectrum.js"></script>
<script src="./js/script.js"></script>
<link
href="https://bgrins.github.io/spectrum/spectrum.css"
rel="stylesheet"
/>
</head>
<body>
<!-- Loding Page-->
<div id="loadingScrn">
Loading....
<noscript>
Please change your browser to proceed. Your browser dosen't support JS.
</noscript>
</div>
<!--Sidebar-->
<svg id="svgIco1">
<path d="M18 8 L8 24 L18 40" />
</svg>
<div id="sideBar">
<h1>CanvasPaint</h1>
<h5>
Resolution :
<span id="reS">4</span>x
</h5>
<p>
<input id="inpRes" type="range" min="1" max="10" value="4" />
<button id="resConf">Confirm</button>
</p>
<h5>Canvas Background</h5>
<p style="display: grid; grid-template-columns: auto auto;">
<button class="canvBgColo">
White
</button>
<button class="canvBgColo">
Black
</button>
</p>
<h5>Experimental</h5>
<p>
<input id="experimentalInp1" type="checkbox" checked />
<label for="experimentalInp1"> Show Taps </label><br /><br />
<label for="experimentalInp2">
Opacity:
<span id="transp">100</span>%
</label>
<input
id="experimentalInp2"
type="range"
min="1"
value="100"
max="100"
/><br />
<input type="checkbox" id="experimentalInp3" />
<label for="experimentalInp3"> Show Outline </label><br />
</p>
<h5>Save your Drawing</h5>
<p>
<button id="downloadBtn">Download</button>
</p>
<h5>ℹ️Info :</h5>
<p>
Adjusted for Small Screen<br />
Best view on Android<br />
version:4.3.9
</p>
<h5>Coming Soon</h5>
<p>
Select Item<br />
Undo / Redo<br />
Add pages<br />
Add Images<br />
Sticky posts<br />
Upload Video and Audio<br />
Use tick and wrong marks<br />
Share whiteboard with Team<br />
</p>
<h5>Support Me</h5>
<p>
<a target="_blank" href="https://www.buymeacoffee.com/georgebawesome">
<img src="./img/bmc-logo.webp" width="150" height="33" />
</a>
</p>
<h5>Security</h5>
<p>
<a
href="https://www.gogetssl.com"
rel="nofollow"
title="GoGetSSL Site Seal Logo"
>
<div
id="gogetssl-animated-seal"
style="width: 180px; height: 58px;"
></div>
</a>
<script src="https://gogetssl-cdn.s3.eu-central-1.amazonaws.com/site-seals/gogetssl-seal.js"></script>
</p>
</div>
<!--for Tools (eraser, pencil.. ) -->
<div id="shapesC">
<div class="shapes">
<svg class="shapeIco">
<path
style="stroke-width: 1px;"
d="
M8 12 L20 24 L32 12 L20 0 L0 20 L8 28 L16 28 L20 24
M8 28 L32 28
M12 12 L20 4
"
/>
</svg>
</div>
<div class="shapes">
<svg class="shapeIco">
<path
style="stroke-width: 1px;"
d="
M0 32 L12 28 L4 20 L0 32
M4 20 L20 4 L28 12 L12 28
M20 4 Q24 0 28 4 Q32 8 28 12
M8 20 L20 8
M2 26 L6 30
"
/>
</svg>
</div>
<div class="shapes">
<svg class="shapeIco">
<line x1="4" y1="4" x2="28" y2="28" />
</svg>
</div>
<div class="shapes">
<svg class="shapeIco">
<rect x="4" y="4" height="24" width="24" />
</svg>
</div>
<div class="shapes">
<svg class="shapeIco">
<circle cx="50%" cy="50%" r="12" />
</svg>
</div>
<!--div class="shapes">
<svg class="shapeIco">
<text x="20%" y="80%" style="font-family:serif;stroke-width:1px;font-size:1.8em;" >T</text>
</svg>
</div -->
<div id="clr">
<svg class="shapeIco" style="stroke-width: 1px;">
<path
d="
M12 8 a1 1 0 0 1 8 0
M8 8 l16 0 l0 2 l-16 0 l0 -2
M8 12 l16 0 l-2 0 l0 16 l-12 0 l0 -16
M12 15 l0 10 m10 0 l0 -10
"
/>
</svg>
</div>
</div>
<!--Mini tool box for pencil,line, rect & circle, -->
<div id="stYl">
<div class="strokWidCnt">
<div id="strokeWidthDemo"></div>
<div id="stroKwidH"></div>
</div>
<div class="colOp">
Stroke :
<input type="text" id="strokeColInp" />
</div>
<div class="colOp">
Fill :
<input type="text" id="fillColInp" />
</div>
<div class="colOp">
Fill : Disabled
</div>
<svg id="closE">
<path
d="
M15 15 L30 30 M15 30 L30 15
"
/>
</svg>
<input id="inp1" type="range" min="1" max="50" value="2" />
<div class="filL">
Fill:
<input id="inp6" type="checkbox" />
</div>
</div>
<!--Eraser tool box-->
<div id="ersrT">
<div id="eraser-size">30</div>
<input type="range" max="100" min="1" value="30" id="inpEr" />
<svg id="closR">
<path
d="
M15 15 L30 30 M15 30 L30 15
"
/>
</svg>
</div>
<!--Triple-layer ✡⛦⛯ canvas-->
<canvas id="canvs"></canvas>
<canvas id="canvH"></canvas>
<canvas id="canvI"></canvas>
</body>
</html>