"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/base/js/owa.tracker-combined-min.js" between
Open-Web-Analytics-1.6.9.tar.gz and Open-Web-Analytics-1.7.0.tar.gz

About: Open Web Analytics (OWA) is web analytics software to track and analyze how people use your web sites and applications.

owa.tracker-combined-min.js  (Open-Web-Analytics-1.6.9):owa.tracker-combined-min.js  (Open-Web-Analytics-1.7.0)
/* OWA owa.tracker package file created Thu, 30 Apr 20 00:00:32 -0700 */ /* OWA owa.tracker package file created Thu, 13 Aug 20 11:20:45 -0700 */
/* Start of json2 */
if(!this.JSON){this.JSON={};}
(function(){"use strict";function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key
){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJS
ON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u
2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600
-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uf
fff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','
"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return es
capable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];retu
rn typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);}
)+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(
value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.to
JSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFini
te(value)?String(value):'null';case'boolean':case'null':return String(value);cas
e'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Arra
y]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';
}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i]
;if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':
')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,v
alue);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,sp
ace){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){in
dent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='obje
ct'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;funct
ion walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'
){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!=
=undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function
(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').
replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').
replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver=
=='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}());
/* End of json2 */
/* Start of lazyload */
LazyLoad=function(){var f=document,g,b={},e={css:[],js:[]},a;function j(l,k){var
m=f.createElement(l),d;for(d in k){if(k.hasOwnProperty(d)){m.setAttribute(d,k[d
])}}return m}function h(d){var l=b[d];if(!l){return}var m=l.callback,k=l.urls;k.
shift();if(!k.length){if(m){m.call(l.scope||window,l.obj)}b[d]=null;if(e[d].leng
th){i(d)}}}function c(){if(a){return}var k=navigator.userAgent,l=parseFloat,d;a=
{gecko:0,ie:0,opera:0,webkit:0};d=k.match(/AppleWebKit\/(\S*)/);if(d&&d[1]){a.we
bkit=l(d[1])}else{d=k.match(/MSIE\s([^;]*)/);if(d&&d[1]){a.ie=l(d[1])}else{if((/
Gecko\/(\S*)/).test(k)){a.gecko=1;d=k.match(/rv:([^\s\)]*)/);if(d&&d[1]){a.gecko
=l(d[1])}}else{if(d=k.match(/Opera\/(\S*)/)){a.opera=l(d[1])}}}}}function i(r,q,
s,m,t){var n,o,l,k,d;c();if(q){q=q.constructor===Array?q:[q];if(r==="css"||a.gec
ko||a.opera){e[r].push({urls:[].concat(q),callback:s,obj:m,scope:t})}else{for(n=
0,o=q.length;n<o;++n){e[r].push({urls:[q[n]],callback:n===o-1?s:null,obj:m,scope
:t})}}}if(b[r]||!(k=b[r]=e[r].shift())){return}g=g||f.getElementsByTagName("head
")[0];q=k.urls;for(n=0,o=q.length;n<o;++n){d=q[n];if(r==="css"){l=j("link",{href
:d,rel:"stylesheet",type:"text/css"})}else{l=j("script",{src:d})}if(a.ie){l.onre
adystatechange=function(){var p=this.readyState;if(p==="loaded"||p==="complete")
{this.onreadystatechange=null;h(r)}}}else{if(r==="css"&&(a.gecko||a.webkit)){set
Timeout(function(){h(r)},50*o)}else{l.onload=l.onerror=function(){h(r)}}}g.appen
dChild(l)}}return{css:function(l,m,k,d){i("css",l,m,k,d)},js:function(l,m,k,d){i
("js",l,m,k,d)}}}();
/* End of lazyload */
/* Start of owa */ /* Start of owa */
var OWA={items:{},hooks:{actions:{},filters:{}},loadedJsLibs:{},overlay:'',confi g:{ns:'owa_',baseUrl:'',hashCookiesToDomain:true,debug:false},state:{},overlayAc tive:false,setSetting:function(name,value){return this.setOption(name,value);},g etSetting:function(name){return this.getOption(name);},setOption:function(name,v alue){this.config[name]=value;},getOption:function(name){return this.config[name ];},l:function(string){return string;},requireJs:function(name,url,callback){if( !this.isJsLoaded(name)){OWA.util.loadScript(url,callback);} var OWA={items:{},hooks:{actions:{},filters:{}},loadedJsLibs:{},overlay:'',confi g:{ns:'owa_',baseUrl:'',hashCookiesToDomain:true,debug:false},state:{},overlayAc tive:false,setSetting:function(name,value){return this.setOption(name,value);},g etSetting:function(name){return this.getOption(name);},setOption:function(name,v alue){this.config[name]=value;},getOption:function(name){return this.config[name ];},l:function(string){return string;},requireJs:function(name,url,callback){if( !this.isJsLoaded(name)){OWA.util.loadScript(url,callback);}
this.loadedJsLibs[name]=url;},isJsLoaded:function(name){if(this.loadedJsLibs.has OwnProperty(name)){return true;}},initializeStateManager:function(){if(!this.sta te.hasOwnProperty('init')){OWA.debug('initializing state manager...');this.state =new OWA.stateManager();}},registerStateStore:function(name,expiration,length,fo rmat){this.initializeStateManager();return this.state.registerStore(name,expirat ion,length,format);},checkForState:function(store_name){this.initializeStateMana ger();return this.state.isPresent(store_name);},setState:function(store_name,key ,value,is_perminant,format,expiration_days){this.initializeStateManager();return this.state.set(store_name,key,value,is_perminant,format,expiration_days);},repl aceState:function(store_name,value,is_perminant,format,expiration_days){this.ini tializeStateManager();return this.state.replaceStore(store_name,value,is_permina nt,format,expiration_days);},getStateFromCookie:function(store_name){this.initia lizeStateManager();return this.state.getStateFromCookie(store_name);},getState:f unction(store_name,key){this.initializeStateManager();return this.state.get(stor e_name,key);},clearState:function(store_name,key){this.initializeStateManager(); return this.state.clear(store_name,key);},getStateStoreFormat:function(store_nam e){this.initializeStateManager();return this.state.getStoreFormat(store_name);}, setStateStoreFormat:function(store_name,format){this.initializeStateManager();re turn this.state.setStoreFormat(store_name,format);},debug:function(){var debuggi ng=OWA.getSetting('debug')||false;if(debugging){if(window.console){if(console.lo g.apply){if(window.console.firebug){console.log.apply(this,arguments);}else{cons ole.log.apply(console,arguments);}}}}},setApiEndpoint:function(endpoint){this.co nfig['rest_api_endpoint']=endpoint;},getApiEndpoint:function(){return this.confi g['rest_api_endpoint']||this.getSetting('baseUrl')+'api/';},loadHeatmap:function (p){var that=this;OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/j s/includes/jquery/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSet ting('baseUrl')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadS cript(OWA.getSetting('baseUrl')+'/modules/base/js/owa.heatmap.js',function(){tha t.overlay=new OWA.heatmap();that.overlay.options.liveMode=true;that.overlay.gene rate();});},loadPlayer:function(){var that=this;OWA.debug("Loading Domstream Pla yer");OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/js/includes/j query/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSetting('baseUr l')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadScript(OWA.ge tSetting('baseUrl')+'/modules/base/js/owa.player.js',function(){that.overlay=new OWA.player();});},startOverlaySession:function(p){OWA.overlayActive=true;if(p.h asOwnProperty('api_url')){OWA.setApiEndpoint(p.api_url);} this.loadedJsLibs[name]=url;},isJsLoaded:function(name){if(this.loadedJsLibs.has OwnProperty(name)){return true;}},initializeStateManager:function(){if(!this.sta te.hasOwnProperty('init')){OWA.debug('initializing state manager...');this.state =new OWA.stateManager();}},registerStateStore:function(name,expiration,length,fo rmat){this.initializeStateManager();return this.state.registerStore(name,expirat ion,length,format);},checkForState:function(store_name){this.initializeStateMana ger();return this.state.isPresent(store_name);},setState:function(store_name,key ,value,is_perminant,format,expiration_days){this.initializeStateManager();return this.state.set(store_name,key,value,is_perminant,format,expiration_days);},repl aceState:function(store_name,value,is_perminant,format,expiration_days){this.ini tializeStateManager();return this.state.replaceStore(store_name,value,is_permina nt,format,expiration_days);},getStateFromCookie:function(store_name){this.initia lizeStateManager();return this.state.getStateFromCookie(store_name);},getState:f unction(store_name,key){this.initializeStateManager();return this.state.get(stor e_name,key);},clearState:function(store_name,key){this.initializeStateManager(); return this.state.clear(store_name,key);},getStateStoreFormat:function(store_nam e){this.initializeStateManager();return this.state.getStoreFormat(store_name);}, setStateStoreFormat:function(store_name,format){this.initializeStateManager();re turn this.state.setStoreFormat(store_name,format);},debug:function(){var debuggi ng=OWA.getSetting('debug')||false;if(debugging){if(window.console){if(console.lo g.apply){if(window.console.firebug){console.log.apply(this,arguments);}else{cons ole.log.apply(console,arguments);}}}}},setApiEndpoint:function(endpoint){this.co nfig['rest_api_endpoint']=endpoint;},getApiEndpoint:function(){return this.confi g['rest_api_endpoint']||this.getSetting('baseUrl')+'api/';},loadHeatmap:function (p){var that=this;OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/j s/includes/jquery/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSet ting('baseUrl')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadS cript(OWA.getSetting('baseUrl')+'/modules/base/js/owa.heatmap.js',function(){tha t.overlay=new OWA.heatmap();that.overlay.options.liveMode=true;that.overlay.gene rate();});},loadPlayer:function(){var that=this;OWA.debug("Loading Domstream Pla yer");OWA.util.loadScript(OWA.getSetting('baseUrl')+'/modules/base/js/includes/j query/jquery-1.6.4.min.js',function(){});OWA.util.loadCss(OWA.getSetting('baseUr l')+'/modules/base/css/owa.overlay.css',function(){});OWA.util.loadScript(OWA.ge tSetting('baseUrl')+'/modules/base/js/owa.player.js',function(){that.overlay=new OWA.player();});},startOverlaySession:function(p){OWA.overlayActive=true;if(p.h asOwnProperty('api_url')){OWA.setApiEndpoint(p.api_url);}
var params=p;if(params.action==='loadHeatmap'){this.loadHeatmap(p);}else if(para ms.action==='loadPlayer'){this.loadPlayer(p);}},endOverlaySession:function(){OWA .util.eraseCookie(OWA.getSetting('ns')+'overlay',document.domain);OWA.overlayAct ive=false;},addFilter:function(tag,callback,priority){if("undefined"===typeof pr iority){priority=10;} var params=p;if(params.action==='loadHeatmap'){this.loadHeatmap(p);}else if(para ms.action==='loadPlayer'){this.loadPlayer(p);}},endOverlaySession:function(){OWA .util.eraseCookie(OWA.getSetting('ns')+'overlay',document.domain);OWA.overlayAct ive=false;},addFilter:function(tag,callback,priority){if("undefined"===typeof pr iority){priority=10;}
this.hooks.filters[tag]=this.hooks.filters[tag]||[];this.hooks.filters[tag].push ({priority:priority,callback:callback});},addAction:function(tag,callback,priori ty){OWA.debug('Adding Action callback for: '+tag);if(typeof priority==="undefine d"){priority=10;} this.hooks.filters[tag]=this.hooks.filters[tag]||[];this.hooks.filters[tag].push ({priority:priority,callback:callback});},addAction:function(tag,callback,priori ty){OWA.debug('Adding Action callback for: '+tag);if(typeof priority==="undefine d"){priority=10;}
this.hooks.actions[tag]=this.hooks.actions[tag]||[];this.hooks.actions[tag].push ({priority:priority,callback:callback});},applyFilters:function(tag,value,option s){OWA.debug('Filtering '+tag+' with value:');OWA.debug(value);var filters=[];if ("undefined"!==typeof this.hooks.filters[tag]&&this.hooks.filters[tag].length>0) {OWA.debug('Applying filters for '+tag);this.hooks.filters[tag].forEach(function (hook){filters[hook.priority]=filters[hook.priority]||[];filters[hook.priority]. push(hook.callback);});filters.forEach(function(hooks){hooks.forEach(function(ca llback){value=callback(value,options);OWA.debug('Filter returned value: ');OWA.d ebug(value);});});} this.hooks.actions[tag]=this.hooks.actions[tag]||[];this.hooks.actions[tag].push ({priority:priority,callback:callback});},applyFilters:function(tag,value,option s){OWA.debug('Filtering '+tag+' with value:');OWA.debug(value);var filters=[];if ("undefined"!==typeof this.hooks.filters[tag]&&this.hooks.filters[tag].length>0) {OWA.debug('Applying filters for '+tag);this.hooks.filters[tag].forEach(function (hook){filters[hook.priority]=filters[hook.priority]||[];filters[hook.priority]. push(hook.callback);});filters.forEach(function(hooks){hooks.forEach(function(ca llback){value=callback(value,options);OWA.debug('Filter returned value: ');OWA.d ebug(value);});});}
return value;},doAction:function(tag,options){OWA.debug('Doing Action: '+tag);va r actions=[];if("undefined"!==typeof this.hooks.actions[tag]&&this.hooks.actions [tag].length>0){OWA.debug(this.hooks.actions[tag]);this.hooks.actions[tag].forEa ch(function(hook){actions[hook.priority]=actions[hook.priority]||[];actions[hook .priority].push(hook.callback);});actions.forEach(function(hooks){OWA.debug('Exe cuting Action callabck for: '+tag);hooks.forEach(function(callback){callback(opt ions);});});}},removeAction:function(tag,callback){this.hooks.actions[tag]=this. hooks.actions[tag]||[];this.hooks.actions[tag].forEach(function(filter,i){if(fil ter.callback===callback){this.hooks.actions[tag].splice(i,1);}});},removeFilter: function(tag,callabck){this.hooks.filters[tag]=this.hooks.filters[tag]||[];this. hooks.filters[tag].forEach(function(filter,i){if(filter.callback===callback){thi s.hooks.filters[tag].splice(i,1);}});}} return value;},doAction:function(tag,options){OWA.debug('Doing Action: '+tag);va r actions=[];if("undefined"!==typeof this.hooks.actions[tag]&&this.hooks.actions [tag].length>0){OWA.debug(this.hooks.actions[tag]);this.hooks.actions[tag].forEa ch(function(hook){actions[hook.priority]=actions[hook.priority]||[];actions[hook .priority].push(hook.callback);});actions.forEach(function(hooks){OWA.debug('Exe cuting Action callabck for: '+tag);hooks.forEach(function(callback){callback(opt ions);});});}},removeAction:function(tag,callback){this.hooks.actions[tag]=this. hooks.actions[tag]||[];this.hooks.actions[tag].forEach(function(filter,i){if(fil ter.callback===callback){this.hooks.actions[tag].splice(i,1);}});},removeFilter: function(tag,callabck){this.hooks.filters[tag]=this.hooks.filters[tag]||[];this. hooks.filters[tag].forEach(function(filter,i){if(filter.callback===callback){thi s.hooks.filters[tag].splice(i,1);}});}}
OWA.stateManager=function(){this.cookies=OWA.util.readAllCookies();this.init=tru e;};OWA.stateManager.prototype={init:false,cookies:'',stores:{},storeFormats:{}, storeMeta:{},registerStore:function(name,expiration,length,format){this.storeMet a[name]={'expiration':expiration,'length':length,'format':format};},getExpiratio nDays:function(store_name){if(this.storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].expiration;}},getFormat:function(store_name){if(this. storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].format;} },isPresent:function(store_name){if(this.stores.hasOwnProperty(store_name)){retu rn true;}},set:function(store_name,key,value,is_perminant,format,expiration_days ){if(!this.isPresent(store_name)){this.load(store_name);} OWA.stateManager=function(){this.cookies=OWA.util.readAllCookies();this.init=tru e;};OWA.stateManager.prototype={init:false,cookies:'',stores:{},storeFormats:{}, storeMeta:{},registerStore:function(name,expiration,length,format){this.storeMet a[name]={'expiration':expiration,'length':length,'format':format};},getExpiratio nDays:function(store_name){if(this.storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].expiration;}},getFormat:function(store_name){if(this. storeMeta.hasOwnProperty(store_name)){return this.storeMeta[store_name].format;} },isPresent:function(store_name){if(this.stores.hasOwnProperty(store_name)){retu rn true;}},set:function(store_name,key,value,is_perminant,format,expiration_days ){if(!this.isPresent(store_name)){this.load(store_name);}
skipping to change at line 75 skipping to change at line 36
var anchor=this.getAnchor();if(anchor){url+='#'+anchor;} var anchor=this.getAnchor();if(anchor){url+='#'+anchor;}
url+=this.getAnchor();return url;}};OWA.util={ns:function(string){return OWA.con fig.ns+string;},nsAll:function(obj){var nsObj=new Object();for(param in obj){if( obj.hasOwnProperty(param)){nsObj[OWA.config.ns+param]=obj[param];}} url+=this.getAnchor();return url;}};OWA.util={ns:function(string){return OWA.con fig.ns+string;},nsAll:function(obj){var nsObj=new Object();for(param in obj){if( obj.hasOwnProperty(param)){nsObj[OWA.config.ns+param]=obj[param];}}
return nsObj;},getScript:function(file,path){jQuery.getScript(path+file);return; },makeUrl:function(template,uri,params){var url=jQuery.sprintf(template,uri,jQue ry.param(OWA.util.nsAll(params)));return url;},createCookie:function(name,value, days,domain){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*6 0*60*1000));var expires="; expires="+date.toGMTString();} return nsObj;},getScript:function(file,path){jQuery.getScript(path+file);return; },makeUrl:function(template,uri,params){var url=jQuery.sprintf(template,uri,jQue ry.param(OWA.util.nsAll(params)));return url;},createCookie:function(name,value, days,domain){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*6 0*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";},setCooki e:function(name,value,days,path,domain,secure){var date=new Date();date.setTime( date.getTime()+(days*24*60*60*1000));document.cookie=name+"="+escape(value)+ else var expires="";document.cookie=name+"="+value+expires+"; path=/";},setCooki e:function(name,value,days,path,domain,secure){var date=new Date();date.setTime( date.getTime()+(days*24*60*60*1000));document.cookie=name+"="+escape(value)+
((days)?"; expires="+date.toGMTString():"")+ ((days)?"; expires="+date.toGMTString():"")+
((path)?"; path="+path:"")+ ((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+ ((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");},readAllCookies:function(){OWA.debug('Reading all cook ies...');var jar={};var ca=document.cookie.split(';');if(ca){OWA.debug(document. cookie);for(var i=0;i<ca.length;i++){var cat=OWA.util.trim(ca[i]);var pos=OWA.ut il.strpos(cat,'=');var key=cat.substring(0,pos);var value=cat.substring(pos+1,ca t.length);if(!jar.hasOwnProperty(key)){jar[key]=[];} ((secure)?"; secure":"");},readAllCookies:function(){OWA.debug('Reading all cook ies...');var jar={};var ca=document.cookie.split(';');if(ca){OWA.debug(document. cookie);for(var i=0;i<ca.length;i++){var cat=OWA.util.trim(ca[i]);var pos=OWA.ut il.strpos(cat,'=');var key=cat.substring(0,pos);var value=cat.substring(pos+1,ca t.length);if(!jar.hasOwnProperty(key)){jar[key]=[];}
jar[key].push(value);} jar[key].push(value);}
OWA.debug(JSON.stringify(jar));return jar;}},readCookie:function(name){OWA.debug ('Attempting to read cookie: %s',name);var jar=OWA.util.readAllCookies();if(jar) {if(jar.hasOwnProperty(name)){return jar[name];}else{return'';}}},eraseCookie:fu nction(name,domain){OWA.debug(document.cookie);if(!domain){domain=OWA.getSetting ('cookie_domain')||document.domain;} OWA.debug(JSON.stringify(jar));return jar;}},readCookie:function(name){OWA.debug ('Attempting to read cookie: %s',name);var jar=OWA.util.readAllCookies();if(jar) {if(jar.hasOwnProperty(name)){return jar[name];}else{return'';}}},eraseCookie:fu nction(name,domain){OWA.debug(document.cookie);if(!domain){domain=OWA.getSetting ('cookie_domain')||document.domain;}
OWA.debug("erasing cookie: "+name+" in domain: "+domain);this.setCookie(name,"", OWA.debug("erasing cookie: "+name+" in domain: "+domain);this.setCookie(name,"",
-1,"/",domain);var test=OWA.util.readCookie(name);if(test){var period=domain.sub -1,"/",domain);var test=OWA.util.readCookie(name);if(test){var period=domain.sub
str(0,1);OWA.debug('period: '+period);if(period==='.'){var domain2=domain.substr str(0,1);OWA.debug('period: '+period);if(period==='.'){var domain2=domain.substr
(1);OWA.debug("erasing "+name+" in domain2: "+domain2);this.setCookie(name,"",-2 (1);OWA.debug("erasing "+name+" in domain2: "+domain2);this.setCookie(name,"",-2
,"/",domain2);}else{OWA.debug("erasing "+name+" in domain3: "+domain);this.setCo ,"/",domain2);}else{OWA.debug("erasing "+name+" in domain3: "+domain);this.setCo
okie(name,"",-2,"/",domain);}}},eraseMultipleCookies:function(names,domain){for( okie(name,"",-2,"/",domain);}}},eraseMultipleCookies:function(names,domain){for(
var i=0;i<names.length;i++){this.eraseCookie(names[i],domain);}},loadScript:func var i=0;i<names.length;i++){this.eraseCookie(names[i],domain);}},loadScript:func
tion(url,callback){return LazyLoad.js(url,callback);},loadCss:function(url,callb tion(url,callback){var script=document.createElement("script");script.type="text
ack){return LazyLoad.css(url,callback);},parseCookieString:function parseQuery(v /javascript";if(script.readyState){script.onreadystatechange=function(){if(scrip
){var queryAsAssoc=new Array();var queryString=unescape(v);var keyValues=querySt t.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange
ring.split("|||");for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var ke =null;callback();}};}else{script.onload=function(){callback();};}
y=keyValues[i].split("=>");queryAsAssoc[key[0]]=key[1];}} script.src=url;document.getElementsByTagName("head")[0].appendChild(script);},lo
adCss:function(url,callback){var link=document.createElement('link');link.rel='s
tylesheet';link.type='text/css';link.href=url;document.getElementsByTagName('HEA
D')[0].appendChild(link);},parseCookieString:function parseQuery(v){var queryAsA
ssoc=new Array();var queryString=unescape(v);var keyValues=queryString.split("||
|");for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[i]
.split("=>");queryAsAssoc[key[0]]=key[1];}}
return queryAsAssoc;},parseCookieStringToJson:function parseQuery(v){var queryAs Obj=new Object;var queryString=unescape(v);var keyValues=queryString.split("|||" );for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[i].s plit("=>");queryAsObj[key[0]]=key[1];}} return queryAsAssoc;},parseCookieStringToJson:function parseQuery(v){var queryAs Obj=new Object;var queryString=unescape(v);var keyValues=queryString.split("|||" );for(var i in keyValues){if(keyValues.hasOwnProperty(i)){var key=keyValues[i].s plit("=>");queryAsObj[key[0]]=key[1];}}
return queryAsObj;},nsParams:function(obj){var new_obj=new Object;for(param in o bj){if(obj.hasOwnProperty(param)){new_obj[OWA.getSetting('ns')+param]=obj[param] ;}} return queryAsObj;},nsParams:function(obj){var new_obj=new Object;for(param in o bj){if(obj.hasOwnProperty(param)){new_obj[OWA.getSetting('ns')+param]=obj[param] ;}}
return new_obj;},urlEncode:function(str){str=(str+'').toString();return encodeUR IComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').rep lace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');},urldecode:function( str){return decodeURIComponent(str.replace(/\+/g,'%20'));},parseUrlParams:functi on(url){var _GET={};for(var i,a,m,n,o,v,p=location.href.split(/[?&]/),l=p.length ,k=1;k<l;k++) return new_obj;},urlEncode:function(str){str=(str+'').toString();return encodeUR IComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').rep lace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');},urldecode:function( str){return decodeURIComponent(str.replace(/\+/g,'%20'));},parseUrlParams:functi on(url){var _GET={};for(var i,a,m,n,o,v,p=location.href.split(/[?&]/),l=p.length ,k=1;k<l;k++)
if((m=p[k].match(/(.*?)(\..*?|\[.*?\])?=([^#]*)/))&&m.length==4){n=decodeURI(m[1 ]).toLowerCase(),o=_GET,v=decodeURI(m[3]);if(m[2]) if((m=p[k].match(/(.*?)(\..*?|\[.*?\])?=([^#]*)/))&&m.length==4){n=decodeURI(m[1 ]).toLowerCase(),o=_GET,v=decodeURI(m[3]);if(m[2])
for(a=decodeURI(m[2]).replace(/\[\s*\]/g,"[-1]").split(/[\.\[\]]/),i=0;i<a.lengt h;i++) for(a=decodeURI(m[2]).replace(/\[\s*\]/g,"[-1]").split(/[\.\[\]]/),i=0;i<a.lengt h;i++)
o=o[n]?o[n]:o[n]=(parseInt(a[i])==a[i])?[]:{},n=a[i].replace(/^["\'](.*)["\']$/, "$1");n!='-1'?o[n]=v:o[o.length]=v;} o=o[n]?o[n]:o[n]=(parseInt(a[i])==a[i])?[]:{},n=a[i].replace(/^["\'](.*)["\']$/, "$1");n!='-1'?o[n]=v:o[o.length]=v;}
return _GET;},strpos:function(haystack,needle,offset){var i=(haystack+'').indexO f(needle,(offset||0));return i===-1?false:i;},strCountOccurances:function(haysta ck,needle){return haystack.split(needle).length-1;},implode:function(glue,pieces ){var i='',retVal='',tGlue='';if(arguments.length===1){pieces=glue;glue='';} return _GET;},strpos:function(haystack,needle,offset){var i=(haystack+'').indexO f(needle,(offset||0));return i===-1?false:i;},strCountOccurances:function(haysta ck,needle){return haystack.split(needle).length-1;},implode:function(glue,pieces ){var i='',retVal='',tGlue='';if(arguments.length===1){pieces=glue;glue='';}
if(typeof(pieces)==='object'){if(pieces instanceof Array){return pieces.join(glu e);} if(typeof(pieces)==='object'){if(pieces instanceof Array){return pieces.join(glu e);}
else{for(i in pieces){retVal+=tGlue+pieces[i];tGlue=glue;} else{for(i in pieces){retVal+=tGlue+pieces[i];tGlue=glue;}
return retVal;}} return retVal;}}
 End of changes. 2 change blocks. 
99 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)