checkbox hide fix

This commit is contained in:
Heydon Pickering 2017-08-25 12:31:58 +01:00
parent 26a64f4136
commit 5c64a6b161
3 changed files with 11 additions and 11 deletions

View File

@ -107,12 +107,12 @@
var checkbox = document.getElementById('themer');
var inverter = document.getElementById('inverter');
function darkTheme(media) {
if (!CSSSupported('filter', 'invert(100%)')) {
checkbox.parentNode.hidden = true;
return;
}
if (!CSSSupported('filter', 'invert(100%)')) {
checkbox.parentNode.hidden = true;
return;
}
function darkTheme(media) {
inverter.setAttribute('media', media);
inverter.textContent = inverter.textContent.trim();
localStorage.setItem('darkTheme', media);

File diff suppressed because one or more lines are too long

View File

@ -107,12 +107,12 @@
var checkbox = document.getElementById('themer');
var inverter = document.getElementById('inverter');
function darkTheme(media) {
if (!CSSSupported('filter', 'invert(100%)')) {
checkbox.parentNode.hidden = true;
return;
}
if (!CSSSupported('filter', 'invert(100%)')) {
checkbox.parentNode.hidden = true;
return;
}
function darkTheme(media) {
inverter.setAttribute('media', media);
inverter.textContent = inverter.textContent.trim();
localStorage.setItem('darkTheme', media);