-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 1.81 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
<!DOCTYPE html>
<html>
<head>
<title>Signature</title>
<link rel="icon" href="vector-line-icon-stylus.webp">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<div class="main">
<div class="top">
<div class="block">
<p>Text color picker</p>
<input class="form-control" type="color" id="colorPicker">
</div>
<div class="block">
<p>Background</p>
<input class="form-control" type="color" id="canvasColor">
</div>
<div class="block">
<p>Font size</p>
<select class="custom-select" type="select" id="fontSizePicker">
<option value="5">5px</option>
<option value="10">10px</option>
<option value="20">20px</option>
<option value="30">30px</option>
<option value="40">40px</option>
<option value="50">50px</option>
</select>
</div>
</div>
<canvas class="canvas" id="myCanvas" width="800" height="500"></canvas>
<div class="bottom">
<button type="button" class="btn btn-danger" id="clearButton">Clear</button>
<button type="button" class="btn btn-success" id="saveButton">Save & download</button>
<button type="button" class="btn btn-warning" id="retrieveButton">Retrieve saved signature</button>
</div>
</div>
<div class="attribution" style="display: flex; justify-content: center; align-items: center;">
<text style="margin-top: 750px; margin-bottom: 20px;">Made by Vaibhav Trvedi ♥️ | Powered by 30dc</text>
</div>
<script src="script.js"></script>
</body>
</html>