mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Storage bug, minor layout, cleanup
This commit is contained in:
@@ -9,15 +9,7 @@
|
||||
// TODO: Get better ProgrOS screenshot with just PQ
|
||||
// TODO: Charsheet in some more pleasing delivery method
|
||||
// TODO: Take a snap of some dice. Probably 4. ::: ::: ::_ ___
|
||||
|
||||
// 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';
|
||||
// TODO: Use a cookie rather than a fragment to choose char?
|
||||
|
||||
var game = {};
|
||||
var lasttick, timerid;
|
||||
@@ -31,8 +23,6 @@ function StartTimer() {
|
||||
lasttick = timeGetTime();
|
||||
timerid = setInterval(Timer1Timer, 100);
|
||||
}
|
||||
// BS location for this, but...
|
||||
// MainForm.Caption = 'ProgressQuest - ' + ChangeFileExt(ExtractFileName(MainForm.GameSaveName()), '');
|
||||
}
|
||||
|
||||
function StopTimer() {
|
||||
@@ -803,8 +793,10 @@ function CompleteAct() {
|
||||
Plots.remove(0);
|
||||
Plots.Add('Act ' + toRoman(game.act));
|
||||
|
||||
if (game.act > 1) {
|
||||
WinItem();
|
||||
WinEquip();
|
||||
}
|
||||
|
||||
Brag('act');
|
||||
}
|
||||
@@ -984,7 +976,7 @@ function LoadCharacter() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (true || !window.localStorage) {
|
||||
if (!window.localStorage) {
|
||||
// Cookies can't hold a whole game save
|
||||
storage.removeItem("roster");
|
||||
storage = null;
|
||||
|
||||
+7
-10
@@ -28,7 +28,8 @@ div.bs {
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
#roster {
|
||||
|
||||
p {
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
text-align: left;
|
||||
@@ -56,11 +57,6 @@ a.x, a.sheet {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 10% 0 10%;
|
||||
padding: 1ex;
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
@@ -72,13 +68,13 @@ blockquote {
|
||||
<h1>Character Roster</h1>
|
||||
|
||||
|
||||
<blockquote align="left">
|
||||
<p align="left">
|
||||
In the olden times you'd <a href="download.php">download</a> Progress
|
||||
Quest to your computer; now you may instead play Progress Quest
|
||||
directly in your browser. Most modern browsers will save your game(s)
|
||||
on this page, in this browser. Online leader boards and server-side
|
||||
game saves are not implemented at this time.
|
||||
</blockquote>
|
||||
</p>
|
||||
|
||||
<p id=roster>
|
||||
</p>
|
||||
@@ -90,10 +86,11 @@ game saves are not implemented at this time.
|
||||
<button id="roll">Roll One Up</button>
|
||||
</td></tr></table>
|
||||
|
||||
<p>
|
||||
<div>
|
||||
Testing:
|
||||
<button id=test>Test</button>
|
||||
<button id=clear>Clear</button>
|
||||
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div align="center" id="nabar">
|
||||
|
||||
Reference in New Issue
Block a user