1// Custom JavaScript 2function getParameterByName(name, url = window.location.href) { 3 name = name.replace(/[\[\]]/g, '\\$&'); 4 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 5 results = regex.exec(url); 6 if (!results) return null; 7 if (!results[2]) return ''; 8 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 9} 10 11jQuery(window).load(function() { 12 13 var query = getParameterByName('q'); 14 15 if( query !== null ) { 16 17 if(jQuery('#search-row').length) { 18 19 jQuery('.search-field, .cabsearch').val(query); 20 21 } 22 23 } 24 25 jQuery(window).resize(function(event) { 26 if (jQuery('#home-slider').length) { 27 jQuery('.slide-box').outerWidth(bgHeight).css({'margin-top': ''}); 28 if (jQuery(window).width() >= 992) { 29 var topnav = jQuery('#topnav').height(); 30 var bgHeight = jQuery('#home-slider .slides').height(); 31 jQuery('.fusion-column-inner-bg').width(bgHeight).css({'opacity': 1}); 32 jQuery('.slide-box').outerWidth(bgHeight).css({'opacity': 1, 'margin-top': '-'+topnav+'px'}); 33 } 34 35 } 36 37 }).trigger('resize'); 38 39});
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.