(11 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<!-- Fix for Safari mobile and touch in general --> | <!-- Fix for Safari mobile and touch in general --> | ||
− | |||
+ | <script> | ||
$( document ).ready(function() { | $( document ).ready(function() { | ||
$('#sidebarHide').click(function() { | $('#sidebarHide').click(function() { | ||
$('#sidebar').trigger('offcanvas.toggle'); | $('#sidebar').trigger('offcanvas.toggle'); | ||
}); | }); | ||
− | |||
− | |||
− | |||
$('#sidebarCollapse').click(function() { | $('#sidebarCollapse').click(function() { | ||
$('#sidebar').trigger('offcanvas.toggle'); | $('#sidebar').trigger('offcanvas.toggle'); | ||
}); | }); | ||
− | }); | + | $('#mw-content-text div').click(function() { |
+ | $('#sidebar').trigger('offcanvas.toggle'); | ||
+ | }); | ||
+ | $(window).on('swiperight', function(){ | ||
+ | $('#sidebar').trigger('offcanvas.toggle'); | ||
+ | }); | ||
+ | $(window).on('swipeleft', function(){ | ||
+ | $('#sidebar').trigger('offcanvas.toggle'); | ||
+ | }); | ||
− | + | $('#sidenav').find('> li').click(function() { | |
− | $('# | + | $(this).find('> ul').trigger('collapse.toggle'); |
− | + | }); | |
− | + | ||
− | + | ||
}); | }); | ||
− | |||
− | |||
</script> | </script> | ||
<style> | <style> | ||
Line 148: | Line 149: | ||
<div id="sidebarHide" data-toggle="offcanvas" data-target="#sidebar" style="padding-left: 20px;"> | <div id="sidebarHide" data-toggle="offcanvas" data-target="#sidebar" style="padding-left: 20px;"> | ||
<hr> | <hr> | ||
− | <a style="font-family: 'Josefin Sans' !important; font-size: 16px; line-height: | + | <a style="font-family: 'Josefin Sans' !important; font-size: 16px; line-height: 18px; height: 18px;"> COLLAPSE NAVIGATION </a> |
<hr> | <hr> | ||
</div> | </div> |
Latest revision as of 17:09, 1 November 2017