diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-12-01 10:18:57 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2020-12-17 11:33:28 +0100 |
| commit | 9bc1856e2b23ef3572e5715895ee626f08ec24a7 (patch) | |
| tree | 44421b8b123bc997b1d5d559278c05323bd0189a /searx/static/themes/legacy/js | |
| parent | 88660fde90c2d618f2d317ff1cafdf71508982f6 (diff) | |
[mod] themes: remove legacy, courgette and pix-art themes
Diffstat (limited to 'searx/static/themes/legacy/js')
| -rw-r--r-- | searx/static/themes/legacy/js/searx.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/searx/static/themes/legacy/js/searx.js b/searx/static/themes/legacy/js/searx.js deleted file mode 100644 index d6d5b74bb..000000000 --- a/searx/static/themes/legacy/js/searx.js +++ /dev/null @@ -1,49 +0,0 @@ -if(searx.autocompleter) { - window.addEvent('domready', function() { - new Autocompleter.Request.JSON('q', './autocompleter', { - postVar:'q', - postData:{ - 'format': 'json' - }, - ajaxOptions:{ - timeout: 5 // Correct option? - }, - 'minLength': 4, - 'selectMode': false, - cache: true, - delay: 300 - }); - }); -} - -(function (w, d) { - 'use strict'; - function addListener(el, type, fn) { - if (el.addEventListener) { - el.addEventListener(type, fn, false); - } else { - el.attachEvent('on' + type, fn); - } - } - - function placeCursorAtEnd() { - if (this.setSelectionRange) { - var len = this.value.length * 2; - this.setSelectionRange(len, len); - } - } - - addListener(w, 'load', function () { - var qinput = d.getElementById('q'); - if (qinput !== null && qinput.value === "") { - addListener(qinput, 'focus', placeCursorAtEnd); - qinput.focus(); - } - }); - - if (!!('ontouchstart' in window)) { - document.getElementsByTagName("html")[0].className += " touch"; - } - -})(window, document); - |