// Score is automically affected to last player. If false, score is automatically affected to the player who pressed the Score button
SCORE_LAST_PLAYER: true,
+ // Timer activation
+ ENABLE_TIMER: false,
+
// I don't like trailing commas, here is a nice message for you reading this file :-)
HAVE_FUN: true
};
setConf("API_ENTRY_POINT", Conf.APP_PATH + "/:trivabble");
setConf("PREMIUM_SEVEN_TILES", 50);
setConf("SCORE_LAST_PLAYER", true);
- setConf("ENABLE_TIMER", true);
+ setConf("ENABLE_TIMER", false);
function isSetting(key) {
return Object.prototype.hasOwnProperty.call(Conf, key) ||
- Object.prototype.hasOwnProperty.call(localStorage, key);
+ Object.prototype.hasOwnProperty.call(localStorage, "trivabble" + key);
}
function getSetting(key) {
}
function setTimerState(state) {
+ setSetting("TimerEnable", state);
if (state) {
document.getElementById("timer").style.display = "block";
document.getElementById("enable-timer").checked = true;