1function ready(fn) 2{ 3 if(document.readyState != 'loading') 4 { 5 fn(); 6 } 7 else if (document.addEventListener) 8 { 9 document.addEventListener('DOMContentLoaded', fn); 10 } 11 else 12 { 13 document.attachEvent('onreadystatechange', function() { 14 if (document.readyState != 'loading') 15 { 16 fn(); 17 } 18 }); 19 } 20} 21 22function prjoyeux_v23_addon_subscribe_email(email) 23{ 24 email = jQuery.trim(email); 25 26 re = /^\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$/; 27 28 if(re.test(email)) 29 { 30 jQuery.ajax({ 31 type: "post", 32 async: false, 33 url: prjoyeux_admin_ajax_url, 34 data: { 35 "action": "prjoyeux_v23_addon_phplist_subscribe", 36 "email": email, 37 }, 38 success: function(result) 39 { 40 if(result == "error") 41 { 42 alert("Une erreur s'est produite lors du traitement de la demande.<br />Veuillez réessayer plus tard."); 43 } 44 else 45 { 46 alert(result); 47 } 48 }, 49 fail: function(result) 50 { 51 alert("Une erreur s'est produite lors du traitement de la demande.<br />Veuillez réessayer plus tard."); 52 } 53 }); 54 } 55 else 56 { 57 alert("L'adresse e-mail saisie n'est pas valide."); 58 } 59} 60 61 62ready(function() 63{ 64 jQuery('.prjoyeux-v23-match-height').matchHeight({ 65 byRow: true, // or set a group using data-mh="group-name" 66 property: 'height' 67 }); 68 69 jQuery('input[name=pj-cta-big-email]').parent().parent().parent().find('a.fusion-button').on("click", function(e) 70 { 71 e.preventDefault(); 72 e.stopPropagation(); 73 74 var email = jQuery('input[name=pj-cta-big-email]').val(); 75 prjoyeux_v23_addon_subscribe_email(email); 76 77 }); 78 79 jQuery('input[name=pj-footer-email]').parent().parent().parent().find('a.fusion-button').on("click", function(e) 80 { 81 e.preventDefault(); 82 e.stopPropagation(); 83 84 var email = jQuery('input[name=pj-footer-email]').val(); 85 prjoyeux_v23_addon_subscribe_email(email); 86 87 }); 88 89 jQuery('.fusion-search-form-clean .searchform:not(.fusion-search-form-classic) .fusion-search-form-content .fusion-search-field input').attr("placeholder", ""); 90 91});
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.