summaryrefslogtreecommitdiff
path: root/searx/static/default/js
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2014-10-26 11:14:05 +0100
committerdalf <alex@al-f.net>2014-10-26 11:14:05 +0100
commita71b326d9e210da2d4ed67fade819c0433fb95d3 (patch)
treedb1803ef0a91a4c90d655ea1f909b7c922c66c8d /searx/static/default/js
parentbe4d219ae73240337fa25c8833b5fd91ddc1272b (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.js4
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);