1var $ = jQuery(); 2 3jQuery(document).ready(function($) { 4 // init the header slider 5 /* 6 if ( jQuery('.slider').length > 0 ) { 7 jQuery('.slider').fractionSlider({ 8 'fullWidth': true, 9 'controls': false, 10 'pager': false, 11 'responsive': true, 12 'dimensions': "1400,300", 13 'increase': false, 14 'pauseOnHover': false 15 }); 16 aprcSetHeroHeight(); 17 } 18 */ 19 20 // 2019 Hero 21 if ( jQuery(".season_events").length > 0 ) { 22//console.log('parent:'+$(".season_events").parent().parent().height()); 23 var top_margin = ( ( jQuery(".season_events").parent().parent().height() - $(".season_events").height() ) / 2 ); 24 25 jQuery(".season_events").css("margin-top",top_margin+"px"); 26 jQuery(".season_events").children("h3").addClass("animate-fadein"); 27 } 28 29 // init the youtube feed 30 /* 31 if (jQuery('#youmax').length > 0) { 32 var ymax = jQuery('#youmax'); 33 34 ymax.youmax({ 35 //BMcKs YT API key 36 apiKey:"AIzaSyCgjMjveq6C1Z2H8rF7GaIe0Y3jmVIedIw", 37 clientId:"183183159704.apps.googleusercontent.com", 38 channel:"https://www.youtube.com/user/aprctv", 39 displayVideo:"popup", 40 alwaysUseDropdown:false, 41 skin:"none", 42 maxResults:3, 43 innerOffset:10, 44 outerOffset:0, 45 minItemWidth:300, 46 maxItemWidth:400, 47 maxContainerWidth:1200, 48 autoPlayVideo:false, 49 displayFirstVideoOnLoad:false, 50 imagesFolderPath:'./images', 51 linkNewPages:true 52 }); 53 } 54 */ 55 56/* 57 if (jQuery('#featured-hero').length > 0) { 58 var myParaxify = paraxify('#featured-hero'); 59 } 60*/ 61}); 62 63 64jQuery( window ).resize(function() { 65 aprcSetHeroHeight(); 66}); 67 68function aprcSetHeroHeight() { 69 if (jQuery('.fraction-slider').length > 0 ) { 70 71 var vertSize = jQuery('.fraction-slider').height(); 72 jQuery('.front-hero').height(vertSize + 30); 73 //console.log('front-hero=' + vertSize ); 74 } 75} 76 77/* 78(function ($) { 79 $.each(['show', 'hide'], function (i, ev) { 80 var el = $.fn[ev]; 81 $.fn[ev] = function () { 82 this.trigger(ev); 83 return el.apply(this, arguments); 84 }; 85 }); 86})(jQuery); 87 88$('#mobile-menu').on('show', function() { 89 console.log('#foo is now visible'); 90 91 console.log ($('#mobile-menu').height() + " = " + $('#mobile-menu:first-child').height()); 92 var menuHeight = ( ($('#mobile-menu').height() - $('#menu-main-menu-1').height() ) / 2); 93 console.log("menuHeight="+menuHeight); 94 95 $('#menu-main-menu-1').css("margin-top",menuHeight); 96}); 97*/
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.