Dallas Renagades


base url needs to change to this // Internal publish link: http://demo.stage.storied.co/app-name => base url can change to this url var baseUrl = baseElement.getAttribute(‘href’); // Only change the base url for previewed apps or apps that have a sub folder custom domain. eg: // http://stage.storied.co/projects/a8bd1d22b98ad422b308dfa0d3ca7446/ // http://custom-domain.com/some-folder-for-seo/app-name // Regular custom domains should not be rewritten. eg: // http://custom-domain.com/app-name if (baseUrl !== “/”) { baseElement.href = window.location.pathname.substring(0, window.location.pathname.indexOf(baseUrl) + baseUrl.length); // http://cnet.com/app-name/ } } // This string gets replaced by Grunt if there is an override in cfg.json. var baseOverride = ‘%base_override%’; // Only the first instance will get replaced // config.json override has priority over every other base href, except prerender. if (baseOverride !== (‘%base_override%’) && navigator.userAgent.indexOf(‘Prerender’) === -1) { var baseTagElement = document.querySelector(‘base’); var headElement = document.querySelector(‘head’); if (baseTagElement) { headElement.removeChild(baseTagElement); } var newBaseElement = document.createElement(‘base’); newBaseElement.href = baseOverride; headElement.appendChild(newBaseElement); } window.prerenderReady = false; ]]> window.innerWidth ? ‘phone’ : ‘desktop’; } data.device_category = window.n2.device_category; data.page_url = encodeURI(window.location.href); data.load_time = new Date().getTime() – startTime; img.addEventListener(‘error’, function (err) { console.warn(‘Failed to report event: ‘, err) }); img.src = getLambdaAnalyticsUrl() + Date.now() + ‘&data=’ + encodeURIComponent(JSON.stringify(data)); } catch (err) { console.error(‘Failed to send event to the analytics service: ‘ + eventType); } }; const generateProjectSession = function () { var url = window.location.href; var preview = false; var storied = [‘cloud.storied.co’, ‘n2ps.storied.co’, ‘stage.storied.co’, ‘fedev.storied.co’, ‘dev.storied.co’]; for (let index = 0; index >a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,b)} var pageViewGuid = b(); /* ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! =============== Adobe Visitor API for JavaScript version: 1.5.2 Copyright 1996-2015 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com */ function Visitor(m,s){if(!m)throw”Visitor requires Adobe Marketing Cloud Org ID”;var a=this;a.version=”1.5.2″;var l=window,j=l.Visitor;l.s_c_in||(l.s_c_il=[],l.s_c_in=0);a._c=”Visitor”;a._il=l.s_c_il;a._in=l.s_c_in;a._il[a._in]=a;l.s_c_in++;var n=l.document,h=j.Ka;h||(h=null);var x=j.La;x||(x=void 0);var i=j.ja;i||(i=!0);var k=j.Ja;k||(k=!1);a.S=function(a){var c=0,b,e;if(a)for(b=0;ba;a++)f=Math.floor(Math.random()*i),b+=c.substring(f,f+1),0==a&&9==f?i=3:(1==a||2==a)&&10!=i&&2>f?i=10:2f?h=10:2=c[b].length&&(2==c[b-1].length||0>”,ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,et,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,nz,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,”.indexOf(“,”+ c[b]+”,”))&&e–;if(0=e;)a=c[b]+(a?”.”:””)+a,b–}return a};a.cookieRead=function(a){var a=encodeURIComponent(a),c=(“;”+n.cookie).split(” “).join(“;”),b=c.indexOf(“;”+a+”=”),e=0>b?b:c.indexOf(“;”,b+1);return 0>b?””:decodeURIComponent(c.substring(b+2+a.length,0>e?c.length:e))};a.cookieWrite=function(d,c,b){var e=a.cookieLifetime,f,c=””+c,e=e?(“”+e).toUpperCase():””;b&&”SESSION”!=e&&”NONE”!=e?(f=””!=c?parseInt(e?e:0,10):-60)?(b=new Date,b.setTime(b.getTime()+1E3*f)):1==b&&(b=new Date,f= b.getYear(),b.setYear(f+2+(1900>f?1900:0))):b=0;return d&&”NONE”!=e?(n.cookie=encodeURIComponent(d)+”=”+encodeURIComponent(c)+”; path=/;”+(b?” expires=”+b.toGMTString()+”;”:””)+(a.cookieDomain?” domain=”+a.cookieDomain+”;”:””),a.cookieRead(d)==c):0};a.g=h;a.O=function(a,c){try{“function”==typeof a?a.apply(l,c):a[1].apply(a[0],c)}catch(b){}};a.qa=function(d,c){c&&(a.g==h&&(a.g={}),a.g[d]==x&&(a.g[d]=[]),a.g[d].push(c))};a.o=function(d,c){if(a.g!=h){var b=a.g[d];if(b)for(;0g;){try{e=(e=n.getElementsByTagName(0c?(a.d||(a.d={}),a.d[d]=i):a.d&&(a.d[d]=k)};a.Q=function(a){if(a&&(“object”==typeof a&&(a=a.d_mid?a.d_mid:a.visitorID?a.visitorID:a.id?a.id:a.uuid?a.uuid:””+a),a&&(a=a.toUpperCase(),”NOTARGET”==a&&(a=r)),!a||a!=r&&!a.match(/^[0-9a-fA-F-]+$/)))a=””;return a};a.i=function(d,c){a.ka(d);a.h!=h&&(a.h[d]=k);if(d==z){var b=a.b(q);if(!b){b=”object”==typeof c&&c.mid?c.mid:a.Q(c);if(!b){if(a.u){a.getAnalyticsVisitorID(h,k,i);return}b=a.q()}a.c(q, b)}if(!b||b==r)b=””;”object”==typeof c&&((c.d_region||c.dcs_region||c.d_blob||c.blob)&&a.i(w,c),a.u&&c.mid&&a.i(y,{id:c.id}));a.o(q,[b])}if(d==w&&”object”==typeof c){b=604800;c.id_sync_ttl!=x&&c.id_sync_ttl&&(b=parseInt(c.id_sync_ttl,10));var e=a.b(v);e||((e=c.d_region)||(e=c.dcs_region),e&&(a.l(v,b),a.c(v,e)));e||(e=””);a.o(v,[e]);e=a.b(p);if(c.d_blob||c.blob)(e=c.d_blob)||(e=c.blob),a.l(p,b),a.c(p,e);e||(e=””);a.o(p,[e]);!c.error_msg&&a.s&&a.c(A,a.s);a.idSyncDisableSyncs?t.ba=i:(t.ba=k,b={},b.ibs= c.ibs,b.subdomain=c.subdomain,t.Ha(b))}if(d==y){b=a.b(o);b||((b=a.Q(c))?a.l(p,-1):b=r,a.c(o,b));if(!b||b==r)b=””;a.o(o,[b])}};a.h=h;a.r=function(d,c,b,e){var f=””,g;if(a.isAllowed()&&(a.f(),f=a.b(d),!f&&(d==q?g=z:d==v||d==p?g=w:d==o&&(g=y),g))){if(c&&(a.h==h||!a.h[g]))a.h==h&&(a.h={}),a.h[g]=i,a.oa(g,c,function(){if(!a.b(d)){var b=””;d==q?b=a.q():g==w&&(b={error_msg:”timeout”});a.i(g,b)}});a.qa(d,b);c||a.i(g,{id:r});return””}if((d==q||d==o)&&f==r)f=””,e=i;b&&e&&a.O(b,[f]);return f};a._setMarketingCloudFields= function(d){a.f();a.i(z,d)};a.setMarketingCloudVisitorID=function(d){a._setMarketingCloudFields(d)};a.u=k;a.getMarketingCloudVisitorID=function(d,c){if(a.isAllowed()){a.marketingCloudServer&&0>a.marketingCloudServer.indexOf(“.demdex.net”)&&(a.u=i);var b=a.A(“_setMarketingCloudFields”);return a.r(q,b,d,c)}return””};a.pa=function(){a.getAudienceManagerBlob()};j.AuthState={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2};a.p={};a.P=k;a.s=””;a.setCustomerIDs=function(d){if(a.isAllowed()&&d){a.f();var c,b;for(c in d)if(!Object.prototype[c]&& (b=d[c]))if(“object”==typeof b){var e={};b.id&&(e.id=b.id);b.authState!=x&&(e.authState=b.authState);a.p[c]=e}else a.p[c]={id:b};var d=a.getCustomerIDs(),e=a.b(A),f=””;e||(e=0);for(c in d)Object.prototype[c]||(b=d[c],f+=(f?”|”:””)+c+”|”+(b.id?b.id:””)+(b.authState?b.authState:””));a.s=a.S(f);a.s!=e&&(a.P=i,a.pa())}};a.getCustomerIDs=function(){a.f();var d={},c,b;for(c in a.p)Object.prototype[c]||(b=a.p[c],d[c]||(d[c]={}),b.id&&(d[c].id=b.id),d[c].authState=b.authState!=x?b.authState:j.AuthState.UNKNOWN); return d};a._setAnalyticsFields=function(d){a.f();a.i(y,d)};a.setAnalyticsVisitorID=function(d){a._setAnalyticsFields(d)};a.getAnalyticsVisitorID=function(d,c,b){if(a.isAllowed()){var e=””;b||(e=a.getMarketingCloudVisitorID(function(){a.getAnalyticsVisitorID(d,i)}));if(e||b){var f=b?a.marketingCloudServer:a.trackingServer,g=””;a.loadSSL&&(b?a.marketingCloudServerSecure&&(f=a.marketingCloudServerSecure):a.trackingServerSecure&&(f=a.trackingServerSecure));f&&(g=”http”+(a.loadSSL?”s”:””)+”://”+f+”/id?d_visid_ver=”+ a.version+”&callback=s_c_il%5B”+a._in+”%5D._set”+(b?”MarketingCloud”:”Analytics”)+”Fields&mcorgid=”+encodeURIComponent(a.marketingCloudOrgID)+(e?”&mid=”+e:””));return a.r(b?q:o,g,d,c)}}return””};a._setAudienceManagerFields=function(d){a.f();a.i(w,d)};a.A=function(d){var c=a.audienceManagerServer,b=””,e=a.b(q),f=a.b(p,i),g=a.b(o),g=g&&g!=r?”&d_cid_ic=AVID%01″+encodeURIComponent(g):””;a.loadSSL&&a.audienceManagerServerSecure&&(c=a.audienceManagerServerSecure);if(c){var b=a.getCustomerIDs(),h,j;if(b)for(h in b)Object.prototype[h]|| (j=b[h],g+=”&d_cid_ic=”+encodeURIComponent(h)+”%01″+encodeURIComponent(j.id?j.id:””)+(j.authState?”%01″+j.authState:””));d||(d=”_setAudienceManagerFields”);b=”http”+(a.loadSSL?”s”:””)+”://”+c+”/id?d_visid_ver=”+a.version+”&d_rtbd=json&d_ver=2″+(!e&&a.u?”&d_verify=1″:””)+”&d_orgid=”+encodeURIComponent(a.marketingCloudOrgID)+”&d_nsid=”+(a.idSyncContainerID||0)+(e?”&d_mid=”+e:””)+(f?”&d_blob=”+encodeURIComponent(f):””)+g+”&d_cb=s_c_il%5B”+a._in+”%5D.”+d}return b};a.getAudienceManagerLocationHint=function(d, c){if(a.isAllowed()&&a.getMarketingCloudVisitorID(function(){a.getAudienceManagerLocationHint(d,i)})){var b=a.b(o);b||(b=a.getAnalyticsVisitorID(function(){a.getAudienceManagerLocationHint(d,i)}));if(b)return b=a.A(),a.r(v,b,d,c)}return””};a.getAudienceManagerBlob=function(d,c){if(a.isAllowed()&&a.getMarketingCloudVisitorID(function(){a.getAudienceManagerBlob(d,i)})){var b=a.b(o);b||(b=a.getAnalyticsVisitorID(function(){a.getAudienceManagerBlob(d,i)}));if(b)return b=a.A(),a.P&&a.l(p,-1),a.r(p,b,d, c)}return””};a.m=””;a.t={};a.C=””;a.D={};a.getSupplementalDataID=function(d,c){!a.m&&!c&&(a.m=a.q(1));var b=a.m;a.C&&!a.D[d]?(b=a.C,a.D[d]=i):b&&(a.t[d]&&(a.C=a.m,a.D=a.t,a.m=b=!c?a.q(1):””,a.t={}),b&&(a.t[d]=i));return b};var u={k:!!l.postMessage,ha:1,N:864E5};a.Ma=u;a.X={postMessage:function(a,c,b){var e=1;c&&(u.k?b.postMessage(a,c.replace(/([^:]+://[^/]+).*/,”$1″)):c&&(b.location=c.replace(/#.*$/,””)+”#”+ +new Date+e++ +”&”+a))},J:function(a,c){var b;try{if(u.k)if(a&&(b=function(b){if(“string”=== typeof c&&b.origin!==c||”[object Function]”===Object.prototype.toString.call(c)&&!1===c(b.origin))return!1;a(b)}),window.addEventListener)window[a?”addEventListener”:”removeEventListener”](“message”,b,!1);else window[a?”attachEvent”:”detachEvent”](“onmessage”,b)}catch(e){}}};var E={Y:function(){if(n.addEventListener)return function(a,c,b){a.addEventListener(c,function(a){“function”===typeof b&&b(a)},k)};if(n.attachEvent)return function(a,c,b){a.attachEvent(“on”+c,function(a){“function”===typeof b&& b(a)})}}(),map:function(a,c){if(Array.prototype.map)return a.map(c);if(void 0===a||a===h)throw new TypeError;var b=Object(a),e=b.length>>>0;if(“function”!==typeof c)throw new TypeError;for(var f=Array(e),g=0;gthis.M)for(a.sort(function(a,b){return parseInt(a.split(“-“)[1],10)-parseInt(b.split(“-“)[1],10)});a.join(“*”).length>this.M;)a.shift()},F:function(d){var c=encodeURIComponent;this.w.push((a.Oa?c(“—destpub-debug—“):c(“—destpub—“))+d)},ea:function(){var d=this,c;this.w.length?(c=this.w.shift(),a.X.postMessage(c,this.url,this.Aa.contentWindow), this.Da.push(c),setTimeout(function(){d.ea()},this.ca)):this.K=k},J:function(a){var c=/^—destpub-to-parent—/;”string”===typeof a&&c.test(a)&&(c=a.replace(c,””).split(“|”),”canSetThirdPartyCookies”===c[0]&&(this.$=”true”===c[1]?i:k,this.da=i,this.n()),this.Ea.push(a))},Ha:function(d){this.url===h&&(this.e=”string”===typeof a.W&&a.W.length?a.W:d.subdomain||””,this.url=this.za());d.ibs instanceof Array&&d.ibs.length&&(this.G=i);if((this.G||a.la)&&this.e&&”nosubdomainreturned”!==this.e&&!this.L)(j.ga|| “complete”===n.readyState||”loaded”===n.readyState)&&this.Z();”function”===typeof a.idSyncIDCallResult?a.idSyncIDCallResult(d):this.n(d);”function”===typeof a.idSyncAfterIDCallResult&&a.idSyncAfterIDCallResult(d)},ta:function(d,c){return a.Pa||!d||c-d>u.ha}};a.Na=t;0>m.indexOf(“@”)&&(m+=”@AdobeOrg”);a.marketingCloudOrgID=m;a.cookieName=”AMCV_”+m;a.cookieDomain=a.ma();a.cookieDomain==l.location.hostname&&(a.cookieDomain=””);a.loadSSL=0m.indexOf(“@”)&&(m+=”@AdobeOrg”);if(l)for(j=0;j>0;if(“function”!== typeof b)throw new TypeError;for(var f=Array(d),g=0;g>>0;if(“function”!==typeof b)throw new TypeError;for(var g=[],f=0;fb;b++)d=”+~!*()'”.substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,"%"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf("+")?a.replace(c,"+"," "):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.cookieDomain&& !/^[0-9.]+$/.test(c)&&(b=b?parseInt(b):2,b=2d?””:a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return”[[B]]”!=c?c:””};a.c_w=a.cookieWrite=function(c,b,d){var f=a.fb(),e=a.cookieLifetime,g;b=””+b;e=e?(“”+e).toUpperCase():””;d&&”SESSION”!= e&&”NONE”!=e&&((g=””!=b?parseInt(e?e:0):-60)?(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&”NONE”!=e?(a.d.cookie=c+”=”+a.escape(“”!=b?b:”[[B]]”)+”; path=/;”+(d&&”SESSION”!=e?” expires=”+d.toGMTString()+”;”:””)+(f?” domain=”+f+”;”:””),a.cookieRead(c)==b):0};a.G=[];a.ba=function(c,b,d){if(a.ta)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,m=[“webkitvisibilitychange”,”visibilitychange”]; g||(g=a.d.webkitVisibilityState);if(g&&”prerender”==g){if(!a.ca)for(a.ca=1,d=0;dc){a.G.unshift(d);setTimeout(a.delayReady, parseInt(a.maxDelay/2));break}a.ta=1;a[d.m].apply(a,d.a);a.ta=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ba(“setAccount”,arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(“,”)),a.allAccounts=[],b.sort(),d=0;dd?0:d)+”/”:””)+b);return b};a.H=function(c){var b=a.u(c),d,f,e=””,g=0;return b&& (d=c.protocol,f=c.onclick,!c.href||”A”!=b&&”AREA”!=b||f&&d&&!(0>d.toLowerCase().indexOf(“javascript”))?f?(e=a.replace(a.replace(a.replace(a.replace(“”+f,”r”,””),”n”,””),”t”,””),” “,””),g=2):”INPUT”==b||”SUBMIT”==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):c.src&&”IMAGE”==b&&(e=c.src):e=a.va(c),e)?{id:e.substring(0,100),type:g}:0};a.Ab=function(c){for(var b=a.u(c),d=a.H(c);c&&!d&&”BODY”!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.u(c),d=a.H(c); d&&”BODY”!=b||(c=0);c&&(b=c.onclick?””+c.onclick:””,0<=b.indexOf(".tl(")||0<=b.indexOf(".trackLink("))&&(c=0);return c};a.rb=function(){var c,b,d=a.linkObject,f=a.linkType,e=a.linkURL,g,m;a.ha=1;d||(a.ha=0,d=a.clickObject);if(d){c=a.u(d);for(b=a.H(d);d&&!b&&"BODY"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.u(d),b=a.H(d);b&&"BODY"!=c||(d=0);if(d){var p=d.onclick?""+d.onclick:"";if(0<=p.indexOf(".tl(")||0<=p.indexOf(".trackLink("))d=0}}else a.ha=1;!e&&d&&(e=a.va(d));e&&!a.linkLeaveQueryString&& (g=e.indexOf("?"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var n=0,r=0,q;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(p=e.toLowerCase(),g=p.indexOf("?"),m=p.indexOf("#"),0<=g?0<=m&&mv)return 0}return 1};a.M=function(c,b){var d,f,e,g,m,k;for(d=0;2>d;d++)for(f=0c.indexOf(“-“)){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),b+=”0123456789ABCDEF”.substring(f,f+1),f=Math.floor(Math.random()*e),d+=”0123456789ABCDEF”.substring(f,f+1),f=e=16;c=b+”-“+d}a.cookieWrite(“s_fid”,c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=”s”+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=”t=”+a.escape(f.getDate()+”/”+f.getMonth()+ “/”+(1900>g?g+1900:g)+” “+f.getHours()+”:”+f.getMinutes()+”:”+f.getSeconds()+” “+f.getDay()+” “+f.getTimezoneOffset());a.visitor&&(a.visitor.eb&&(a.authState=a.visitor.eb()),!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(“AppMeasurement:”+a._in,a.expectSupplementalData?!1:!0)));a.l(“_s”);a.Oa(c)||(b&&a.M(b),c&&(d={},a.Ga(d,0),a.M(c)),a.mb()&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.gb()),a.rb(),a.usePlugins&&a.doPlugins&& a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Ha||(a.referrer=r.document.referrer),a.Ha=1,a.referrer=a.cb(a.referrer),a.l(“_g”)),a.ib()&&!a.abort&&(a.jb(),g+=a.hb(),a.qb(e,g),a.l(“_t”),a.referrer=””))),c&&a.M(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e= a.lightProfileID=0};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.j=c,a.q=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;ca.J))try{k.localStorage.removeItem(a.ia()),a.Ba=a.r()}catch(c){}};a.Da=function(c){if(a.ka()){a.Fa();try{k.localStorage.setItem(a.ia(),k.JSON.stringify(c)),a.J=a.r()}catch(b){}}};a.Fa=function(){if(a.trackOffline){if(!a.offlineLimit||0>=a.offlineLimit)a.offlineLimit=10;for(;a.g.length>a.offlineLimit;)a.ua()}};a.forceOffline=function(){a.ja=!0};a.forceOnline=function(){a.ja=!1};a.ia= function(){return a.offlineFilename+”-“+a.visitorNamespace+a.account};a.r=function(){return(new Date).getTime()};a.ya=function(a){a=a.toLowerCase();return 0!=a.indexOf(“#”)&&0!=a.indexOf(“about:”)&&0!=a.indexOf(“opera:”)&&0!=a.indexOf(“javascript:”)?!0:!1};a.setTagContainer=function(c){var b,d,f;a.vb=c;for(b=0;b=n;n++)76>n&&(a.c.push(“prop”+n),a.K.push(“prop”+n)),a.c.push(“eVar”+n),a.K.push(“eVar”+n),6>n&&a.c.push(“hier”+n),4>n&&a.c.push(“list”+n);n=”latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage”.split(” “);a.c=a.c.concat(n);a.A=a.A.concat(n);a.ssl=0<=k.location.protocol.toLowerCase().indexOf("https");a.charSet="UTF-8";a.contextData={};a.offlineThrottleDelay=0;a.offlineFilename="AppMeasurement.offline"; a.Ca=0;a.fa=0;a.J=0;a.Ba=0;a.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";a.w=k;a.d=k.document;try{a.lb="Microsoft Internet Explorer"==navigator.appName}catch(y){}a.Z=function(){a.aa&&(k.clearTimeout(a.aa),a.aa=q);a.j&&a.F&&a.j.dispatchEvent(a.F);a.q&&("function"==typeof a.q?a.q():a.j&&a.j.href&&(a.d.location=a.j.href));a.j=a.F=a.q=0};a.Ea=function(){a.b=a.d.body;a.b?(a.p=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById("cppXYctnr")||c&&c["s_fe_"+a._in])){if(a.qa)if(a.useForcedLinkTracking)a.b.removeEventListener("click", a.p,!1);else{a.b.removeEventListener("click",a.p,!0);a.qa=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.I&&a.I==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||a.clickObject.parentNode))a.clickObject=0;else{var m=a.I=a.clickObject;a.ea&&(clearTimeout(a.ea),a.ea=0);a.ea=setTimeout(function(){a.I==m&&(a.I=0)},1E4);f=a.wa();a.track();if(f 0) events.push(“event57=” + videoTime); } else if (videoEvent == “video.progress.75”) { events.push(“event55”); events.push(“event59″); videoSegment=”3:M:50-75”; videoTime = Math.floor(videoLength / 4); if (videoTime > 0) events.push(“event57=” + videoTime); } else if (videoEvent == “video.progress.100”) { events.push(“event58”); events.push(“event59″); videoSegment=”4:M:75-100”; videoTime = Math.floor(videoLength / 4); if (videoTime > 0) events.push(“event57=” + videoTime); } var overrides = { eVar7: window.document.location.href, eVar8: window.document.title, eVar31: videoId, eVar25: videoTitle, events: events.join(), eVar38: “video”, eVar39: videoSegment, eVar32: “storied” } if (events.length > 0 ) { s.linkTrackVars=””; s.linkTrackEvents=””; s.tl(false, ‘o’, videoEvent, overrides); } } window.analytics.map = [ { event: ‘page.view’, engine: { name: ‘omniture’, variable: ‘s’, function: { name: ‘t’, arguments: [] } }, arguments: { ‘pageName’: ‘cnet: + window.document.location.pathname’, ‘channel’: ‘custom_fields.siteSection’, ‘hier1’: ‘cnet: + custom_fields.siteHier’, ‘products’: ‘custom_fields.productId’, ‘eVar1’: ‘custom_fields.brand’, ‘eVar2’: ‘custom_fields.siteEdition’, ‘eVar3’: { desktop: ‘responsive web|||desktop’, mobile: ‘responsive web|||mobile’ }, ‘eVar5’: ‘cbsicnetglobalsite’, ‘eVar6’: ‘D=h1’, ‘eVar7’: ‘window.document.location.href’, ‘eVar8’: ‘window.document.title’, ‘eVar10’: ‘custom_fields.pageType’, ‘eVar20’: ‘custom_fields.assetTitle’, ‘eVar22’: ‘storied_article’, ‘eVar23’: ‘custom_fields.topicId’, ‘eVar24’: ‘context.attributes.uuid’, ‘eVar27’: ‘custom_fields.collectionId’, ‘eVar30’: ‘custom_fields.assetId’, ‘eVar37’: ‘context.author’, ‘eVar56’: ‘custom_fields.productMfg’, ‘eVar64’: ‘custom_fields.productTitle’, ‘list3’: ‘context.author_id’ } }, { event: ‘article.scroll’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackArticleScroll’, arguments: [ ‘context.progress’ ] } }, arguments: {} }, { event: ‘video.play’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackVideoEvent’, arguments: [ ‘video.play’, ‘context.attributes.video-id’, ‘context.attributes.name’, ‘context.attributes.length’, ‘context.attributes.id’, ‘context.attributes.src’ ] } }, arguments: {} }, { event: ‘video.progress.25’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackVideoEvent’, arguments: [ ‘video.progress.25’, ‘context.attributes.video-id’, ‘context.attributes.name’, ‘context.attributes.length’ ] } }, arguments: {} }, { event: ‘video.progress.50’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackVideoEvent’, arguments: [ ‘video.progress.50’, ‘context.attributes.video-id’, ‘context.attributes.name’, ‘context.attributes.length’, ] } }, arguments: {} }, { event: ‘video.progress.75’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackVideoEvent’, arguments: [ ‘video.progress.75’, ‘context.attributes.video-id’, ‘context.attributes.name’, ‘context.attributes.length’ ] } }, arguments: {} }, { event: ‘video.progress.100’, engine: { name: ‘omniture’, variable: ‘om’, function: { name: ‘trackVideoEvent’, arguments: [ ‘video.progress.100’, ‘context.attributes.video-id’, ‘context.attributes.name’, ‘context.attributes.length’ ] } }, arguments: {} } ]; } catch (e) { console.error(‘Exception inside custom.js: ‘, e); } ]]>

Source