More dumb IE8 workarounds
This commit is contained in:
parent
373cf9b8a5
commit
dbc5b57064
|
@ -337,7 +337,10 @@ function save() {
|
|||
function start() {
|
||||
var p = document.getElementById("period");
|
||||
var j = document.getElementById("jam");
|
||||
var c;
|
||||
|
||||
// IE8 doesn't have localStorage for files. Laaaame.
|
||||
if (localStorage) {
|
||||
e("name-a").innerHTML = dfl(localStorage.rdsb_name_a, "Home");
|
||||
e("name-b").innerHTML = dfl(localStorage.rdsb_name_b, "Vis");
|
||||
e("logo-a").src = dfl(localStorage.rdsb_logo_a, "logos/black.png");
|
||||
|
@ -347,18 +350,20 @@ function start() {
|
|||
e("timeouts-a").innerHTML = dfl(localStorage.rdsb_timeout_a, 3);
|
||||
e("timeouts-b").innerHTML = dfl(localStorage.rdsb_timeout_b, 3);
|
||||
period = Number(localStorage.rdsb_period) || 0;
|
||||
c = Number(localStorage.rdsb_period_clock || 1800000);
|
||||
|
||||
save_itimer = setInterval(save, 1000);
|
||||
}
|
||||
|
||||
e("periodtext").innerHTML = periodtext[period];
|
||||
e("jamtext").innerHTML = "Setup";
|
||||
transition();
|
||||
|
||||
c = Number(localStorage.rdsb_period_clock || 1800000);
|
||||
startTimer(p);
|
||||
p.set(c);
|
||||
|
||||
startTimer(j, true);
|
||||
j.set(120000);
|
||||
|
||||
save_itimer = setInterval(save, 1000);
|
||||
}
|
||||
|
||||
window.onload = start;
|
||||
|
|
Loading…
Reference in New Issue