1/** 2* Project: Jolly - Bootstrap Mega Drop Down Menu 3* Author: Filiz ÃZER 4* Author URI: www.jollythemes.com 5* Dependencies: Bootstrap's mega menu plugin 6* A professional Bootstrap mega menu plugin with tons of options. 7*/ 8 9(function($) { 10"use strict"; 11 // SEARCH 12 $(document).ready(function(){ 13 var submitIcon = $('.searchbox-icon'); 14 var inputBox = $('.searchbox-input'); 15 var searchBox = $('.searchbox'); 16 var isOpen = false; 17 submitIcon.click(function(){ 18 if(isOpen == false){ 19 searchBox.addClass('searchbox-open'); 20 inputBox.focus(); 21 isOpen = true; 22 } else { 23 searchBox.removeClass('searchbox-open'); 24 inputBox.focusout(); 25 isOpen = false; 26 } 27 }); 28 submitIcon.mouseup(function(){ 29 return false; 30 }); 31 searchBox.mouseup(function(){ 32 return false; 33 }); 34 $(document).mouseup(function(){ 35 if(isOpen == true){ 36 $('.searchbox-icon').css('display','block'); 37 submitIcon.click(); 38 } 39 }); 40 }); 41 function buttonUp(){ 42 var inputVal = $('.searchbox-input').val(); 43 inputVal = $.trim(inputVal).length; 44 if( inputVal !== 0){ 45 $('.searchbox-icon').css('display','none'); 46 } else { 47 $('.searchbox-input').val(''); 48 $('.searchbox-icon').css('display','block'); 49 } 50 } 51})(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.