This repository was archived by the owner on Dec 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfullscreen-example.html
More file actions
60 lines (50 loc) · 2.1 KB
/
fullscreen-example.html
File metadata and controls
60 lines (50 loc) · 2.1 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
<!DOCTYPE html>
<html>
<head>
<title>coDesign.js - fullscreen example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link href="libs/farbtastic/farbtastic.css" rel="stylesheet" type="text/css" />
<link href="libs/tipsy/src/stylesheets/tipsy.css" rel="stylesheet" type="text/css" />
<!-- link href="src/css/coDesign.css" rel="stylesheet" type="text/css" /-->
<link href="libs/coDesign/css/coDesign.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="libs/farbtastic/farbtastic.js"></script>
<script type="text/javascript" src="libs/tipsy/src/javascripts/jquery.tipsy.js"></script>
<!--script type="text/javascript" src="src/js/brushes.js"></script>
<script type="text/javascript" src="src/js/colors.js"></script>
<script type="text/javascript" src="src/js/ColorArray.js"></script>
<script type="text/javascript" src="src/js/CanvasDraw.js"></script>
<script type="text/javascript" src="src/js/CanvasWrite.js"></script>
<script type="text/javascript" src="src/js/CanvasControl.js"></script>
<script type="text/javascript" src="src/js/jquery.coDesign.js"></script-->
<script type="text/javascript" src="libs/coDesign/js/jquery.coDesign.min.js"></script>
<style>
body {
font-family: helvetica, arial, sans-serif;
overflow:hidden;
margin:0;
}
</style>
</head>
<body>
<div id="rainbow"></div>
<script>
$('#rainbow').coDesign({
fullScreen: true,
brushes: window.brushes,
colors: window.colors,
controlPanel: true,
brushSize: 2,
color: '#f00',
onDraw: function(event){},
onWrite: function(event){}
});
</script>
<script>
var _gaq=[["_setAccount","UA-27156183-1"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
</script>
</body>
</html>