-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (50 loc) · 2.84 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
<!DOCTYPE html>
<html>
<head>
<title>Drawing Pad - @shazee.04</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="body" onload="onLoad();">
<div class="container">
<div class="row">
<section class="tool-box">
<div><button class="btnClear" id="btnSave" onclick="clearCanvas();">Clear</button></div>
<div class="iconDiv">
<img class="icons" src="icon-gif/circle.gif" onclick="changeTool('circle');" id="circle" />
<img class="icons" src="icon-gif/rectangle.gif" onclick="changeTool('rectangle');" id="rectangle" />
<img class="icons" src="icon-gif/triangle2.gif" onclick="changeTool('triangle');" id="triangle" />
<img class="icons" src="icon-gif/eraser2.gif" onclick="changeTool('eraser');" id="eraser" />
<img class="icons" src="icon-gif/brush.gif" onclick="changeTool('brush');" id="brush" />
<div class="inputDiv">
<input type="range" min="1" max="30" value="5" class="size-slider" id="size-slider"
onchange="changeBrushSize();" />
<p class="rangeSize" id="rangeSize"></p>
</div>
<!-- <input type="checkbox" class="fill-checkbox" id="fill-checkbox" /> -->
<div class="strokeDiv1">
<label class="cr-wrapper">
<input type="checkbox" class="fill-checkbox" id="fill-checkbox" />
<div class="cr-input"></div><span class="toolTip">Fill</span>
</label>
</div>
<input type="color" value="#fff" class="color-picker" id="color-picker" onchange="changeColor();" />
<div class="strokeDiv2">
<label class="cr-wrapper">
<input type="checkbox" checked="checked" class="fill-checkbox" id="fill-checkbox2" />
<div class="cr-input"></div><span class="toolTip">Stroke</span>
</label>
</div>
<input type="color" value="#ff0000" class="color-picker" id="color-picker2"
onchange="changeColor();" />
</div>
<div><button class="btnSave" id="bntSave" onclick="save();">Save</button></div>
</section>
<section class="drawing-board">
<canvas class="canvas" id="canvas" onmousemove="canvasOnMouseMove(event);"
onmousedown="canvasOnMouseDown(event);" onmouseup="canvasOnMouseUp();"></canvas>
</section>
</div>
</div>
<script src="script.js"></script>
</body>
</html>