From 3b95d4aec6334b0e18eed433120fd549eaa5fa36 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 28 Sep 2013 15:12:03 -0700 Subject: import cpan-explorer --- .../quant.js | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 doc/Viewing Large Images with Seadragon and Pythonhtml_files/quant.js (limited to 'doc/Viewing Large Images with Seadragon and Pythonhtml_files/quant.js') diff --git a/doc/Viewing Large Images with Seadragon and Pythonhtml_files/quant.js b/doc/Viewing Large Images with Seadragon and Pythonhtml_files/quant.js new file mode 100644 index 0000000..c897e41 --- /dev/null +++ b/doc/Viewing Large Images with Seadragon and Pythonhtml_files/quant.js @@ -0,0 +1,92 @@ +function _qcdst(){if(_qctzoff(0)!=_qctzoff(6))return 1;return 0;} +function _qctzoff(m){ +var d1=new Date(2000,m,1,0,0,0,0); +var t=d1.toGMTString(); +var d3=new Date(t.substring(0,t.lastIndexOf(" ")-1)); +return d1-d3; +} +function _qceuc(s){ +if(typeof(encodeURIComponent)=='function'){return encodeURIComponent(s);} +else{return escape(s);} +} +function _qcrnd(){return Math.round(Math.random()*2147483647);} +function _qvoid(){return;} +function _qcgc(n){ + var v=''; + var c=document.cookie;if(!c)return v; + var i=c.indexOf(n+"="); + var len=i+n.length+1; + if(i>-1){ + var end=c.indexOf(";", len); + if(end<0)end=c.length; + v=c.substring(len,end); + } + return v; +} +function _qcdomain(){ + var d=document.domain; + if(d.substring(0,4)=="www.")d=d.substring(4,d.length); + var a=d.split(".");var len=a.length; + if(len<3)return d; + var e=a[len-1]; + if(e.length<3)return d; + d=a[len-2]+"."+a[len-1]; + return d; +} +function _qcsc(dc){ + var s="",u=document;var d=_qcdomain();var a=_qcgc("__qca"); + if(a.length>0){s+=";fpan=0;fpa="+a;} + else{ + u.cookie="__qca="+dc+"; expires=Sun, 18 Jan 2038 00:00:00 GMT; path=/; domain="+d; + a=_qcgc("__qca"); + if(a.length>0){s+=";fpan=1;fpa="+dc;} + else{s+=";fpan=u;fpa=";} + } + var b=_qcgc("__qcb"); + if(b.length>0){s+=";fpbn=0;fpb="+b;} + else{b=_qcrnd(); + u.cookie="__qcb="+b+"; path=/; domain="+d; + b=_qcgc("__qcb"); + if(b.length>0){s+=";fpbn=1;fpb="+b;} + else{s+=";fpbn=u;fpb=";} + } + return s; +} +function quantserve(){ + var r=_qcrnd(); + var sr='',qo='',qm='',url='',ref='',je='u',ns='1',media='webpage',event='load'; + if(typeof _qoptions !="undefined" && _qoptions!=null){ + for(var k in _qoptions){ + if(typeof(_qoptions[k])!='string'){continue;} + if(k=='qacct'){_qacct=_qoptions[k];} + else{qo+=';'+k+'='+_qceuc(_qoptions[k]);} + if(k=='media'){media=_qoptions[k];} + if(k=='event'){event=_qoptions[k];} + } + _qoptions=null; + } + if((typeof _qacct =="undefined")||(_qacct.length==0))return; + if(media=='webpage' && event=='load'){ + if((typeof _qpixelsent !="undefined")&&(_qpixelsent==_qacct))return; + _qpixelsent=_qacct;} + var ce=(navigator.cookieEnabled)?"1":"0"; + if(typeof navigator.javaEnabled !='undefined')je=(navigator.javaEnabled())?"1":"0"; + if(typeof _qmeta !="undefined" && _qmeta!=null){qm=';m='+_qceuc(_qmeta);_qmeta=null;} + if(self.screen){sr=screen.width+"x"+screen.height+"x"+screen.colorDepth;} + var d=new Date(); + var dst=_qcdst(); + + + + var dc="1224977220-93203384-61894334"; + var qs="http://pixel.quantserve.com"; + var fp=_qcsc(dc); + if(window.location && window.location.href)url=_qceuc(window.location.href); + if(window.document && window.document.referrer)ref=_qceuc(window.document.referrer); + if(self==top)ns='0'; + var img=new Image(1,1); + img.alt=""; + img.src=qs+'/pixel'+';r='+r+fp+';ns='+ns+';url='+url+';ref='+ref+';ce='+ce+';je='+je+';sr='+sr+';dc='+dc+';dst='+dst+';et='+d.getTime()+';tzo='+d.getTimezoneOffset()+';a='+_qacct+qo+qm; + img.onload=function() {_qvoid();} +} +quantserve(); -- cgit 1.4.1