Line 10: | Line 10: | ||
<script> | <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'); | ||
}); | }); | ||
− | |||
$(window).on('swiperight', function(){ | $(window).on('swiperight', function(){ | ||
− | $('#sidebar').trigger('offcanvas. | + | $('#sidebar').trigger('offcanvas.show'); |
}); | }); | ||
− | |||
$(window).on('swipeleft', function(){ | $(window).on('swipeleft', function(){ | ||
− | $('#sidebar').trigger('offcanvas. | + | $('#sidebar').trigger('offcanvas.hide'); |
}); | }); | ||
− | |||
}); | }); | ||
− | |||
</script> | </script> | ||
<style> | <style> |
Revision as of 16:48, 1 November 2017