-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
executable file
·82 lines (64 loc) · 3.04 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
<!DOCTYPE html>
<html>
<head>
<!-- Title, so we can keep track of what page this is, even if PhoneGap doesn't display it. -->
<title>VirPong Mobile Client</title>
<!-- Defining the size of the viewport. This is useful for -->
<!-- mobile devices for the sake of scaling and disabling resizing. -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" charset="utf-8" />
<!-- Defining our main styles. "main.css" is basic stuff, -->
<!-- and the two others provide sizing relativity for the iPad -->
<!-- and Android respectively. -->
<link rel="stylesheet" href="css/main.css" type="text/css" />
<link rel="stylesheet" media="only screen and (device-width: 768px)" href="css/ipad.css" type="text/css" />
<link rel="stylesheet" media="only screen and (device-width: 800px)" href="css/android.css" type="text/css" />
<link rel="stylesheet" media="only screen and (device-width: 320px)" href="css/iphone.css" type="text/css" />
<link rel="stylesheet" media="only screen and (device-width: 480px)" href="css/iphone.css" type="text/css" />
<!-- Include PhoneGap! -->
<script type="text/javascript" charset="utf-8" src="phonegap-1.2.0-android.js"></script>
<script type="text/javascript" charset="utf-8" src="WiiPosHandler.js"></script>
<!-- Some basic JS for this document. -->
<script type="text/javascript">
/*
* This function takes an event and disables the default behavior.
* @param event e The event we're preventing the behavior of.
*/
function preventBehavior(e){
e.preventDefault();
};
/*
* When the body element loads, create an event listener
* to fire off function "onDeviceReady" when the device
* reports ready.
*/
function onBodyLoad(){
document.addEventListener("deviceready", onDeviceReady, false);
};
/*
* This gets fired off when the device reports ready.
*/
function onDeviceReady(){
// When the device is ready, disable scrolling by touch.
// document.addEventListener("touchmove", preventBehavior, false);
};
</script>
</head>
<body onload="onBodyLoad()">
<!-- When body element loads, call "onBodyLoad()" -->
<!-- Main page wrapper. -->
<div id="mainWrapper">
<!-- Display logo. -->
<div id="logo"></div>
<br />
<!-- Our big blue buttons! -->
<a class="button" href="playGame.html">Play Game (Online)</a>
<a class="button" href="aiGame.html">Local Practice</a>
<a class="button" href="settings.html">Settings</a>
<a class="button" href="replays.html">Replays</a>
<a class="button" onclick="wiiConnect()">Connect to WiiMote (iOS)</a>
<br />
<!-- Small footer text. -->
<span id="footerMeta">© 2011 Vir-Pong, Inc. All rights reserved.</span>
</div>
</body>
</html>