From a71b326d9e210da2d4ed67fade819c0433fb95d3 Mon Sep 17 00:00:00 2001 From: dalf Date: Sun, 26 Oct 2014 11:14:05 +0100 Subject: [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 --- searx/static/default/js/searx.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'searx/static/default/js') 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); -- cgit v1.2.3