mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
theme add?
This commit is contained in:
parent
cdd2000bd3
commit
0058a112cc
122 changed files with 8127 additions and 32 deletions
20
searx/static/themes/kvanDark/src/js/head/00_init.js
Normal file
20
searx/static/themes/kvanDark/src/js/head/00_init.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* SPDX-License-Identifier: AGPL-3.0-or-later */
|
||||
(function (w, d) {
|
||||
'use strict';
|
||||
|
||||
// add data- properties
|
||||
var script = d.currentScript || (function () {
|
||||
var scripts = d.getElementsByTagName('script');
|
||||
return scripts[scripts.length - 1];
|
||||
})();
|
||||
|
||||
w.searxng = {
|
||||
settings: JSON.parse(atob(script.getAttribute('client_settings')))
|
||||
};
|
||||
|
||||
// update the css
|
||||
var hmtlElement = d.getElementsByTagName("html")[0];
|
||||
hmtlElement.classList.remove('no-js');
|
||||
hmtlElement.classList.add('js');
|
||||
|
||||
})(window, document);
|
||||
Loading…
Add table
Add a link
Reference in a new issue