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