-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCCanvas.html
More file actions
90 lines (62 loc) · 2.28 KB
/
CCanvas.html
File metadata and controls
90 lines (62 loc) · 2.28 KB
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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="CCanvasStyle.css">
</head>
<h2>Draw | Write | Share</h2>
<link href="http://fonts.googleapis.com/css?family=Oleo+Script" rel="stylesheet" type="text/css">
<style type="text/css" media="screen">
h2 {
font: 400 50px/1.3 'Oleo Script', Helvetica, sans-serif;
color: #808080;
text-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}
body, head {
background-color:#004142;
color: #707070;
font:18px Helvetica;
text-align: center;
}
canvas, img {
display:block;
/*margin:0em auto;
border:0px solid black;*/}
canvas {background: url("http://i.imgur.com/6ghgesn.jpg");
}
</style>
<body onload ="InitThis();">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src= "DrawLines.js"></script>
<div align = "center">
<canvas id ="bbCanvas" width = "800" height = "450" style="border:28px ridge #663300"></canvas>
<br>
<button onclick ="javascript:clearArea(); return false;">
Wipe Out & Start Again</button>
Thickness: <select id = "selWidth">
<option value="1">1</option>
<option value="3">3</option>
<option value="7" selected="selected">7</option>
<option value="10">10</option>
<option value="15">15</option>
</select>
Color : <select id= "selColor">
<option value ="white" selected="selected">white</option>
<option value ="grey">grey</option>
<option value ="red">red</option>
<option value ="green">green</option>
</select>
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="icon_link"></div>
</div>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>