integration/mediapart/une_files/01-10490-radar10.js
changeset 4 b00fdbef41d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/integration/mediapart/une_files/01-10490-radar10.js	Tue Oct 09 16:31:25 2012 +0200
@@ -0,0 +1,2 @@
+/*version:13.3*/
+var cdxFeatures,cdxUnitTesting;function cdxCore(a){this.reqs={};this.modules={};this.version="13.3";this.initHost="init.cedexis-radar.net";this.reportHost="report.init.cedexis-radar.net";this.probePath="radar.cedexis.com/";this.secureProbePath="s3.amazonaws.com/cdx-radar/";this.modulePath="radar.cedexis.com/";this.secureModulePath="s3.amazonaws.com/cdx-radar/";this.unlimitedMeasurements=a.unlimitedMeasurements;this.isMobileBrowser=(function(){var b=window.navigator.userAgent;return(/(iphone|opera mini|blackberry|nokia)/i).test(b)||(/android.+webkit/i).test(b)||(/samsung.+symbianos/i).test(b)}());this.reportsQueue=[]}function cdxRequestor(a){var g,f,d,c,h,b,e;g="radarSettings_"+parseInt(a.zid,10)+"_"+parseInt(a.cid,10);f=window[g]||{};this.zid=a.zid;this.cid=a.cid;this.pid=a.pid;this.privateProviders=f.privateProviders;this.publicProviders=f.publicProviders;this.startupDelay=a.startupDelay;if("undefined"!==typeof f.startupDelay){this.startupDelay=f.startupDelay}this.maxNavTimingValue=a.maxNavTimingValue;this.unlimitedMeasurements=false;if(true===f.unlimitedMeasurements){this.unlimitedMeasurements=true}this.tid=cdxCore.getRandomInt(1,4294967295);this.useDefaultProviderWeighting=f.useDefaultProviderWeighting||a.useDefaultProviderWeighting;this.defaultProviderWeight=f.defaultProviderWeight||a.defaultProviderWeight;this.callbacks={"Init Data Received":[],"Samples Selected":[],"Provider Configured":[],"Probe Completed":[],"Sampling Completed":[],"Sampling Cancelled":[]};h=f.callbacks;if(h){for(d in this.callbacks){if(this.callbacks.hasOwnProperty(d)){if(h.hasOwnProperty(d)){if("function"===typeof h[d]){this.callbacks[d].push(h[d])}else{for(c=0;c<h[d].length;c++){this.callbacks[d].push(h[d][c])}}}}}}b={probing:{on:(function(){if("undefined"!==typeof f.includeRemoteProbing){return f.includeRemoteProbing}return a.remoteProbingInclude}()),delay:a.remoteProbingDelay,activationPct:a.remoteProbingActivationPct},navigationTiming:{on:(function(){if("undefined"!==typeof f.includeNavigationTiming){return f.includeNavigationTiming}return a.navigationTimingInclude}()),delay:a.navigationTimingDelay,activationPct:a.navigationTimingActivationPct}};e=function(k,l){var j,i,m={};for(j in k){if(k.hasOwnProperty(j)){i=k[j];if(l(i)){m[j]=i}}}return m};this.modules=e(b,cdxRequestor.isActiveModule)}cdxCore.doNotTrack=function(a){var b=a.navigator;if("undefined"!==typeof b.doNotTrack){return("yes"===b.doNotTrack)||("1"===b.doNotTrack)}if("undefined"!==typeof b.msDoNotTrack){return"1"===b.msDoNotTrack}return false};cdxCore.isProblemUserAgent=function(d){var b=[/opera mini/i,/catchpoint/i],c;for(c=0;c<b.length;c++){if(b[c].test(d)){return true}}return false};cdxCore.getProbeTypeCode=function(c){var d,b,a;b={HTTP_RTT:0,HTTP_COLD:1,HTTP_CUSTOM:2,HTTP_AVAIL:3,HTTP_XL:4,HTTP_KBPS:14,HTTP_WPO:16,HTTP_NAVTIME_FULLPAGELOAD:17,SSL_RTT:10,SSL_COLD:11,SSL_CUSTOM:12,SSL_AVAIL:13,SSL_KBPS:15,SSL_WPO:18,SSL_NAVTIME_FULLPAGELOAD:19,HTTP_NAVTIME_RESPONSE:40,HTTP_NAVTIME_PROCLOAD:41,SSL_NAVTIME_RESPONSE:42,SSL_NAVTIME_PROCLOAD:43};a={HTTP_RTT:22,HTTP_COLD:21,HTTP_CUSTOM:24,HTTP_AVAIL:20,HTTP_KBPS:23,HTTP_WPO:25,HTTP_NAVTIME_FULLPAGELOAD:26,SSL_RTT:29,SSL_COLD:28,SSL_CUSTOM:31,SSL_AVAIL:27,SSL_KBPS:30,SSL_WPO:32,SSL_NAVTIME_FULLPAGELOAD:33,HTTP_NAVTIME_RESPONSE:44,HTTP_NAVTIME_PROCLOAD:45,SSL_NAVTIME_RESPONSE:46,SSL_NAVTIME_PROCLOAD:47};d=cdxFeatures.isMobileBrowser?a:b;if(d.hasOwnProperty(c)){return d[c]}return null};cdxCore.isColdProbeType=function(a){return -1<a.indexOf("_COLD")};cdxCore.prototype.downloadModules=(function(){var a=false;return function(){var c,g=document,b=g.getElementById("radar_downloads"),f,e=["probe-13.3.js","timing-13.3.js"];if(!a){a=true;for(f in e){if(e.hasOwnProperty(f)){c=g.createElement("script");c.type="text/javascript";c.src="//"+((location.protocol==="https:")?this.secureModulePath:this.modulePath)+e[f];b.appendChild(c)}}}}}());cdxCore.getRandomInt=function(b,a){return Math.floor(Math.random()*(a-b+1))+b};cdxCore.getRequestorKey=function(a,b){return parseInt(a,10)+"-"+parseInt(b,10)};cdxCore.prototype.addRequestor=function(a){this.reqs[cdxCore.getRequestorKey(a.zid,a.cid)]=a};cdxCore.prototype.onInitDataReceived=function(a){var c=a.requestSignature,b;if(c){b=this.requestorFromSig(c);if(b&&b.onInitDataReceived){b.onInitDataReceived(a)}}};cdxCore.padFront=function(b,d,c){var a=b;while(c>a.length){a=d+a}return a};cdxCore.prototype.requestorFromSig=function(a){return this.reqs[cdxCore.getRequestorKeyFromSig(a)]};cdxCore.getRequestorKeyFromSig=function(d){var b,a,e,c;b=cdxCore.decodeSignature(d);a=b[6];e=cdxCore.hexArray(b);c=parseInt(cdxCore.padFront(e[8],"0",2)+cdxCore.padFront(e[7],"0",2),16);return a+"-"+c};cdxCore.decodeSignature=function(f){var g,j,a=[],b=[],l,e,m,d,k,h;e=function(n){var i=/[a-zA-Z0-9@_]/;return null!==n.match(i)};m=function(o){var i=-1,n=o.charCodeAt(0);if(o.match(/[a-z]/)){i=n-"a".charCodeAt(0)}else{if(o.match(/[A-Z]/)){i=26+n-"A".charCodeAt(0)}else{if(o.match(/[0-9]/)){i=52+n-"0".charCodeAt(0)}else{if(o==="@"){i=62}else{if(o==="_"){i=63}}}}}return i};for(g=0;g<140;g++){a.push(f.charAt(g))}a.push("#");a.push(0);g=0;j=a[g];k=0;h=0;while((j!=="#")&&e(j)){d=m(j);switch(k){case 0:h=d;k++;break;case 1:l=(h<<2)|((d>>4)&3);b.push(l);h=d&15;k++;break;case 2:l=(h<<4)|((d>>2)&15);b.push(l);h=d&3;k++;break;case 3:l=(h<<6)|((d>>0)&63);b.push(l);k=0;break}g++;j=a[g]}return b};cdxCore.hexArray=function(b){var a=[],c;for(c=0;c<b.length;c++){a.push(b[c].toString(16))}return a};cdxCore.prototype.submitReportBatch=function(e){var c=this,d,a,b=document.getElementById("radar_downloads");if(0<this.reportsQueue.length){d=this.reportsQueue.shift();a=document.createElement("script");if(a.addEventListener){a.addEventListener("load",function(){c.submitReportBatch(e)},false)}else{if(a.attachEvent){a.attachEvent("onload",function(){c.submitReportBatch(e)})}}a.src=d;b.appendChild(a)}else{if("function"===typeof e){e()}}};cdxCore.prototype.addReport=function(c,a,b){this.reportsQueue.push("//"+this.reportHost+"/"+c+"/"+a.requestSignature+"/"+b+"/?sig="+a.requestSignature)};cdxCore.checkPercentage=function(a){return cdxCore.getRandomInt(0,99)<a};cdxCore.getSum=function(a,d){var b,c=0;for(b=0;b<a.length;b++){c+=d(a[b])}return c};cdxRequestor.prototype.onInitDataReceived=function(a){var c,b=this.modules;this.requestSignature=a.requestSignature;cdxFeatures.countryCode=a.countryIso;this.notify("Init Data Received",a);this.startWaitAt=(new Date()).getTime();for(c in b){if(b.hasOwnProperty(c)){setTimeout(this.makeWaitForStartupFn(c),500)}}};cdxRequestor.prototype.notify=function(b,c){var a,d;if(this.callbacks.hasOwnProperty(b)){for(a=0;a<this.callbacks[b].length;a++){d=this.callbacks[b][a];if("function"===typeof d){c=d(c,cdxCore.getRequestorKey(this.zid,this.cid))}}}return c};cdxRequestor.isActiveModule=function(a){if(a.on!==true){return false}if(a.activationPct===0){return false}return cdxCore.checkPercentage(a.activationPct)};cdxRequestor.prototype.makeInitElement=function(){var d=document.createElement("script"),c=cdxFeatures,b=c.version.replace(".","-"),f=(location.protocol==="https:")?"s":"i",a,e,g;g=(function(){var h=(new Date()).getTime();return String(Math.round(h/1000))}());a="i1-js-"+b+"-"+this.zid+"-"+this.cid+"-"+this.tid+"-"+f;e="//"+a+"."+c.initHost+"/i1/"+g+"/"+this.tid+"/jsonp?seed="+a;d.type="text/javascript";d.src=e;return d};cdxRequestor.prototype.makeWaitForStartupFn=function(a){var b=this;return function(){var c=cdxFeatures,d;if(c.hasOwnProperty(a)){setTimeout(function(){c[a].go(cdxCore.getRequestorKey(b.zid,b.cid))},b.modules[a].delay)}else{d=(new Date()).getTime();if(10000>(d-b.startWaitAt)){setTimeout(b.makeWaitForStartupFn(a),500)}}}};cdxRequestor.prototype.getPrivateProviders=function(a){return this.privateProviders||a.privateProviders};cdxRequestor.prototype.getPublicProviders=function(a){return this.publicProviders||a.publicProviders};if(!cdxUnitTesting&&!cdxCore.doNotTrack(window)){(function(){var c,b,d=document,a;if(!cdxCore.isProblemUserAgent(window.navigator.userAgent)){c={zid:"01",cid:"10490",pid:"1407",remoteProbingInclude:true,remoteProbingDelay:2000,remoteProbingActivationPct:100,navigationTimingInclude:true,navigationTimingDelay:2000,navigationTimingActivationPct:100,maxNavTimingValue:12000,useDefaultProviderWeighting:false,defaultProviderWeight:100,startupDelay:0};b=new cdxRequestor(c);if(!cdxFeatures){cdxFeatures=new cdxCore(b);setTimeout(function(){cdxFeatures.downloadModules()},b.startupDelay)}a=d.getElementById("radar_downloads");if(!a){a=d.createElement("div");a.id="radar_downloads";d.body.appendChild(a)}cdxFeatures.addRequestor(b);setTimeout(function(){d.getElementById("radar_downloads").appendChild(b.makeInitElement())},b.startupDelay)}}())};
\ No newline at end of file