1(function($) { 2 "use strict"; 3 jQuery(document).ready(function($){ 4 5 try { 6 var $browser_height = jQuery( window ).height(); 7 var $header_height = jQuery( 'div#header' ).height(); 8 var $menu_height = jQuery( 'div#navigation-wrapper' ).height(); 9 var $footer_height = jQuery( 'div#footer' ).height(); 10 jQuery('body > .container').css( 'min-height', $browser_height - ( $header_height + $menu_height + $footer_height + 30 ) ); 11 } catch (e) { 12 // TODO: handle exception 13 } 14 15 try { 16 $('#header-search .search-icon').click( function(){ 17 18 var $formParent = $(this).parent(); 19 20 var $searchInput = $formParent.find( 'input[name=s]' ); 21 var $searchValue = $searchInput.val(); 22 23 if( $searchValue == '' ){ 24 $searchInput.focus(); 25 } 26 else{ 27 window.location.href = jsvar.home_url + '?s=' + $searchValue; 28 } 29 } ) 30 } catch (e) { 31 // TODO: handle exception 32 console.log( e.message ); 33 } 34 35 $('div.col-sm-3 > ul').addClass('list-unstyled'); 36 //$('input[type="submit"]').addClass('btn btn-default'); 37 $('.item.responsive-height, .carousel .post').matchHeight(); 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.