1;(function($){ 2 3 var $win = $(window); 4 5$win.on('lm:middle.lm-component-191', function(event, lm){ 6 7lm.item.find('.lm-component-191').each(function(){ 8 9var $component = $(this); 10 11/* 12 * $component 13 * component element 14 * 15 * lm 16 * global lemons object 17 */ 18 19$toggle = $component.find(".menu-toggle"); 20 21$toggle.remove("click").on("click", function(e) { 22 23 e.preventDefault(); 24 console.log(lm.$body); 25 26 if (lm.$body.hasClass("show-menu")) lm.$body.removeClass("show-menu"); 27 else lm.$body.addClass("show-menu"); 28 29}) 30 31var $icon = $component.find('.global-search-toggle'), 32 $box = $component.find('.search-box'); 33 34$icon.on('click', function(e) { 35 36 37 e.preventDefault(); 38 39 $box.toggleClass('show'); 40 41 if ($box.hasClass('show')) { 42 43 $box.find('input').trigger('focus'); 44 $icon.toggleClass('active'); 45 46 } else { 47 48 $icon.removeClass('active'); 49 50 } 51 52}) 53 54if ($box.find('input').val()) { 55 // The input field has a value 56 $icon.toggleClass('active'); 57 $box.toggleClass('show'); 58} 59 60}); 61 62}); 63 64}(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.