1var subscribeunlock_suffix = ""; 2var subscribeunlock_soft_mode = ""; 3var subscribeunlock_busy = false; 4function subscribeunlock_submit(suffix, soft_mode) { 5 if (subscribeunlock_busy == true) return; 6 subscribeunlock_busy = true; 7 subscribeunlock_suffix = suffix; 8 subscribeunlock_soft_mode = soft_mode; 9 jQuery("#submit"+suffix).attr("disabled","disabled"); 10 jQuery("#loading"+suffix).fadeIn(300); 11 jQuery("#message"+suffix).slideUp("slow"); 12 var tmp_email = jQuery("#email"+suffix).val(); 13 tmp_email = tmp_email.replace("@", "+"); 14 var tmp_name = jQuery("#name"+suffix).val(); 15 if (tmp_name) tmp_name = tmp_name.replace("@", "+"); 16 else tmp_name = ""; 17 jQuery.ajax({ 18 url: subscribeunlock_action, 19 data: { 20 subscribeunlock_email: tmp_email, 21 subscribeunlock_name: tmp_name, 22 subscribeunlock_suffix: suffix, 23 action: "subscribeunlock_submit" 24 }, 25 dataType: "jsonp", 26 success: function(return_data) { 27 var data = return_data.html; 28 jQuery("#submit"+subscribeunlock_suffix).removeAttr("disabled"); 29 jQuery("#loading"+subscribeunlock_suffix).fadeOut(300); 30 if(data.match("subscribeunlock_confirmation_info") != null) { 31 subscribeunlock_ga_track("opt-in-locker", "subscribe"); 32 subscribeunlock_write_cookie("subscribeunlock", subscribeunlock_cookie_value, 180); 33 if (subscribeunlock_soft_mode == "on") { 34 jQuery(".subscribeunlock_container").fadeOut(500, function() { 35 jQuery(".subscribeunlock_content").removeClass("subscribeunlock_invisible"); 36 }); 37 } else { 38 jQuery("#subscribeunlock_signup_form"+subscribeunlock_suffix).fadeOut(500, function() { 39 jQuery("#subscribeunlock_confirmation_container"+subscribeunlock_suffix).html(data); 40 jQuery("#subscribeunlock_confirmation_container"+subscribeunlock_suffix).fadeIn(500, function() { 41 location.reload(); 42 }); 43 }); 44 } 45 } else { 46 jQuery("#message"+subscribeunlock_suffix).html(data); 47 jQuery("#message"+subscribeunlock_suffix).slideDown("slow"); 48 } 49 subscribeunlock_busy = false; 50 } 51 }); 52} 53 54function subscribeunlock_read_cookie(key) { 55 var pairs = document.cookie.split("; "); 56 for (var i = 0, pair; pair = pairs[i] && pairs[i].split("="); i++) { 57 if (pair[0] === key) return pair[1] || ""; 58 } 59 return null; 60} 61 62function subscribeunlock_write_cookie(key, value, days) { 63 if (days) { 64 var date = new Date(); 65 date.setTime(date.getTime()+(days*24*60*60*1000)); 66 var expires = "; expires="+date.toGMTString(); 67 } else var expires = ""; 68 document.cookie = key+"="+value+expires+"; path=/"; 69} 70 71function subscribeunlock_ga_track(type, action) { 72 if (subscribeunlock_ga_tracking != "on") return; 73 try { 74 var title = document.title; 75 if (title.length > 0) { 76 if (typeof _gaq == 'object') { 77 _gaq.push(['_trackEvent', type, action, title, 1, false]); 78 } else if (typeof _trackEvent == 'function') { 79 _trackEvent(type, action, title, 1, false); 80 } else if (typeof __gaTracker == 'function') { 81 __gaTracker('send', 'event', type, action, title); 82 } else if (typeof ga == 'function') { 83 ga('send', 'event', type, action, title); 84 } 85 } 86 } catch(error) { 87 88 } 89} 90 91var subscribeunlock_cookie = subscribeunlock_read_cookie("subscribeunlock");
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.