mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Pass lint
This commit is contained in:
@@ -161,6 +161,7 @@ function CookieStorage() {
|
|||||||
return result;
|
return result;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Probably a JSON parse error
|
// Probably a JSON parse error
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -170,8 +171,8 @@ function CookieStorage() {
|
|||||||
|
|
||||||
this.removeItem = function (key) {
|
this.removeItem = function (key) {
|
||||||
document.cookie = key + "=; expires=Thu, 01-Jan-70 00:00:01 GMT;";
|
document.cookie = key + "=; expires=Thu, 01-Jan-70 00:00:01 GMT;";
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var storage = window.localStorage;
|
var storage = window.localStorage;
|
||||||
@@ -203,8 +204,8 @@ function storeRoster(roster) {
|
|||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.toString().indexOf("QUOTA_EXCEEDED_ERR") != -1) {
|
if (err.toString().indexOf("QUOTA_EXCEEDED_ERR") != -1) {
|
||||||
alert("This browser lacks storage capacity to save this game. This game can continue but cannot be saved. (Mobile Safari, I'll wager?)")
|
alert("This browser lacks storage capacity to save this game. This game can continue but cannot be saved. (Mobile Safari, I'll wager?)");
|
||||||
storage = null;;
|
storage = null;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1017,7 +1017,7 @@ function Cheats() {
|
|||||||
cheat("Clear items", function () {
|
cheat("Clear items", function () {
|
||||||
while (Inventory.length() > 1)
|
while (Inventory.length() > 1)
|
||||||
Inventory.remove1();
|
Inventory.remove1();
|
||||||
})
|
});
|
||||||
|
|
||||||
cheat("Spell", function () {
|
cheat("Spell", function () {
|
||||||
WinSpell();
|
WinSpell();
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ function sold() {
|
|||||||
'task|6|A shocking series of events leaves you alone and bewildered, but resolute',
|
'task|6|A shocking series of events leaves you alone and bewildered, but resolute',
|
||||||
'task|4|Drawing upon an unexpected reserve of determination, you set out on a long and dangerous journey',
|
'task|4|Drawing upon an unexpected reserve of determination, you set out on a long and dangerous journey',
|
||||||
'plot|2|Loading'
|
'plot|2|Loading'
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
newguy.date = newguy.birthday;
|
newguy.date = newguy.birthday;
|
||||||
|
|||||||
@@ -80,10 +80,6 @@ th:first-child {
|
|||||||
margin: 2 0 0 2;
|
margin: 2 0 0 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#titlebar button {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
#quit {
|
#quit {
|
||||||
float: right;
|
float: right;
|
||||||
background: url(closedown.png);
|
background: url(closedown.png);
|
||||||
|
|||||||
Reference in New Issue
Block a user