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