-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
48 lines (44 loc) · 1.28 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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Demo</title>
<script src="../js/lib/jquery-3.1.1.min.js"></script>
</head>
<body>
<div style="width:1000px; height:1000px;" class="crysyan-designer"></div>
</body>
</html>
<script src="../js/crysyan-designer.js"></script>
<script>
$(".crysyan-designer").CrysyanDesigner({
projectPath:"",
canvas: {
// px
width: 900,
height: 500
},
toobar: {
length: 500
}
}, function(designer) {
console.dir(designer);
var dataurl =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEVYWFhVVVUAAABUVFTqqlXjAAAAA3RSTlMxdACUjPeLAAAATElEQVR42u3SQQrAMAwDQSn7/z+XFExTcOxroN3zgC4STecApy1gpP2gBgZXQMwKwJ23QITYACLlQBC9gAFNwJMXoJhVc7lBA/gsuAArEgqPcT12VgAAAABJRU5ErkJggg=="
designer.drawBackgroupWithImage(dataurl);
});
//
var designer=CrysyanDesigner({
canvas: {
// px
width: 900,
height: 500
},
toobar: {
length: 500
}
}, function(designer) {
console.dir(designer);
});
designer.appendTo()
</script>