let userInfo = {"user_id":0}; let thirdCHECK = false; let GETparams = window .location .search .replace('?', '') .split('&') .reduce( function (p, e) { let a = e.split('='); p[a[0]] = a[1]; return p; }, {} ); if (typeof GETparams['response'] !== "undefined") { thirdCHECK = true; let hostName = window.location.href.split('?')[0]; let hasheURL = ''; for (let key in GETparams) { if (key != 'response') { if (hasheURL == '') { hasheURL += '?' + key + '=' + GETparams[key]; } else { hasheURL += '&' + key + '=' + GETparams[key]; } } } redirectURL = hostName + hasheURL; authPatatay(GETparams['response'], 1); } function getCookie(name) { let matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" )); return matches ? decodeURIComponent(matches[1]) : undefined; } if (getCookie('third_party') != undefined) { thirdCHECK = true; } let pubNameBlock = '
'; let dashboard = ''; let frameBlock = ''; let BannerBlock = ''; let countrBlock = ''; function locationLineShow(locationArr) { let res = ''; for (let i in locationArr) { res += '