This commit is contained in:
@@ -13,13 +13,20 @@
|
||||
if (!document.querySelector('link[data-fluxtimer]')) {
|
||||
var timerCss = document.createElement('link');
|
||||
timerCss.rel = 'stylesheet';
|
||||
timerCss.href = '/css/fluxtimer.css?v=3';
|
||||
timerCss.href = '/css/fluxtimer.css?v=4';
|
||||
timerCss.setAttribute('data-fluxtimer', '');
|
||||
document.head.appendChild(timerCss);
|
||||
}
|
||||
if (!document.querySelector('link[data-platform-neural]')) {
|
||||
var neuralCss = document.createElement('link');
|
||||
neuralCss.rel = 'stylesheet';
|
||||
neuralCss.href = '/css/platform-neural.css?v=1';
|
||||
neuralCss.setAttribute('data-platform-neural', '');
|
||||
document.head.appendChild(neuralCss);
|
||||
}
|
||||
if (!document.querySelector('script[data-fluxtimer]')) {
|
||||
var timerScript = document.createElement('script');
|
||||
timerScript.src = '/js/fluxtimer.js?v=1';
|
||||
timerScript.src = '/js/fluxtimer.js?v=2';
|
||||
timerScript.defer = true;
|
||||
timerScript.setAttribute('data-fluxtimer', '');
|
||||
document.head.appendChild(timerScript);
|
||||
@@ -96,6 +103,8 @@
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var isGame = document.querySelector('.mm-body,.tt-body,.dl-body,.dlg-body,.ss-body,.esc-app,.bh-app,.sc-app,.nw-app');
|
||||
if (!isGame) document.body.classList.add('sn-platform');
|
||||
document.querySelectorAll('.mf-theme').forEach(function (b) {
|
||||
b.setAttribute('role', 'button');
|
||||
b.setAttribute('aria-label', 'Theme umschalten');
|
||||
|
||||
Reference in New Issue
Block a user