|
|
|
|
@ -1,28 +1,28 @@
|
|
|
|
|
document.body.parentNode.id = "educoder";
|
|
|
|
|
var iframe = document.createElement('iframe');
|
|
|
|
|
if (
|
|
|
|
|
document.domain === 'www.tokcoder.com' ||
|
|
|
|
|
document.domain === 'tokcoder.com'
|
|
|
|
|
) {
|
|
|
|
|
iframe.src = 'https://www.educoder.net/autologin.html?t=' + Date.now();
|
|
|
|
|
} else {
|
|
|
|
|
iframe.src = 'https://www.tokcoder.com/autologin.html?t=' + Date.now();
|
|
|
|
|
}
|
|
|
|
|
iframe.sandbox =
|
|
|
|
|
'allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation';
|
|
|
|
|
iframe.allow = 'geolocation document-domain';
|
|
|
|
|
iframe.style.position = 'absolute';
|
|
|
|
|
iframe.style.top = '-1000px';
|
|
|
|
|
iframe.style.opacity = 0;
|
|
|
|
|
iframe.style.visibility = 'hidden';
|
|
|
|
|
iframe.style.zIndex = -1;
|
|
|
|
|
document.body.appendChild(iframe);
|
|
|
|
|
iframe.onload = function() {
|
|
|
|
|
iframe.contentWindow.postMessage(
|
|
|
|
|
{ type: 'cookie', data: document.cookie },
|
|
|
|
|
'*',
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
// document.body.parentNode.id = "educoder";
|
|
|
|
|
// var iframe = document.createElement('iframe');
|
|
|
|
|
// if (
|
|
|
|
|
// document.domain === 'www.tokcoder.com' ||
|
|
|
|
|
// document.domain === 'tokcoder.com'
|
|
|
|
|
// ) {
|
|
|
|
|
// iframe.src = 'https://www.educoder.net/autologin.html?t=' + Date.now();
|
|
|
|
|
// } else {
|
|
|
|
|
// iframe.src = 'https://www.tokcoder.com/autologin.html?t=' + Date.now();
|
|
|
|
|
// }
|
|
|
|
|
// iframe.sandbox =
|
|
|
|
|
// 'allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation';
|
|
|
|
|
// iframe.allow = 'geolocation document-domain';
|
|
|
|
|
// iframe.style.position = 'absolute';
|
|
|
|
|
// iframe.style.top = '-1000px';
|
|
|
|
|
// iframe.style.opacity = 0;
|
|
|
|
|
// iframe.style.visibility = 'hidden';
|
|
|
|
|
// iframe.style.zIndex = -1;
|
|
|
|
|
// document.body.appendChild(iframe);
|
|
|
|
|
// iframe.onload = function() {
|
|
|
|
|
// iframe.contentWindow.postMessage(
|
|
|
|
|
// { type: 'cookie', data: document.cookie },
|
|
|
|
|
// '*',
|
|
|
|
|
// );
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.gtag = new Function;
|
|
|
|
|
|