forked from Ponysearch/Ponysearch
[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>
This commit is contained in:
parent
28b22a0f98
commit
82125862c6
5 changed files with 1 additions and 8193 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -92,7 +92,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
dist: {
|
dist: {
|
||||||
files: {
|
files: {
|
||||||
'js/searxng.head.min.js': ['js/searxng.head.js'],
|
'js/searxng.head.min.js': ['src/js/head/*.js'],
|
||||||
'js/searxng.min.js': [
|
'js/searxng.min.js': [
|
||||||
'src/js/main/*.js',
|
'src/js/main/*.js',
|
||||||
'../__common__/js/*.js',
|
'../__common__/js/*.js',
|
||||||
|
|
|
@ -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);
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue