Commit 3f4eca70 authored by Porter Libby's avatar Porter Libby
Browse files

add detection for touchscreen

parent 051c0ad0
...@@ -124,8 +124,9 @@ ...@@ -124,8 +124,9 @@
<script> <script>
var parent = document.getElementById('block-1'); var parent = document.getElementById('block-1');
create_searchbar(parent,'major_selection'); create_searchbar(parent,'major_selection');
$("#block-1 #searchbar").keyboard({}); if ('ontouchstart' in document.documentElement){
$("#block-1 #searchbar").keyboard({}); // create virtual keyboard if touchscreen is detected
</script> </script>
</div> </div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment