From b1317083fde47e862f59776c48b84c9508bc34e8 Mon Sep 17 00:00:00 2001 From: Eric Fredricksen Date: Fri, 9 Jul 2010 14:02:16 -0700 Subject: [PATCH] Make ipad web app capable --- main.html | 1 + main.js | 16 +++++++++++----- newguy.html | 1 + progros.css | 5 +++-- roster.html | 1 + 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/main.html b/main.html index 43bb20b..ca00012 100644 --- a/main.html +++ b/main.html @@ -5,6 +5,7 @@ Progress Quest + diff --git a/main.js b/main.js index 6e2486c..5b99585 100644 --- a/main.js +++ b/main.js @@ -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*/ diff --git a/newguy.html b/newguy.html index 4f606fc..3a87654 100644 --- a/newguy.html +++ b/newguy.html @@ -8,6 +8,7 @@ +