diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-10-01 16:33:31 +0200 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-10-01 18:06:55 +0200 |
| commit | 74b08303622c5545f04a3faf52f6c6962a43ea5f (patch) | |
| tree | ae6b51a4e84b6e45ecc207d6105b026ae406e609 /searx/static/themes/simple/src/js/main/searx_results.js | |
| parent | 458575c221abcdbe3c0ffb633dd06f5f6d05bf2e (diff) | |
SearXNG: simple theme
Diffstat (limited to 'searx/static/themes/simple/src/js/main/searx_results.js')
| -rw-r--r-- | searx/static/themes/simple/src/js/main/searx_results.js | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/searx/static/themes/simple/src/js/main/searx_results.js b/searx/static/themes/simple/src/js/main/searx_results.js index 115c27b1d..79af25af8 100644 --- a/searx/static/themes/simple/src/js/main/searx_results.js +++ b/searx/static/themes/simple/src/js/main/searx_results.js @@ -1,27 +1,12 @@ -/** -* searx is free software: you can redistribute it and/or modify -* it under the terms of the GNU Affero General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* searx is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Affero General Public License for more details. -* -* You should have received a copy of the GNU Affero General Public License -* along with searx. If not, see < http://www.gnu.org/licenses/ >. -* -* (C) 2017 by Alexandre Flament, <alex@al-f.net> -*/ -(function(w, d, searx) { +/* SPDX-License-Identifier: AGPL-3.0-or-later */ +(function(w, d, searxng) { 'use strict'; - searx.ready(function() { - searx.image_thumbnail_layout = new searx.ImageLayout('#urls', '#urls .result-images', 'img.image_thumbnail', 10, 200); - searx.image_thumbnail_layout.watch(); + searxng.ready(function() { + searxng.image_thumbnail_layout = new searxng.ImageLayout('#urls', '#urls .result-images', 'img.image_thumbnail', 10, 200); + searxng.image_thumbnail_layout.watch(); - searx.on('.btn-collapse', 'click', function() { + searxng.on('.btn-collapse', 'click', function() { var btnLabelCollapsed = this.getAttribute('data-btn-text-collapsed'); var btnLabelNotCollapsed = this.getAttribute('data-btn-text-not-collapsed'); var target = this.getAttribute('data-target'); @@ -37,7 +22,7 @@ targetElement.classList.toggle('invisible'); }); - searx.on('.media-loader', 'click', function() { + searxng.on('.media-loader', 'click', function() { var target = this.getAttribute('data-target'); var iframe_load = d.querySelector(target + ' > iframe'); var srctest = iframe_load.getAttribute('src'); @@ -60,4 +45,4 @@ }); -})(window, document, window.searx); +})(window, document, window.searxng); |