no random themes for master (before merge)
This commit is contained in:
parent
cd075f5990
commit
ce5aaa2939
@ -97,6 +97,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
return acc;
|
return acc;
|
||||||
},
|
},
|
||||||
[]);
|
[]);
|
||||||
|
|
||||||
selector.addEventListener('change', function(event) {
|
selector.addEventListener('change', function(event) {
|
||||||
setTheme(event.target.value);
|
setTheme(event.target.value);
|
||||||
});
|
});
|
||||||
@ -105,15 +106,16 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
document.body.className = 'theme--' + theme;
|
document.body.className = 'theme--' + theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(function() {
|
// random theme on loading and again every 20 seconds
|
||||||
setTheme(randomOption());
|
// setInterval(function() {
|
||||||
}, 20000);
|
// setTheme(randomOption());
|
||||||
|
// }, 20000);
|
||||||
|
|
||||||
function randomOption() {
|
// function randomOption() {
|
||||||
return options[Math.floor(Math.random() * options.length)];
|
// return options[Math.floor(Math.random() * options.length)];
|
||||||
}
|
// }
|
||||||
|
|
||||||
// initial theme
|
// // initial theme
|
||||||
setTheme(randomOption());
|
// setTheme(randomOption());
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user