Skip to Content

JavaScript File

URL: https://amplify.outbrain.com/cp/obtp.js
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Mon, 28 Jun 2021 09:47:31 GMT
Download Time: Less than a second
Cookies: None
Size: 8 KB
HTTP Headers:  5 headers
Links In:  1 pages
  
OK Issues: No issues found

1try{!function(n,o,t,a){"use strict";function e(){}

2function i(e,n,t){var r=e[n];e[n]=function(){var e=r.apply(this,arguments);return t.apply(this,arguments),e}

3}

4function c(e){return"[object Array]"===Object.prototype.toString.call(e)}

5function r(){n.obApi.dispatch.apply(n.obApi,arguments)}

6var s="//tr.outbrain.com",d="PAGE_VIEW",u="product";r.version=n.obApi.version,r.loaded=n.obApi.loaded,r.marketerId=n.obApi.marketerId,r.queue=n.obApi.queue;var p=n.obApi=r;function f(e){var n,t,r,o=(m().split("?")[1]||"").split(/&/);for(n=0;n<o.length;n++)if(t=o[n],r=e,0===t.indexOf(r+"="))return o[n].split("=")[1].split("#")[0];return""}

7function m(){var n="";try{n=window.top.location.href||document.location.href}

8catch(e){n=document.location.href}

9return n||""}

10p.obtpVersion="1.5.1";var l,v,h,w,_,b,g,y,I,E,C={get:function(e){if(!document.cookie)return"";var n="";try{n=decodeURIComponent(document.cookie)}

11catch(e){}

12var t=n.indexOf(e+"=");if(t<0)return"";var r=t+(e+"=").length,o=n.indexOf(";",r),a=0<o?o:document.cookie.length;return n.substring(r,a)}

13,set:function(e,n,t,r){var o=new Date;o.setTime(o.getTime()+24*t*60*60*1e3);var a="expires="+o.toUTCString(),i=encodeURIComponent(e)+"="+encodeURIComponent(n)+"; "+a+"; path=/;";r&&(i+="domain="+r+";"),document.cookie=i}

14}

15,k=(w=h=!(v=[]),_=function(e,n){e.name;if(e.contentType===u&&n){var t=e.content&&e.content.id;t&&g(t,e.marketerId)}

16b.apply(null,arguments)}

17,b=function(e,n){var t=E(e);delete t.content,delete t.contentType,t.optOut=n?"false":"true";var r=n?function(){var e,n=f("ob_cvr_pixel_domain"),t=f("dicbo");e=t?(C.set("outbrain_click_id",t,1,n),t):C.get("outbrain_click_id");return e}

18():"";r&&(t.ob_click_id=r),(new o).src=s+"/unifiedPixel?"+y(t)+"&bust="+A()}

19,g=function(e,n){(new o).src="//dr.outbrain.com/pixel?mid="+n+"&pid="+e+"&bust="+A()}

20,y=function(e){var n=["dl","name"],t=[];for(var r in e)e.hasOwnProperty(r)&&(-1<n.indexOf(r)?t.push(r+"="+encodeURIComponent(e[r])):t.push(r+"="+e[r]));return t.join("&")}

21,I=function(e){for(var n=[],t={}

22,r=0;r<e.length;r++)t[e[r]]||n.push(e[r]),t[e[r]]=!0;return n}

23,E=function(e){var n={}

24;for(var t in e)n[t]=e[t];return n}

25,function(){var e=arguments;if(!e[1])throw new Error("can't dispatch pixel, event name is missing");var n=e[0],t=e[2]&&"object"==typeof e[2]?e[2]:{}

26;!1===c(p.marketerId)&&(p.marketerId=[p.marketerId]);var r=I(p.marketerId),o={}

27;for(var a in t)o[a]=t[a];switch(o.marketerId=r.toString(),o.obApiVersion=p.version,o.obtpVersion=p.obtpVersion,o.name=e[1].replace(/ /g,"-"),o.dl=m(),n){case"track":W(o,n),function(e){if(w)return _(e,l);v.push(e),h||(h=!0,P.checkHasConsent(function(e){for(w=!0,l=!!e;0<v.length;)_(v.shift(),l)}

28))}

29(o);break;default:T(T.LOG_TYPES.ERROR,"Command type "+n+" is not recognized",o.name)}

30}

31);function A(){return Math.random().toString().replace(".","")}

32obApi.dispatch=k;var R={hasConsent:function(){return!!window.__cmp||!!O()}

33,handleConsent:function(e){function r(){window.removeEventListener?window.removeEventListener("message",n,!1):window.detachEvent&&window.detachEvent("message",n,!1),e.apply(e,arguments)}

34var n=function(e){var n;try{n=e&&"string"==typeof e.data?JSON.parse(e.data):e.data}

35catch(e){r(!0)}

36n&&n.__cmpReturn&&o(r,n.__cmpReturn.returnValue,n.__cmpReturn.success)}

37,o=function(e,n,t){if((!t||!n||!n.vendorConsents||void 0===n.vendorConsents[164]||!0===n.vendorConsents[164])&&function(e){if(!e)return 1;var n=!0;for(var t in e)if(e.hasOwnProperty(t)&&(n=!1,e[t]))return 1;return n}

38(n.purposeConsents))return e(!0);e(!1)}

39;!function(t){if("function"==typeof window.__cmp)window.__cmp("getVendorConsents",[164],function(e,n){o(t,e,n)}

40);else{var e=O();if(window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent&&window.attachEvent("message",n,!1),!e)return r({msg:"CMP not found"}

...

</html>