1 2function confirmDelete() { 3 if (confirm('Are you sure want to delete?')) { 4 5 } 6} 7 8jQuery(document).ready(function ($) { 9 jQuery('.paypal--sandbox-toggle').on('click', function (e) { 10 e.preventDefault(); 11 jQuery('#evplus--sandbox').toggle(); 12 }); 13 14 jQuery('.offline--details-toggle').on('click', function (e) { 15 e.preventDefault(); 16 jQuery('#evplus--offline-details').toggle(); 17 }); 18 19 jQuery('#eventplus_terms_cbox').on('click', function (e) { 20 var oCbox = jQuery(this); 21 22 23 if (oCbox.is(':checked') || oCbox.prop('checked')) { 24 jQuery('#eventplus_form_fields').fadeIn(); 25 jQuery('html, body').animate({ 26 scrollTop: $("#eventplus_form_fields").offset().top - 150 27 }, 500); 28 } else { 29 jQuery('#eventplus_form_fields').fadeOut(); 30 } 31 32 }); 33 34 if (jQuery('#eventplus_terms_cbox').length) { 35 jQuery('#eventplus_terms_cbox').trigger('click'); 36 } 37 38 39 40 if (jQuery('#eventplus_register_btn').length) { 41 var oRegisterBtn = jQuery('#eventplus_register_btn'); 42 oRegisterBtn.on('click touchend', function (e) { 43 e.preventDefault(); 44 jQuery(this).hide(); 45 jQuery('#evrplusRegForm').slideDown(); 46 }); 47 48 if (oRegisterBtn.attr('data-show-form-default') == '1') { 49 oRegisterBtn.trigger('click'); 50 } 51 } 52 53 54 jQuery('a.poplight').click(function () { 55 var popID = jQuery(this).attr('rel'); 56 var popURL = jQuery(this).attr('href'); 57 58 var query = popURL.split('?'); 59 var dim = query[1].split('&'); 60 var popWidth = dim[0].split('=')[1]; 61 62 jQuery('#' + popID).fadeIn().css({'width': Number(popWidth)}).prepend('<a href="#" class="close"><img src="/wp-content/plugins/eventsplus/images/btn-close.png" class="btn_close" title="Close Window" alt="Close" /></a>'); 63 64 65 var popMargTop = (jQuery('#' + popID).height() + 80) / 2; 66 var popMargLeft = (jQuery('#' + popID).width() + 80) / 2; 67 68 69 jQuery('#' + popID).css({ 70 'margin-top': -popMargTop, 71 'margin-left': -popMargLeft 72 }); 73 74 jQuery('body').append('<div id="fade"></div>'); 75 jQuery('#fade').css({'filter': 'alpha(opacity=80)'}).fadeIn(); 76 return false; 77 }); 78 79});
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.