summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/js/searxng.head.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-01 09:25:00 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-01 10:38:41 +0100
commit82125862c61392b5934155ce4db58e20ffbfddc8 (patch)
treed6e0bdaa80e138fe7d7eaa1e881be62d3e9fc798 /searx/static/themes/simple/js/searxng.head.js
parent28b22a0f9836dff7e6f6fd1436227dead0db4abd (diff)
[fix] simple theme: remove static files no longer needed
remove: searx/static/themes/simple/js/searxng.js searx/static/themes/simple/js/searxng.head.js searx/static/themes/simple/css/searxng-rtl.css searx/static/themes/simple/css/searxng.css Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/js/searxng.head.js')
-rw-r--r--searx/static/themes/simple/js/searxng.head.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/searx/static/themes/simple/js/searxng.head.js b/searx/static/themes/simple/js/searxng.head.js
deleted file mode 100644
index dab0e368a..000000000
--- a/searx/static/themes/simple/js/searxng.head.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @license
- * (C) Copyright Contributors to the SearXNG project.
- * (C) Copyright Contributors to the searx project (2014 - 2021).
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
-/* global DocumentTouch:readonly */
-(function(w, d) {
- 'use strict';
-
- // add data- properties
- var script = d.currentScript || (function() {
- var scripts = d.getElementsByTagName('script');
- return scripts[scripts.length - 1];
- })();
-
- // try to detect touch screen
- w.searxng = {
- touch: (("ontouchstart" in w) || w.DocumentTouch && document instanceof DocumentTouch) || false,
- method: script.getAttribute('data-method'),
- autocompleter: script.getAttribute('data-autocompleter') === 'true',
- search_on_category_select: script.getAttribute('data-search-on-category-select') === 'true',
- infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
- hotkeys: script.getAttribute('data-hotkeys') === 'true',
- static_path: script.getAttribute('data-static-path'),
- translations: JSON.parse(script.getAttribute('data-translations')),
- theme : {
- // image that is displayed if load of <img src='...'> failed
- img_load_error: 'img/img_load_error.svg'
- }
- };
-
- // update the css
- 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); \ No newline at end of file