searxng/searx/static/themes/simple/js/searxng.head.min.js
2022-01-20 12:11:10 +01:00

8 lines
No EOL
1.1 KiB
JavaScript

/**
* @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
*/
(function(t,e){"use strict";var a=e.currentScript||function(){var t=e.getElementsByTagName("script");return t[t.length-1]}();const s=JSON.parse(a.getAttribute("data-plugins"));t.searxng={touch:"ontouchstart"in t||t.DocumentTouch&&document instanceof DocumentTouch||false,method:a.getAttribute("data-method"),autocompleter:a.getAttribute("data-autocompleter")==="true",search_on_category_select:s["searx.plugins.search_on_category_select"]==true,infinite_scroll:s["searx.plugins.infinite_scroll"]==true,hotkeys:s["searx.plugins.vim_hotkeys"]==true,static_path:a.getAttribute("data-static-path"),translations:JSON.parse(a.getAttribute("data-translations")),theme:{img_load_error:"img/img_load_error.svg"}};var r=e.getElementsByTagName("html")[0];r.classList.remove("no-js");r.classList.add("js");if(t.searxng.touch){r.classList.add("touch")}})(window,document);
//# sourceMappingURL=searxng.head.min.js.map