mirror of
https://github.com/searxng/searxng.git
synced 2025-08-01 01:22:22 +02:00
[enh] simple theme: add "simple-style" preferences
This commit is contained in:
parent
f6bfc8f461
commit
ec5a82fccd
9 changed files with 149 additions and 103 deletions
|
@ -27,5 +27,10 @@
|
|||
};
|
||||
|
||||
// update the css
|
||||
d.getElementsByTagName("html")[0].className = (w.searxng.touch)?"js touch":"js";
|
||||
var hmtlElement = d.getElementsByTagName("html")[0];
|
||||
hmtlElement.classList.remove('no-js');
|
||||
hmtlElement.classList.add('js');
|
||||
if (w.searxng.touch) {
|
||||
hmtlElement.classList.add('touch');
|
||||
}
|
||||
})(window, document);
|
Loading…
Add table
Add a link
Reference in a new issue