1jQuery(document).ready(function() { 2 jQuery('.header .search').click(function (e) { 3 var object = $(this); 4 var searchButton = object.find('.search-btn'); 5 var searchBar = object.parent().find('.search-open'); 6 7 if(searchButton.hasClass('fa-search')){ 8 searchBar.fadeIn(500); 9 searchButton.removeClass('fa-search'); 10 searchButton.addClass('fa-times'); 11 searchBar.find('input.form-control').focus(); 12 } else { 13 searchBar.fadeOut(500); 14 searchButton.addClass('fa-search'); 15 searchButton.removeClass('fa-times'); 16 } 17 e.stopPropagation(); 18 }); 19 20 jQuery('body').click(function () { 21 if (jQuery('.search-btn').hasClass('fa-search') == false){ 22 jQuery('.search-open').fadeOut(500); 23 jQuery('.search-btn').addClass('fa-search'); 24 jQuery('.search-btn').removeClass('fa-times'); 25 } 26 }); 27 $('.search-open').click(function(e){ 28 e.stopPropagation(); 29 }); 30 31 $('.one-result.version2').each(function () { 32 var $this = $(this); 33 var $resultsCount = $this.find('.results-count'); 34 var height = $this.find('.inner-results').height() - parseInt($this.find('.inner-results hr').css('marginBottom')) - ($resultsCount.outerHeight(true) - $resultsCount.height()); 35 var height2 = height - parseInt($this.find('.inner-results hr').css('marginTop')); 36 console.log(height2); 37 $resultsCount.height(height); 38 }); 39 40 var $item; 41 var $menu = $('#elasticSearchTopMenuForm'); 42 $('#elasticSearchSmartButton > button').click(function() { 43 $item = $(this).parents('.search'); 44 var $open = $item.hasClass('fullscreen'); 45 46 if (!$open) { 47 $menu.removeClass('hidden-xs'); 48 $item.addClass('fullscreen'); 49 $item.append($menu); 50 } 51 }); 52 53 $('.fullscreen-search-container .fullscreen-topmenu-exit .fullscreen-exit-icon').click(function() { 54 $menu.addClass('hidden-xs'); 55 $item.removeClass('fullscreen'); 56 }); 57 58});
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.