-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrawing_board.html
34 lines (34 loc) · 1.24 KB
/
drawing_board.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
<!DOCTYPE html>
<head>
<title>Drawing Board</title>
<link rel = "stylesheet" href="drawing_board.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
</head>
<style>
#div{
width: 455px;
height: 470px;
border: 1px solid black;
}
</style>
<body>
<div id="div"></div>
<button type = "button" onclick="captureBoard()">Done!</button>
</body>
<script src="drawing_board.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js"></script>
<script>
$(document).ready(function(){
var imageBoard = new DrawingBoard.Board('div',{
background: "#FFFF",
color: "#000",
size: 30,
webStorage: "session"
});
});
</script>
</html>