disactivate timers by default
This commit is contained in:
parent
94feed71b6
commit
8f9ed16bce
|
@ -41,6 +41,9 @@ window.TrivabbleConf = {
|
|||
// 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
|
||||
};
|
||||
|
|
|
@ -62,11 +62,11 @@
|
|||
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) {
|
||||
|
@ -2262,6 +2262,7 @@
|
|||
}
|
||||
|
||||
function setTimerState(state) {
|
||||
setSetting("TimerEnable", state);
|
||||
if (state) {
|
||||
document.getElementById("timer").style.display = "block";
|
||||
document.getElementById("enable-timer").checked = true;
|
||||
|
|
Loading…
Reference in New Issue