-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (27 loc) · 1.08 KB
/
Copy pathindex.html
File metadata and controls
32 lines (27 loc) · 1.08 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Drawing Book</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
</head>
<body>
<!-- We start everything hidden, and then display when the JSUI module stylesheets get loaded to prevent delay in positioning. -->
<div id="main-container-div" style="display:none">
<div id="toolBar" class="position-top-center">
<input type="color" id="colorPicker" value="#ffffff" />
<input name="brushSize" type="range" id="brushSize" value="5" min="1" max="500" step="1" />
<label for="brushSize"></label>
</div>
<div id="canvasArea" class="position-fixed position-center">
<canvas id="cnvs" width="280px" height="400px">
Canvas not supported!
</canvas>
</div>
<a download="cnvs.png" onclick="downloadCanvas()">Click to Download</a>
</div>
<script type="module" src="main.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>