Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. ;window.CloudflareApps=window.Eager=window.CloudflareApps||window.Eager||{};window.CloudflareApps=window.CloudflareApps||{};CloudflareApps.siteId="1854c2c34a0e5c073c331009fec27b3c";CloudflareApps.installs=CloudflareApps.installs||{};;(function(){CloudflareApps.internal=CloudflareApps.internal||{};var errors=[];CloudflareApps.internal.placementErrors=errors;var errorHashes={}
  2. var noteError=function(options){var hash=options.selector+'::'+options.type+'::'+(options.installId||'');if(errorHashes[hash])
  3. return;errorHashes[hash]=true;errors.push(options);}
  4. var initializedSelectors={};var currentInit=false;CloudflareApps.internal.markSelectors=function(){if(!currentInit){check();currentInit=true;setTimeout(function(){currentInit=false;});}}
  5. var check=function(){var installs=window.CloudflareApps.installs;for(var installId in installs){if(!installs.hasOwnProperty(installId))
  6. continue;var selectors=installs[installId].selectors;if(!selectors)
  7. continue;for(var key in selectors){if(!selectors.hasOwnProperty(key))
  8. continue;var hash=installId+"::"+key;if(initializedSelectors[hash])
  9. continue;var els=document.querySelectorAll(selectors[key]);if(els&&els.length>1){noteError({type:'init:too-many',option:key,selector:selectors[key],installId:installId});initializedSelectors[hash]=true;continue;}else if(!els||!els.length){continue;}
  10. initializedSelectors[hash]=true;els[0].setAttribute('cfapps-selector',selectors[key]);}}}
  11. CloudflareApps.querySelector=function(selector){if(selector==='body'||selector==='head'){return document[selector];}
  12. CloudflareApps.internal.markSelectors();var els=document.querySelectorAll('[cfapps-selector="'+selector+'"]');if(!els||!els.length){noteError({type:'select:not-found:by-attribute',selector:selector});els=document.querySelectorAll(selector);if(!els||!els.length){noteError({type:'select:not-found:by-query',selector:selector});return null;}else if(els.length>1){noteError({type:'select:too-many:by-query',selector:selector});}
  13. return els[0];}
  14. if(els.length>1){noteError({type:'select:too-many:by-attribute',selector:selector});}
  15. return els[0];}})();;(function(){var prevEls={};CloudflareApps.createElement=function(options,prevEl){CloudflareApps.internal.markSelectors();try{if(prevEl&&prevEl.parentNode){var replacedEl;if(prevEl.cfAppsElementId){replacedEl=prevEls[prevEl.cfAppsElementId];}
  16. if(replacedEl){prevEl.parentNode.replaceChild(replacedEl,prevEl);delete prevEls[prevEl.cfAppsElementId];}else{prevEl.parentNode.removeChild(prevEl);}}
  17. var element=document.createElement('cloudflare-app');var container;try{container=CloudflareApps.querySelector(options.selector);}catch(e){}
  18. if(!container){return element;}
  19. if(!container.parentNode&&(options.method=="after"||options.method=="before"||options.method=="replace")){return element;}
  20. if(container==document.body){if(options.method=="after")
  21. options.method="append";else if(options.method=="before")
  22. options.method="prepend";}
  23. switch(options.method){case"prepend":if(container.firstChild){container.insertBefore(element,container.firstChild);break;}
  24. case"append":container.appendChild(element);break;case"after":if(container.nextSibling){container.parentNode.insertBefore(element,container.nextSibling);}else{container.parentNode.appendChild(element);}
  25. break;case"before":container.parentNode.insertBefore(element,container);break;case"replace":try{id=element.cfAppsElementId=Math.random().toString(36);prevEls[id]=container;}catch(e){}
  26. container.parentNode.replaceChild(element,container);}
  27. return element;}catch(e){if(typeof console!=="undefined"&&typeof console.error!=="undefined"){console.error("Error creating Cloudflare Apps element",e);}}}})();;(function(){CloudflareApps.matchPage=function(patterns){if(!patterns||!patterns.length){return true;}
  28. if(window.CloudflareApps&&CloudflareApps.proxy&&CloudflareApps.proxy.originalURL){var url=CloudflareApps.proxy.originalURL.parsed;var loc=url.host+url.path;}else{var loc=document.location.host+document.location.pathname;}
  29. for(var i=0;i<patterns.length;i++){var re=new RegExp(patterns[i],'i');if(re.test(loc)){return true;}}
  30. return false;}})();;CloudflareApps.installs["yfFCZCbGXx7v"]={appId:"dvNRF2bh1fgh",scope:{}};;CloudflareApps.installs["yfFCZCbGXx7v"].options={"theme":"without"};(function(){var script = document.createElement('script');script.src = '/cdn-cgi/apps/body/ZTTyBi16UEwOksk_SNFgO2X8xT4.js';document.head.appendChild(script);})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement