-
Notifications
You must be signed in to change notification settings - Fork 13
/
math.html
64 lines (54 loc) · 1.98 KB
/
math.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The State of Mobile HTML5 Gaming</title>
<meta name="viewport" content="width=device-width, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<script src='lib/quintus.js'></script>
<script src='lib/quintus_sprites.js?123'></script>
<script src='lib/quintus_input.js'></script>
<script src='lib/quintus_scenes.js'></script>
<script src='lib/quintus_touch.js'></script>
<script src='lib/quintus_anim.js'></script>
<script src='lib/quintus_2d.js'></script>
<script src='lib/quintus_ui.js'></script>
<style>
body { max-width:1024px; margin:0 auto; }
canvas {
z-index:0;
}
</style>
</head>
<body>
<div pub-key="pub-13814550-e608-4a18-a6c1-918a7629c300" sub-key="sub-9ea75ce6-2d3d-11e0-a6b8-0de526750bdd" ssl="off" origin="pubsub.pubnub.com" id="pubnub"></div>
<script src="http://cdn.pubnub.com/pubnub-3.1.min.js"></script>
<script>(function(){
// LISTEN FOR MESSAGES
PUBNUB.subscribe({
channel : "hello_world", // CONNECT TO THIS CHANNEL.
restore : false, // STAY CONNECTED, EVEN WHEN BROWSER IS CLOSED
// OR WHEN PAGE CHANGES.
callback : function(message) { // RECEIVED A MESSAGE.
//alert(message)
},
disconnect : function() { // LOST CONNECTION.
alert(
"Connection Lost." +
"Will auto-reconnect when Online."
)
},
reconnect : function() { // CONNECTION RESTORED.
alert("And we're Back!")
},
connect : function() { // CONNECTION ESTABLISHED.
PUBNUB.publish({ // SEND A MESSAGE.
channel : "hello_world",
message : "Hi from PubNub."
})
}
})
})();</script>
</body>
</html>