Storage bug, minor layout, cleanup

This commit is contained in:
Eric Fredricksen
2010-07-07 14:55:25 -07:00
parent 897b0a82a4
commit b4ba1db698
2 changed files with 13 additions and 24 deletions
+6 -14
View File
@@ -9,15 +9,7 @@
// TODO: Get better ProgrOS screenshot with just PQ // TODO: Get better ProgrOS screenshot with just PQ
// TODO: Charsheet in some more pleasing delivery method // TODO: Charsheet in some more pleasing delivery method
// TODO: Take a snap of some dice. Probably 4. ::: ::: ::_ ___ // TODO: Take a snap of some dice. Probably 4. ::: ::: ::_ ___
// TODO: Use a cookie rather than a fragment to choose char?
// revs:
// 6: pq 6.3/web
// 5: pq 6.3
// 4: pq 6.2
// 3: pq 6.1
// 2: pq 6.0
// 1: pq 6.0, some early release I guess;)n't remember
var RevString = '&rev=6';
var game = {}; var game = {};
var lasttick, timerid; var lasttick, timerid;
@@ -31,8 +23,6 @@ function StartTimer() {
lasttick = timeGetTime(); lasttick = timeGetTime();
timerid = setInterval(Timer1Timer, 100); timerid = setInterval(Timer1Timer, 100);
} }
// BS location for this, but...
// MainForm.Caption = 'ProgressQuest - ' + ChangeFileExt(ExtractFileName(MainForm.GameSaveName()), '');
} }
function StopTimer() { function StopTimer() {
@@ -803,8 +793,10 @@ function CompleteAct() {
Plots.remove(0); Plots.remove(0);
Plots.Add('Act ' + toRoman(game.act)); Plots.Add('Act ' + toRoman(game.act));
WinItem(); if (game.act > 1) {
WinEquip(); WinItem();
WinEquip();
}
Brag('act'); Brag('act');
} }
@@ -984,7 +976,7 @@ function LoadCharacter() {
return; return;
} }
if (true || !window.localStorage) { if (!window.localStorage) {
// Cookies can't hold a whole game save // Cookies can't hold a whole game save
storage.removeItem("roster"); storage.removeItem("roster");
storage = null; storage = null;
+7 -10
View File
@@ -28,7 +28,8 @@ div.bs {
body { body {
text-align: center; text-align: center;
} }
#roster {
p {
margin-left: 10%; margin-left: 10%;
margin-right: 10%; margin-right: 10%;
text-align: left; text-align: left;
@@ -56,11 +57,6 @@ a.x, a.sheet {
text-decoration: none; text-decoration: none;
} }
blockquote {
margin: 0 10% 0 10%;
padding: 1ex;
font-size: 11pt;
}
</style> </style>
</head> </head>
@@ -72,13 +68,13 @@ blockquote {
<h1>Character Roster</h1> <h1>Character Roster</h1>
<blockquote align="left"> <p align="left">
In the olden times you'd <a href="download.php">download</a> Progress In the olden times you'd <a href="download.php">download</a> Progress
Quest to your computer; now you may instead play Progress Quest Quest to your computer; now you may instead play Progress Quest
directly in your browser. Most modern browsers will save your game(s) directly in your browser. Most modern browsers will save your game(s)
on this page, in this browser. Online leader boards and server-side on this page, in this browser. Online leader boards and server-side
game saves are not implemented at this time. game saves are not implemented at this time.
</blockquote> </p>
<p id=roster> <p id=roster>
</p> </p>
@@ -90,10 +86,11 @@ game saves are not implemented at this time.
<button id="roll">Roll One Up</button> <button id="roll">Roll One Up</button>
</td></tr></table> </td></tr></table>
<p> <div>
Testing:
<button id=test>Test</button> <button id=test>Test</button>
<button id=clear>Clear</button> <button id=clear>Clear</button>
</div>
<br> <br>
<div align="center" id="nabar"> <div align="center" id="nabar">