2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
(function(){var e=window.location;document.referrer.indexOf(e.origin)!=0&&document.referrer.indexOf(e.host)!=8&&document.referrer.indexOf(e.host)!=7&&setCookie("Referer",encodeURIComponent(document.referrer)),e.protocol=="http:"&&document.write('<script type="text/javascript" charset="utf-8" src="https://'+e.host+'/design/designstatic/common/js/isHttpsUrl.js"></script>')})();function initLoadJS(){try{var e=(window.cdnPath||"")+"/design/designstatic/newJS/common/js/loader.js?my_version=";document.write('<script type="text/javascript" src='+e+"></script>")}catch(t){console.log("\u52A0\u8F7D\u5668:",t)}}function setCookie(e,t){var r=e+"="+t+";path=/";document.cookie=r}function getCookie(e){for(var t=document.cookie,r=t.split("; "),o=0;o<r.length;o++){var n=r[o].split("=");if(n[0]==e)return n[1]}return""}function createuuid(){var e=new Date().getTime();window.performance&&typeof window.performance.now=="function"&&(e+=performance.now());var t="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(r){var o=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(r=="x"?o:o&3|8).toString(16)});return t.toUpperCase()}getCookie("uvcid")||setCookie("uvcid",createuuid()+Date.now());
|