mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Make ipad web app capable
This commit is contained in:
@@ -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*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user