diff options
| author | dalf <alex@al-f.net> | 2014-10-26 11:14:05 +0100 |
|---|---|---|
| committer | dalf <alex@al-f.net> | 2014-10-26 11:14:05 +0100 |
| commit | a71b326d9e210da2d4ed67fade819c0433fb95d3 (patch) | |
| tree | db1803ef0a91a4c90d655ea1f909b7c922c66c8d /searx/static/default/js | |
| parent | be4d219ae73240337fa25c8833b5fd91ddc1272b (diff) | |
[mod] default template modifications
- more smartphone friendly
- more text browser friendly
- next button always on the right
- in case of small screen supporting touch event, categories are displayed on one line with a scroll
Diffstat (limited to 'searx/static/default/js')
| -rw-r--r-- | searx/static/default/js/searx.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/static/default/js/searx.js b/searx/static/default/js/searx.js index c87dc30d4..9be969bb3 100644 --- a/searx/static/default/js/searx.js +++ b/searx/static/default/js/searx.js @@ -41,5 +41,9 @@ if(searx.autocompleter) { } }); + if (!!('ontouchstart' in window)) { + document.getElementsByTagName("html")[0].className += " touch"; + } + })(window, document); |