1$(document).ready(function() { 2 if(showSubscribe){ 3 setTimeout(function(){ 4 $(".subscribe-modal").fadeIn(); 5 $('html').css('overflow','hidden'); 6 },1500) 7 } 8 $(".subscribe-modal.product-modal .modal-close").click(function(){ 9 $(".subscribe-modal").fadeOut(); 10 $('html').css({'overflow':''}); 11 subsceibeId(); 12 }) 13}) 14 15function submitSubscribe(){ 16 $.ajax({ 17 type: "POST", 18 url: "/api/biz/b2c-us/store/user/subs/create", 19 dataType: "json", 20 data: $("#subscribeForm").serialize(), 21 success: function (data) { 22 $(".form-alert").fadeIn(); 23 if (data.success) { 24 $(".form-alert").addClass('success-alert').removeClass('error-alert').html('<p>'+subsSuccess+'<svg class="icon svg-inline--fa fluid-h5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 25" fill="none"><path d="M20 6.5L9 17.5L4 12.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></p>'); 25 } else { 26 $(".form-alert").addClass('error-alert').removeClass('success-alert').html('<p>'+subsError+'<svg class="icon svg-inline--fa fluid-h5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none"><path d="M18.5 6.5L6.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 6.5L18.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></p>'); 27 } 28 setTimeout(function (){ 29 $(".form-alert").fadeOut(); 30 }, 2000); 31 } 32 }); 33 $("#subscribeId").attr("disabled", "disabled"); 34 return false; 35 } 36 37 $('#subscribeForm').submit(function () { 38 39 if(robotJs && siteKey){ 40 if(token){ 41 $.ajax({
42 type: "POST", 43 url: "/external/robot", 44 dataType: "json", 45 data: { 46 token:token 47 }, 48 success: function (data) { 49 if(data.success){ 50 submitSubscribe(); 51 }else{ 52 $(".form-alert").fadeIn(); 53 $(".form-alert").addClass('error-alert').removeClass('success-alert').html('<p>'+data.msg+'<svg class="icon svg-inline--fa fluid-h5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none"><path d="M18.5 6.5L6.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 6.5L18.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></p>'); 54 setTimeout(function (){ 55 $(".form-alert").fadeOut(); 56 }, 2000); 57 return false; 58 } 59 } 60 }); 61 }else{ 62 $(".form-alert").fadeIn(); 63 $(".form-alert").addClass('error-alert').removeClass('success-alert').html('<p>'+robotErrorMsg+'<svg class="icon svg-inline--fa fluid-h5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none"><path d="M18.5 6.5L6.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 6.5L18.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></p>'); 64 setTimeout(function (){ 65 $(".form-alert").fadeOut(); 66 }, 2000); 67 return false; 68 } 69 }else{ 70 if (storeDomain == "https://www.dxracer.cn") { 71 if(verify_token){ 72 $.ajax({
73 type: "POST", 74 url: "/utils/verify/img/check?X="+verify_token, 75 dataType: "json", 76 success: function(data) { 77 if (data.success) { 78 submitSubscribe(); 79 } else { 80 $(".form-alert").fadeIn(); 81 $(".form-alert").addClass('error-alert').removeClass('success-alert').html('<p>' + data.msg + '<svg class="icon svg-inline--fa fluid-h5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none"><path d="M18.5 6.5L6.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 6.5L18.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></p>'); 82 setTimeout(function() { 83 $(".form-alert").fadeOut(); 84 }, 85 2000); 86 return false; 87 } 88 } 89 }); 90 }else{ 91 $(".dxracer-window").slideDown(); 92 return false; 93 } 94 } else { 95 submitSubscribe(); 96 } 97 } 98 return false; 99 }); 100 101 102var token = ''; 103 var verifyCallback = function(response) { 104 token = response; 105 }; 106 var onloadCallback = function() { 107 grecaptcha.render('robot', { 108 'sitekey' : siteKey, 109 'callback' : verifyCallback, 110 'theme' : 'light' 111 }); 112 }; 113 114function subsceibeId(){ 115 axios.post('/account/subscribeId') 116 .then(({data})=>{ 117 118 }) 119} 120 121function getCookie(cname){ 122 var name = cname + "="; 123 var ca = document.cookie.split(';'); 124 for(var i=0; i<ca.length; i++) { 125 var c = ca[i].trim(); 126 if (c.indexOf(name)==0) { return c.substring(name.length,c.length); } 127 } 128 return ""; 129}
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.