-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (137 loc) · 5.43 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />`
<title>inKlan</title>
<script src="/socket.io/socket.io.js"></script>
<link rel="stylesheet" href="/pure.css" />
<script src="/jquery.js"></script>
<script src="/easeljs-0.8.1.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.body-centered {
margin: 0px auto;
text-align: center;
}
.controls,
.controls-check {
color: white;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: rgb(28, 184, 65);
}
.capture {
color: white;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: rgb(65, 65, 65);
}
.delete {
color: white;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: rgb(184, 65, 28);
}
.controls-check {
display: inline-block;
zoom: 1;
line-height: normal;
white-space: nowrap;
vertical-align: middle;
text-align: center;
cursor: pointer;
-webkit-user-drag: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0.5em 1em;
border: 1px solid #999; /*IE 6/7/8*/
border: none rgba(0, 0, 0, 0); /*IE9 + everything else*/
}
</style>
</head>
<body class="body-centered">
<div class='pure-g'>
<div align="right" class="pure-u-18-24">
<div>
<canvas id="canv" style="border:1px dotted; margin: 0px auto;" width="800" height="600"></canvas>
</div>
<div>
<!-- list and other stuff -->
<br>
<br><br><br>
<script src="/client.js"></script>
</div>
<div id="debugPrompt"></div>
</div>
<div class="pure-u-6-24" align="left">
<div>
<img src="/logo.png" width="150px"></img><br>
<button class="controls pure-button" id="mode"></button><br><br>
<div id="linediv">
<button class="controls pure-button" id="line">Line (L)
</button><br><br>
</div>
<div id="delete">
<button class="delete pure-button">Delete (X)
</button><br><br>
</div>
<button class="controls pure-button" id ="poly">Polygon (P)
</button><br><br>
<label for="fillBox" class="controls-check pure-checkbox">
<input id="fillBox" type="checkbox">
Fill (F)
</label><br><br>
<label for="strokeBox" class="controls-check pure-checkbox">
<input id="strokeBox" type="checkbox" checked="true">
Stroke (S)
</label><br><br>
<label for="previewBox" class="controls-check pure-checkbox">
<input id="previewBox" type="checkbox">
Preview (V)
</label><br><br>
<!-- Color picker with spectrum.js -->
<script src="spectrum/spectrum.js"></script>
<link rel="stylesheet" href="spectrum/spectrum.css" />
<p> <input id='linecolorpicker' onchange="changeLineColor()"/>
Line Color</p>
<script>
$("#linecolorpicker").spectrum({
preferredFormat: "rgb",
showInput: true,
showAlpha: true
});
</script>
<script src="spectrum/spectrum.js"></script>
<link rel="stylesheet" href="spectrum/spectrum.css" />
<p> <input id='fillingcolorpicker' onchange="changeFillingColor()"/>
Filling Color</p>
<script>
$("#fillingcolorpicker").spectrum({
preferredFormat: "rgb",
showInput: true,
showAlpha: true
});
</script>
<small><button id ="exportSVG" onclick="exportPNG()" class="capture pure-button">Capture Canvas</button></small>
</div>
</div>
</div>
<div class="pure-u-1" id="footer">
<h3>Used in this project:</h3>
<a href="http://www.createjs.com/easeljs"><img src="/createjs-badge-light.png" width="150px"></a>
<a href="https://nodejs.org/"><img src="logo-light.svg" width="120px"></a>
<a href="http://purecss.io/"><img src="/[email protected]" width="150px"></a>
<a href="https://bgrins.github.io/spectrum/" style="text-decoration:none;"><font size="6">Spectrum</font></a>
<br><br>
<h4>© 2015 inKlan <a href="https://github.com/mseefelder" style="text-decoration:none;">Marcos Seefelder</a> e <a href="http://pboueke.github.io/about.html" style="text-decoration:none;">Pedro Boueke</a></h4>
<p> Source: <br><a href="https://github.com/mseefelder/inKlan"><img src="/github-bb449e0ffbacbcb7f9c703db85b1cf0b.png" width="150px"></a></p>
</div>
</body>
</html>