window._PuT = window._PuT || {}; window._PuT.Request = window._PuT.Request || {}; //Get timezone window._PuT.Request.fingerPrint = function () { //get timezone var attributes = {}; attributes.timeZone = new Date().getTimezoneOffset(), attributes.userAgent = navigator.userAgent, attributes.screenSize = screen.width + 'x' + screen.height, attributes.isTouchDevice = ('ontouchstart' in document.documentElement) ? 'touch' : 'no-touch', attributes.os = window.navigator.platform, attributes.colorDepth = window.screen.colorDepth, attributes.numberOfThreads = window.navigator.hardwareConcurrency || 1, attributes.userLang = navigator.language || navigator.userLanguage, attributes.sessionStorage = ( typeof sessionStorage == 'undefined') ? false : true, attributes.localStorage = ( typeof localStorage == 'undefined') ? false : true, attributes.indexDb = ( function () { window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; if (window.indexedDB) { true } else { false } })(), attributes.pixelRatio = window.devicePixelRatio || 1, attributes.canvasFingerprint = ( function () { var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); var txt = 'i9asdm..$#po((^@KbXrww!~cz'; ctx.textBaseline = "top"; ctx.font = "16px 'Arial'"; ctx.textBaseline = "alphabetic"; ctx.rotate(.05); ctx.fillStyle = "#f60"; ctx.fillRect(125,1,62,20); ctx.fillStyle = "#069"; ctx.fillText(txt, 2, 15); ctx.fillStyle = "rgba(102, 200, 0, 0.7)"; ctx.fillText(txt, 4, 17); ctx.shadowBlur=10; ctx.shadowColor="blue"; ctx.fillRect(-20,10,234,5); var strng=canvas.toDataURL(); //document.body.appendChild(canvas); var hash=0; if (strng.length==0) return 'nothing!'; for (i = 0; i < strng.length; i++) { char = strng.charCodeAt(i); hash = ((hash<<5)-hash)+char; hash = hash & hash; } return hash; })(), attributes.webAssambly = ( typeof WebAssembly === "object" && typeof WebAssembly.instantiate === "function") ? true : false var attributesString = ''; for (var key in attributes){ attributesString += attributes[key]; } return window._PuT.functions.md5(attributesString); };window._PuT = window._PuT || {}; window._PuT.Request = window._PuT.Request || {}; window._PuT.Request.currentUrl = window.location.href; window._PuT.Request.refererUrl = document.referrer;window._PuT.functions = window._PuT.functions || {}; window._PuT.functions.getScript = function (source, callback) { var script = document.createElement('script'); var head = document.getElementsByTagName('head')[0]; script.async = 1; head.insertBefore(script, head.lastChild); script.onload = script.onreadystatechange = function( _, isAbort ) { if(isAbort || !script.readyState || /loaded|complete/.test(script.readyState) ) { script.onload = script.onreadystatechange = null; script = undefined; if(!isAbort) { if(callback) callback(); } } }; script.src = source; }; window._PuT.functions.getCss = function (source) { var link = document.createElement( "link" ); link.href = source; link.type = "text/css"; link.rel = "stylesheet"; link.media = "screen,print"; document.getElementsByTagName( "head" )[0].appendChild( link ); }; window._PuT.functions.md5 = function (str_to_hash) { //https://github.com/xibre/FastMD5 MD5 hash library var MD5 = function(s){function L(k,d){return(k<>>(32-d))}function K(G,k){var I,d,F,H,x;F=(G&2147483648);H=(k&2147483648);I=(G&1073741824);d=(k&1073741824);x=(G&1073741823)+(k&1073741823);if(I&d){return(x^2147483648^F^H)}if(I|d){if(x&1073741824){return(x^3221225472^F^H)}else{return(x^1073741824^F^H)}}else{return(x^F^H)}}function r(d,F,k){return(d&F)|((~d)&k)}function q(d,F,k){return(d&k)|(F&(~k))}function p(d,F,k){return(d^F^k)}function n(d,F,k){return(F^(d|(~k)))}function u(G,F,aa,Z,k,H,I){G=K(G,K(K(r(F,aa,Z),k),I));return K(L(G,H),F)}function f(G,F,aa,Z,k,H,I){G=K(G,K(K(q(F,aa,Z),k),I));return K(L(G,H),F)}function D(G,F,aa,Z,k,H,I){G=K(G,K(K(p(F,aa,Z),k),I));return K(L(G,H),F)}function t(G,F,aa,Z,k,H,I){G=K(G,K(K(n(F,aa,Z),k),I));return K(L(G,H),F)}function e(G){var Z;var F=G.length;var x=F+8;var k=(x-(x%64))/64;var I=(k+1)*16;var aa=Array(I-1);var d=0;var H=0;while(H>>29;return aa}function B(x){var k="",F="",G,d;for(d=0;d<=3;d++){G=(x>>>(d*8))&255;F="0"+G.toString(16);k=k+F.substr(F.length-2,2)}return k}function J(k){k=k.replace(/rn/g,"n");var d="";for(var F=0;F127)&&(x<2048)){d+=String.fromCharCode((x>>6)|192);d+=String.fromCharCode((x&63)|128)}else{d+=String.fromCharCode((x>>12)|224);d+=String.fromCharCode(((x>>6)&63)|128);d+=String.fromCharCode((x&63)|128)}}}return d}var C=Array();var P,h,E,v,g,Y,X,W,V;var S=7,Q=12,N=17,M=22;var A=5,z=9,y=14,w=20;var o=4,m=11,l=16,j=23;var U=6,T=10,R=15,O=21;s=J(s);C=e(s);Y=1732584193;X=4023233417;W=2562383102;V=271733878;for(P=0;P= window._PuT.fSeconds * 1000 || difference === 0) { console.log('Send Request, currentTime=' + currentTime + ', lastClick=' + lastClick + ', difference=' + difference); sendRequest(); } else { var secondsUntilNextCall = Math.floor(window._PuT.fSeconds - (difference / 1000)); console.log('SetNextCall, difference=' + secondsUntilNextCall); setNextCall(secondsUntilNextCall); } }); });window._PuT.deliveryEndpoint = "cdn.popundertotal.com/deliveryMethods/js/delivery.php";