added night mode to expo

This commit is contained in:
2019-12-11 11:45:18 +01:00
parent 180b98274b
commit f19d9445a8
5 changed files with 32 additions and 4 deletions
@@ -1044,7 +1044,7 @@
_randomPlayer = new RandomPlayer(e.playlist);
if (_is_expo) {
_randomPlayer.start();
initExpo();
}
// mainly for articles link
@@ -1951,6 +1951,18 @@
// }
};
// ___
// | __|_ ___ __ ___
// | _|\ \ / '_ \/ _ \
// |___/_\_\ .__/\___/
// |_|
function initExpo(){
console.log('initExpo', window.location.hash);
if(window.location.hash == '#black'){
$('body').addClass('expo-black');
}
_randomPlayer.start();
}
// ___ _ _
// / __|_ _(_)__| |