1(function ($) { 2 $(function() { 3 /** 4 * Slidebars Controller 5 */ 6 7 // Init 8 var controller = new slidebars(); 9 controller.init(); 10 11 // Toggle main menu 12 $('.js-toggle-main-menu').on('click', 13 function(event) { 14 event.preventDefault(); 15 event.stopPropagation(); 16 controller.toggle('main-menu'); 17 18 }); 19 $(document).on('click', 20 '.js-close-any', 21 function(event) { 22 event.preventDefault(); 23 event.stopPropagation(); 24 controller.close(); 25 }); 26 // Add close class to canvas container when Slidebar is opened 27 $(controller.events).on('opening', 28 function(event) { 29 $('[canvas]').addClass('js-close-any'); 30 }); 31 32 // Add close class to canvas container when Slidebar is opened 33 $(controller.events).on('closing', 34 function(event) { 35 $('[canvas]').removeClass('js-close-any'); 36 }); 37 }); 38 39})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.