Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignitetch
GitHub Repository: ignitetch/advphishing
Path: blob/master/sites/google-otp/otp_files/edmonton.webp
739 views
function ez_attachEvent(element, evt, func) {
    if (element.addEventListener) {
        element.addEventListener(evt, func, false);
    } else {
        element.attachEvent("on" + evt, func);
    }
}
function ez_attachEventWithCapture(element, evt, func, useCapture) {
    if (element.addEventListener) {
        element.addEventListener(evt, func, useCapture);
    } else {
        element.attachEvent("on" + evt, func);
    }
}
function ez_detachEvent(element, evt, func) {
    if(element.removeEventListener) {
        element.removeEventListener(evt, func);
    } else {
        element.detachEvent("on"+evt, func);
    }
}
function ez_getQueryString(field, url) {
    var href = url ? url : window.location.href;
    var reg = new RegExp('[?&]' + field + '=([^&#]*)', 'i');
    var string = reg.exec(href);
    return string ? string[1] : null;
}// minified riveted.js using https://jscompress.com/
!function(e,t){"function"==typeof define&&define.amd?define("ezRiveted",[],t):"object"==typeof module&&module.exports?module.exports=t():e.riveted=t()}(this,function(){return function(){var t,d,f,m,n=!1,i=!1,o=!1,e=0,u=new Date,c=null,r=null,l=0,a=0;function s(){0<a&&clearTimeout(a),h(),a=setTimeout(function(){var e,t,n,i,o;clearTimeout(a),g(),e=document.documentElement,t=document.body,n="scrollTop",i="scrollHeight",o=0,o=t.clientHeight<e.clientHeight?100*((e[n]||t[n])+t.clientHeight)/(e[i]||t[i]):100*((e[n]||t[n])+e.clientHeight)/(e[i]||t[i]),l<o&&(l=o)},50)}function v(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function h(){clearTimeout(r),i=!0,clearInterval(c)}function p(){(document.hidden||document.webkitHidden)&&h()}function T(){e+=.1,0<(e=Math.round(100*e)/100)&&e%f==0&&t(e)}function g(){var e;o||(n||(e=new Date,n=!0,d(e-u),c=setInterval(T,1e3)),i&&(i=!1,clearInterval(c),c=setInterval(T,100)),clearTimeout(r),r=setTimeout(h,1e3*m+100))}return d=function(e){},t=function(e){},{init:function(e){var n,i,o,u,c,r,l,a;e=e||{},f=parseInt(e.reportInterval,10)||5,m=parseInt(e.idleTimeout,10)||30,"function"==typeof e.eventHandler&&(t=e.eventHandler),"function"==typeof e.userTimingHandler&&(d=e.userTimingHandler),v(document,"keydown",g),v(document,"click",g),v(document,"touchstart",g),v(window,"mousemove",(n=g,i=500,r=null,l=0,a=function(){l=new Date,r=null,c=n.apply(o,u)},function(){var e=new Date;l||(l=e);var t=i-(e-l);return o=this,u=arguments,t<=0?(clearTimeout(r),r=null,l=e,c=n.apply(o,u)):r||(r=setTimeout(a,t)),c})),v(window,"scroll",s),v(document,"visibilitychange",p),v(document,"webkitvisibilitychange",p)},trigger:g,setIdle:h,on:function(){o=!1},off:function(){h(),o=!0},reset:function(){u=new Date,e=0,i=n=!1,clearInterval(c),clearTimeout(r)},getTime:function(){return Math.round(e)},getScrollDepth:function(){return Math.round(l)}}}()});
// minified ux.js using https://jscompress.com/
var ezux=function(){if("undefined"!=typeof _ezaq&&_ezaq.hasOwnProperty("page_view_id")){var o,h=!1,e=0,t=15e3,a="1"==ez_getQueryString("ezux_debug"),n={copyPaste:0,shares:0},i={copyPasteCount:0,engagedTime:0,isEngagedPage:0,scrollDepth:0,unloadTime:0,shareCount:0},r={et:0,tos:0},d=1800,v=_ezaq.page_view_id,c=10,u=new Date,l={engagedAdded:0,tosAdded:0},s=3e3,_=null,p={copyPaste:function(){n.copyPaste++},mouseOut:function(e){if(void 0!==(e=e||window.event)&&void 0!==e.target&&void 0!==e.target.tagName&&"input"!==e.target.tagName.toLowerCase()){var t=Math.max(document.documentElement.clientWidth,window.innerWidth||0);if(!(e.clientX>=t-50))if(!(50<=e.clientY))e.relatedTarget||e.toElement||p.unload(e)}},load:function(e){k(),function(){if("undefined"!=typeof performance&&null!==performance){var e=performance.getEntriesByType("paint"),t=e.find(function(e){return"first-paint"===e.name}),n=e.find(function(e){return"first-contentful-paint"===e.name});if(null!=t){var a=Math.round(t.startTime);__ez.bit.Add(v,[new __ezDotData("first_paint",a)]),S("first_paint: "+a)}if(null!=n){var o=Math.round(n.startTime);__ez.bit.Add(v,[new __ezDotData("first_contentful_paint",o)]),S("first_contentful_paint: "+o)}A()}}(),function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(null!=e){var t=e.effectiveType,n=e.downlink,a=e.rtt;null!=t&&(__ez.bit.Add(v,[new __ezDotData("connection_effective_type",t)]),S("connection_effective_type: "+t)),null!=n&&(__ez.bit.Add(v,[new __ezDotData("connection_downlink",n)]),S("connection_downlink: "+n)),null!=a&&(__ez.bit.Add(v,[new __ezDotData("connection_rtt",a)]),S("connection_rtt: "+a)),A()}}()},unload:function(e){var t=(new Date).getTime();(0===i.unloadTime||t>i.unloadTime+s)&&(function(){var e=b("ezux_et"),t=b("ezux_tos"),n=o.getTime()-l.engagedAdded,a=T()-l.tosAdded;n==i.engagedTime&&(n=0);r.et=parseInt(n)+parseInt(""==r.et?0:r.et),r.tos=parseInt(a)+parseInt(""==r.tos?0:r.tos),S("[Times] Total Engaged: "+r.et+" (+"+n+")"),S("[Times] Total TOS: "+r.tos+" (+"+a+")"),__ez.ck.setByCat(e+"="+r.et,3),__ez.ck.setByCat(t+"="+r.tos,3),l.engagedAdded+=n,l.tosAdded+=a}(),k(),g.unloadAll(e),i.unloadTime=t)},pageshow:function(e){var t=b("ezoawesome"),n=z(t);0<n.length&&(S("Bounce ("+t+") detected with val "+n),function(e){var t=e.split(" ");2!==t.length&&S("Invalid ezoawesome cookie value");var n=t[0],a=t[1];if(isNaN(a))return;var o=Math.floor((Date.now()-a)/1e3);__ez.pel.AddById(n,[new __ezDotData("click_bounce_time",o)]),S("[Bounce] impId: "+n),S("[Bounce] bounceTime: "+o)}(n),function(e){S("Deleting "+e),document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"}(t))},pageshare:function(e){n.shares++,g.addPageShares()},addUnloadTime:function(e){g.addUnloadTime()}},g={addCopyPaste:function(){0<n.copyPaste&&n.copyPaste!=i.copyPasteCount&&(__ez.bit.Add(v,[new __ezDotData("copy_paste_count",n.copyPaste)]),i.copyPasteCount=n.copyPaste)},addDeviceSizes:function(){S("Storing device sizes"),__ez.bit.Add(v,[new __ezDotData("device_width",screen.width),new __ezDotData("device_height",screen.height)])},addEngagedTimes:function(e){e!=i.engagedTime&&(__ez.bit.Add(v,[new __ezDotData("engaged_time",e)]),i.engagedTime=e)},addIsEngagedPage:function(e){0==i.isEngagedPage&&P(e)&&(__ez.bit.Add(v,[new __ezDotData("is_engaged_page",1)]),i.isEngagedPage=1)},addIsFirstEngagedPage:function(e){var t=b("ezux_ifep");0==z(t).length&&P(e)&&(S("Adding first engaged cookie"),__ez.ck.setByCat(t+"=true",3),__ez.bit.Add(v,[new __ezDotData("is_first_engaged_page",1)]))},addLanguage:function(){S("Storing language tag");var e=window.navigator.userLanguage||window.navigator.language,t=e.split("-");if(void 0!==e&&""!==e&&(36<e.length&&(e=e.substring(0,36)),__ez.bit.Add(v,[new __ezDotData("language_tag",e)])),2<=t.length){var n=t[0];8<n&&(n=n.substring(0,8)),__ez.bit.Add(v,[new __ezDotData("language_primary_subtag",n)])}},addLocalTime:function(){S("Storing local time");var e=new Date,t=e.getTimezoneOffset();if(!(t<-840||720<t)){var n=new Date(e-6e4*t);if(!(14<Math.abs(n-e)/36e5)){Date.prototype.toISOString||(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+r(this.getUTCMonth()+1)+"-"+r(this.getUTCDate())+"T"+r(this.getUTCHours())+":"+r(this.getUTCMinutes())+":"+r(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"});var a=n.toISOString().slice(0,19).replace("T"," ").split(" ")[0];if(!(a.length<1||"0"==a[0])){var o=e.getHours(),i=e.getDay();__ez.bit.Add(v,[new __ezDotData("t_local_date",a),new __ezDotData("t_local_hour",o),new __ezDotData("t_local_day_of_week",i),new __ezDotData("t_local_timezone",t)])}}}function r(e){return e<10?"0"+e:e}},addScrollDepth:function(){var e=o.getScrollDepth();e!=i.scrollDepth&&(__ez.bit.Add(v,[new __ezDotData("scroll_percent_vertical",e)]),i.scrollDepth=e)},addPageShares:function(){0<n.shares&&n.shares!=i.shareCount&&(S("[Page Share] Store page shares: "+n.shares),__ez.bit.Add(v,[new __ezDotData("share",n.shares)]),i.shareCount=n.shares)},addUnloadTime:function(){__ez.bit.Add(v,[new __ezDotData("t_unload",(new Date).getTime())]),__ez.bit.Fire()},unloadAll:function(e){var t=o.getTime();g.addEngagedTimes(t),g.addCopyPaste(),g.addScrollDepth(),g.addIsEngagedPage(t),g.addIsFirstEngagedPage(t),g.addPageShares(),S("Unload ("+e.type+")"),A()}};return f(),{init:f,destroy:function(){p.unload({type:"auto"}),clearInterval(e),function(){if(w(document,"blur",p.unload),w(document,"copy",p.copyPaste),w(document,"cut",p.copyPaste),w(document,"mouseout",p.mouseOut),w(document,"paste",p.copyPaste),w(window,"beforeunload",p.unload),w(window,"beforeunload",p.addUnloadTime),w(window,"blur",p.unload),w(window,"pagehide",p.unload),w(window,"unload",p.unload),w(window,"load",p.load),w(window,"pageshow",p.pageshow),function(){for(var e=D(),t=0;t<e.length;t++)w(e[t],"click",p.pageshare)}(),document.removeEventListener){var e=y();document.removeEventListener(e.visibilityChangeEventName,_,!1)}else document.detachEvent("onvisibilitychange",p.unload)}(),"undefined"!=typeof riveted&&(o=riveted).reset()}}}function f(){e=0,t=15e3,a="1"==ez_getQueryString("ezux_debug"),n={copyPaste:0,shares:0},i={copyPasteCount:0,engagedTime:0,isEngagedPage:0,scrollDepth:0,unloadTime:0,shareCount:0},r={et:z(b("ezux_et")),tos:z(b("ezux_tos"))},d=1800,v=_ezaq.page_view_id,c=10,u=new Date,l={engagedAdded:0,tosAdded:0},s=3e3,_=null,g.addDeviceSizes(),g.addLocalTime(),g.addLanguage(),A(),function(){if(m(document,"blur",p.unload),m(document,"ezPageUnload",p.unload),m(document,"copy",p.copyPaste),m(document,"cut",p.copyPaste),m(document,"mouseout",p.mouseOut),m(document,"paste",p.copyPaste),m(window,"beforeunload",p.unload),m(window,"beforeunload",p.addUnloadTime),m(window,"blur",p.unload),m(window,"pagehide",p.unload),m(window,"unload",p.unload),m(window,"load",p.load),m(window,"pageshow",p.pageshow),function(){var e=D();if(a){var t=e.map(function(e){return e.href});void 0!==t&&S("[Page Share] "+t.join(", "))}for(var n=0;n<e.length;n++)m(e[n],"click",p.pageshare)}(),document.addEventListener){var t=y();_=function(e){document[t.hiddenPropName]?p.unload(e):p.pageshow(e)},document.addEventListener(t.visibilityChangeEventName,_,!1)}else document.attachEvent("onvisibilitychange",p.unload)}(),"function"==typeof define&&define.amd?require(["ezRiveted"],function(e){E(e)}):E(riveted),e=setInterval(function(){p.unload({type:"auto"}),T()>d&&(S("Turning off auto"),clearInterval(e))},t)}function m(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function w(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t]}function y(){var e,t;return void 0!==document.hidden?(e="hidden",t="visibilitychange"):void 0!==document.msHidden?(e="msHidden",t="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),{hiddenPropName:e,visibilityChangeEventName:t}}function D(){var e=[];return e.push.apply(e,document.querySelectorAll('a[href*="facebook.com/sharer/sharer.php"]')),e.push.apply(e,document.querySelectorAll('a[href*="facebook.com/sharer.php"]')),e.push.apply(e,document.querySelectorAll('a[href*="facebook.com/share.php"]')),e.push.apply(e,document.querySelectorAll('div[class*="fb-share-button"]')),e.push.apply(e,document.querySelectorAll('a[href*="twitter.com/share"]')),e.push.apply(e,document.querySelectorAll('a[href*="twitter.com/intent/tweet"]')),e.push.apply(e,document.querySelectorAll('iframe[class*="twitter-share-button"]')),e.push.apply(e,document.querySelectorAll('a[href*="plus.google.com/share"]')),e.push.apply(e,document.querySelectorAll('iframe[src*="apis.google.com/u/0/se/0/_/+1/sharebutton"]')),e.push.apply(e,document.querySelectorAll('a[href*="linkedin.com/cws/share"]')),e.push.apply(e,document.querySelectorAll('a[href*="linkedin.com/shareArticle"]')),e.push.apply(e,document.querySelectorAll('a[href*="pinterest.com/pin/create/button"]')),e.push.apply(e,document.querySelectorAll('a[href*="pinterest.com/pin/create/bookmarklet"]')),e.push.apply(e,document.querySelectorAll('a[href*="tumblr.com/share/link"]')),e.push.apply(e,document.querySelectorAll('a[href*="reddit.com/submit"]')),e}function z(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function b(e){return e+"_"+did}function T(){return(new Date-u)/1e3}function A(){__ez.bit.Fire(),__ez.pel.Fire()}function P(e){return c<=e}function S(e){a&&console.info("[UX] "+e)}function E(e){(o=e).init({reportInterval:5,idleTimeout:30,eventHandler:function(e){S("Event: "+parseInt(e)+" --- Engaged Time: "+parseInt(o.getTime())),o.getTime()>=d&&(S("Turning off timer"),p.unload({type:"max"}),o.off())}})}function k(){if(S("[Performance] Store performance"),1!=h&&window.performance){var e=performance.getEntriesByType("navigation")[0];if(e){var t=performance.timeOrigin,n=e.connectEnd,a=e.responseStart,o=e.responseEnd,i=e.domInteractive,r=e.domContentLoadedEventEnd,d=e.domComplete;if(0<t&&0<d){var c=e.type,u=0,l=e.redirectCount;switch(c){case"navigate":u=0;break;case"reload":u=1;break;case"back_forward":u=2;break;case"prerender":default:u=255}__ez.bit.Add(v,[new __ezDotData("navigation_type",u),new __ezDotData("redirect_count",l)]),perf_vals={};var s=Math.round(n),_=Math.round(a),p=Math.round(o-a),g=Math.round(i-o),f=Math.round(r-o),m=Math.round(d-o);__ez.bit.Add(v,[new __ezDotData("perf_is_tracked",1),new __ezDotData("perf_nav_to_connect",s),new __ezDotData("perf_connect_to_resp_start",_),new __ezDotData("perf_resp_time",p),new __ezDotData("perf_interactive",g),new __ezDotData("perf_contentloaded",f),new __ezDotData("perf_complete",m)]),S("[Performance] perf_nav_to_connect: "+s),S("[Performance] perf_connect_to_resp_start: "+_),S("[Performance] perf_resp_time: "+p),S("[Performance] perf_interactive: "+g),S("[Performance] perf_contentloaded: "+f),S("[Performance] perf_complete: "+m),h=!0,A()}}}}}();