Make ipad web app capable

This commit is contained in:
Eric Fredricksen
2010-07-09 14:02:16 -07:00
parent 641e4f4807
commit b1317083fd
5 changed files with 17 additions and 7 deletions
+1
View File
@@ -5,6 +5,7 @@
<link rel="stylesheet" href="progros.css" type="text/css">
<link rel="stylesheet" href="main.css" type="text/css">
<title>Progress Quest</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
</head>
<body>
+11 -5
View File
@@ -2,6 +2,7 @@
// Before launch
// TODO: Test and get working in IE
// TODO: Hide cheaters
// After launch
// TODO: Get fully operational in Opera
@@ -13,6 +14,7 @@
// TODO: Use a cookie rather than a fragment to choose char?
// TODO: Line up things on main.html perfectly
// TODO: Finalize borders in sections of main
// TODO: Better ipad support
var game = {};
var lasttick, timerid;
@@ -963,10 +965,7 @@ function FormCreate() {
Kill = $("#Kill");
$("#quit").click(function () {
SaveGame();
window.location = "roster.html";
});
$("#quit").click(quit);
LoadCharacter();
@@ -974,6 +973,11 @@ function FormCreate() {
}
function quit() {
SaveGame();
window.location = "roster.html";
}
function LoadCharacter() {
var result = true;
var name = window.location.href.split('#')[1];
@@ -1001,7 +1005,7 @@ function LoadCharacter() {
$("#title").text("Progress Quest - " + GameSaveName());
if (window.location.href.indexOf("?quit#") > 0)
$("#quit").click(); // TODO: cheesy
quit(); // TODO: cheesy
}
@@ -1067,6 +1071,8 @@ $(function() {
cheat("Save", SaveGame);
cheat("Quit", quit);
});
/*$ENDIF*/
+1
View File
@@ -8,6 +8,7 @@
<script src="jquery.js"></script>
<script src="config.js"></script>
<script src="newguy.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes" />
<style>
input, button { display: inline; }
+3 -2
View File
@@ -88,12 +88,13 @@ th:first-child {
float: right;
background: url(closedown.png);
text-decoration: none;
border: none 0;
margin: 2px 2px 0 0;
width: 16px;
padding: 0;
}
#quit:active img {
opacity: 0;
aopacity: 0;
}
.window {
+1
View File
@@ -6,6 +6,7 @@
<script src="jquery.js"></script>
<script src="config.js"></script>
<script src="roster.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes" />
<style>
.brag {