1jQuery(document).ready(function($){ 2 3 "use strict"; 4 5 // Enable toggle for Main menu on tablets and mobile 6 $('.btn-navbar').toggleMenu({'viewport':767}); 7 8 // --------------------------------------------------------- 9 // Main Menu Search 10 // --------------------------------------------------------- 11 12 $("#search-trigger").click(function(){ return false; }); 13 14 $('#search-popup-wrapper').each(function(){ 15 16 var distance = 10; 17 var time = 250; 18 var hideDelay = 500; 19 20 var hideDelayTimer = null; 21 22 var beingShown = false; 23 var shown = false; 24 var $trigger = $('#search-trigger', this); 25 var $info = $('.search-popup-outer', this).css('opacity', 0); 26 27 28 $([$trigger.get(0), $info.get(0)]).mouseover(function () { 29 30 if ( hideDelayTimer ) { 31 clearTimeout(hideDelayTimer); 32 } 33 34 if (beingShown || shown) { 35 // don't trigger the animation again 36 return; 37 } else { 38 // reset position of info box 39 beingShown = true; 40 41 $info.css({ 42 bottom: 5, 43 right: -8, 44 display: 'block' 45 }).animate({ 46 bottom: '+=' + distance + 'px', 47 opacity: 1 48 }, time, 'swing', function() { 49 beingShown = false; 50 shown = true; 51 }); 52 } 53 54 return false; 55 56 }).mouseout(function () { 57 58 if (hideDelayTimer) clearTimeout(hideDelayTimer); 59 hideDelayTimer = setTimeout(function () { 60 hideDelayTimer = null; 61 $info.animate({ 62 bottom: '+=' + distance + 'px', 63 opacity: 0 64 }, time, 'swing', function () { 65 shown = false; 66 $info.css('display', 'none'); 67 }); 68 69 }, hideDelay); 70 71 return false; 72 }); 73 }); 74 75});
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.