1var waitForEl = function(selector, callback) { 2 if (jQuery(selector).length) { 3 callback(); 4 } else { 5 setTimeout(function() { 6 waitForEl(selector, callback); 7 }, 100); 8 } 9}; 10 11 12 13 14jQuery(document).ready(function ($) { 15 16 17//alert 18 var alertHeight = ($('#alert').outerHeight()); 19 var alertHeightNeg = -alertHeight; 20 $( '.icon-close' ).click( function() { 21 $.get("http://chldgdschlsdev.wpengine.com/wp-content/themes/divi-child/inc/cookies.php"); 22 $('#alert').slideUp(); 23 $( '#et-main-area' ).css("margin-top", 0); 24 }); 25 26 27 28 29 30 31 32 33var anchorBar = $('#et-top-navigation'); 34if (anchorBar.length) { //make sure anchorBar exists on the current page so no 'undefined' errors 35 var anchorBarExists = anchorBar.offset().top; 36 $(window).scroll(function() { 37 if ($(window).scrollTop() > anchorBarExists) { 38 $('#et-top-navigation').addClass('stick'); 39 } 40 else { 41 $('#et-top-navigation').removeClass('stick'); 42 } 43 }); 44} 45 46 47 48//unfix menu if dropdown open 49$( '.mobile_menu_bar_toggle' ).click( function() { 50 $( '#main-header' ).toggleClass( 'unFix' ); 51 $(window).scrollTop(0); 52}); 53 54 55 56 57/*==============================================================*/ 58// wrap select fields 59/*==============================================================*/ 60$( ".gform_wrapper select" ).wrap( "<div class='customSelect'></div>" ); 61 62 63 64 65 66 67 68 69}); 70 71 72 73 74// jQuery(function($){ 75 76// waitForEl('#et_mobile_nav_menu li.menu-item-has-children > a', function() { 77 78// $('#et_mobile_nav_menu li.menu-item-has-children > a').after('<button class="toggle"></button>'); 79 80// $('button.toggle').click(function(){ 81// $(this).parent().toggleClass('visible'); 82// }); 83 84 85// }); 86 87// (function(){ 88// var addclass = jQuery.fn.addClass; 89// jQuery.fn.addClass = function(){ 90// var result = addclass.apply(this, arguments); 91// //Remove the 'et-fixed-header' class that is added to the top menu bar on scroll 92// jQuery('#main-header').removeClass('et-fixed-header'); 93// return result; 94// }; 95// })(); 96 97/*==============================================================*/ 98// Check on resize function 99/*==============================================================*/ 100//$(document).ready(function() { 101 // run test on initial page load 102 // checkSize(); 103 104 // run test on resize of the window 105 //$(window).resize(checkSize); 106//}); 107 108 109 110// jQuery(function($){ 111// //Remove the class on page load too 112// $('#main-header').removeClass('et-fixed-header'); 113// }); 114 115 116 117 118
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.