forked from BytesAngels/phonegap-kineticjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (78 loc) · 2.51 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
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 2px;
padding: 2px;
}
canvas {
border: 1px solid #9C9898;
}
#container {
background-image: url('http://www.html5canvastutorials.com/demos/assets/lines.jpg');
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<script src="http://www.html5canvastutorials.com/libraries/kinetic-v3.9.7.js"></script>
<script src="demo1.js"></script>
<script src="demo2.js"></script>
<script type="text/javascript">
$(document).bind("pageinit", function() {
console.log( "Init...");
});
</script>
</head>
<body onmousedown="return false;">
<!-- HomePage-->
<div data-role="page" id="homePage">
<div data-role="header">
<h1>PhoneGap- Kinetic.js Demo</h1>
</div>
<div data-role="content">
<a href="#demoPage1" data-role="button">Kinetic.js Demo - 1</a>
<a href="#demoPage2" data-role="button">Kinetic.js Demo - 2</a>
</div>
<div data-role="footer" data-position="fixed">
<h3>Footer</h3>
</div>
</div>
<!-- DemoPage1-->
<div data-role="page" id="demoPage1" data-theme="a">
<div data-role="header">
<a href="#homePage" data-icon="back" class="ui-btn-left">Back</a>
<h1>Kinetic.js Demo - 1 </h1>
</div>
<div data-role="content">
<div id="container"></div>
</div>
<div data-role="footer" class="ui-bar ui-bar-b" >
<h2>Kinetic.js Demo - 1</h2>
</div>
<script type="text/javascript">
demo1();
</script>
</div>
<!-- DemoPage2-->
<div data-role="page" id="demoPage2" data-theme="a">
<div data-role="header">
<a href="#homePage" data-icon="back" class="ui-btn-left">Back</a>
<h1>Kinetic.js Demo - 2 </h1>
</div>
<div data-role="content">
<div id="container2"></div>
</div>
<div data-role="footer" class="ui-bar ui-bar-b" >
<a href="" id="start" data-role="button" class="ui-btn-left">Start</a>
<h2>Kinetic.js Demo - 2</h2>
<a href="" id="stop" data-role="button" class="ui-btn-right">Stop</a>
</div>
<script type="text/javascript">
demo2();
</script>
</div>
</body>
</html>