var _YNXGOODS_ID_ = (typeof(_YNXGOODS_ID_)=="undefined") ? "":encodeURIComponent(_YNXGOODS_ID_ ); var _YNXGOODS_TYPE_ = (typeof(_YNXGOODS_TYPE_)=="undefined") ? "":encodeURIComponent(_YNXGOODS_TYPE_); var _YNXGOODS_TITLE_ = (typeof(_YNXGOODS_TITLE_)=="undefined") ? "Unknown Title":encodeURIComponent(_YNXGOODS_TITLE_); if(_YNXGOODS_ID_ == ""){ _YNXGOODS_ID_ = location.pathname;} if(_YNXGOODS_TITLE_ == ""){ _YNXGOODS_TITLE_ = "Unknown Title";} var IP_ = "3.17.154.171"; var CookieValue = "";var cValue = ""; var cName = "_ynx"+_YNXGOODS_TYPE_ ; var cookieData = document.cookie; var start = cookieData.indexOf(cName); var cDay = 30; var expire = new Date(); var ymdhis = parseInt(expire/1000); expire.setDate(expire.getDate() + cDay); if(start != -1){ start += cName.length; var end = cookieData.indexOf(";", start); if(end == -1){ end = cookieData.length; } cValue = cookieData.substring((start+1), end); if(cValue.substring(0,1)=="="){ cookies = cName + "=" + escape(ymdhis) + "; path=/ "; if(typeof cDay != "undefined") cookies += ";expires=" + expire.toGMTString() + ";"; document.cookie = cookies; cValue = ymdhis } }else{ cookies = cName + "=" + escape(ymdhis) + "; path=/ "; if(typeof cDay != "undefined") cookies += ";expires=" + expire.toGMTString() + ";"; document.cookie = cookies; cValue = ymdhis } CookieValue = unescape(cValue); var resolution = screen.width+"x"+screen.height; var url = "//hlogger.heraldcorp.com/logger/logger.lgr?"; url+="&gid="+ _YNXGOODS_ID_;url+=">ype="+ _YNXGOODS_TYPE_; url+="&title="+ _YNXGOODS_TITLE_ ; url+="&referer_url="+encodeURIComponent(document.referrer); url+="&user_agent="+encodeURIComponent(navigator.userAgent); url+="&user_ip="+encodeURIComponent(IP_); url+="&cookie_value="+encodeURIComponent(CookieValue); url+="&resolution="+encodeURIComponent(resolution); url+="&hostname="+location.hostname; url+="&protocol="+location.protocol; if(_YNXGOODS_ID_ !="" && _YNXGOODS_TYPE_ != "" ) { var img_src = ""; var ImgLogger = document.createElement("img"); if(typeof(ImgLogger)){ImgLogger.src = url;}else{document.write(img_src);} }