Seditio Source
Root |
./othercms/xenForo 2.2.8/js/xf/preamble.min.js
'use strict';var XF=window.XF||{};
!function(l,h){var k=h.documentElement,n=k.getAttribute("data-cookie-prefix")||"",p=k.getAttribute("data-app"),q="true"===k.getAttribute("data-logged-in");k.addEventListener("error",function(b){b=b.target;switch(b.getAttribute("data-onerror")){case "hide":b.style.display="none";break;case "hide-parent":b.parentNode.style.display="none"}},!0);XF.Feature=function(){function b(c){var e=k.className;g&&(e=e.replace(/(^|\s)has-no-js($|\s)/,"$1has-js$2"),g=!1);c.length&&(e+=" "+c.join(" "));k.className=
e}var a={touchevents:function(){return"ontouchstart"in l||l.DocumentTouch&&h instanceof DocumentTouch},passiveeventlisteners:function(){var c=!1;try{var e=Object.defineProperty({},"passive",{get:function(){c=!0}}),f=function(){};l.addEventListener("test",f,e);l.removeEventListener("test",f,e)}catch(m){}return c},hiddenscroll:function(){var c=h.body,e=!1;c||(c=h.createElement("body"),h.body=c,e=!0);var f=h.createElement("div");f.style.width="100px";f.style.height="100px";f.style.overflow="scroll";
f.style.position="absolute";f.style.top="-9999px";c.appendChild(f);var m=f.offsetWidth===f.clientWidth;e?c.parentNode.removeChild(c):f.parentNode.removeChild(f);return m},overflowanchor:function(){return"CSS"in l&&"supports"in l.CSS&&l.CSS.supports("overflow-anchor","auto")}},d={},g=!0;return{runTests:function(){var c=[],e;for(e in a)if(a.hasOwnProperty(e)&&"undefined"===typeof d[e]){var f=!!a[e]();c.push("has-"+(f?"":"no-")+e);d[e]=f}b(c)},runTest:function(c,e){e=!!e();b(["has-"+(e?"":"no-")+c]);
d[c]=e},has:function(c){return"undefined"===typeof d[c]?(console.error("Asked for unknown test results: "+c),!1):d[c]}}}();XF.Feature.runTests();"public"!==p||q||function(){var b=(b=(b=(new RegExp("(^| )"+n+"notice_dismiss=([^;]+)(;|$)")).exec(h.cookie))?decodeURIComponent(b[2]):null)?b.split(","):[];for(var a,d=[],g=0;g<b.length;g++)a=parseInt(b[g],10),0!==a&&d.push('.notice[data-notice-id="'+a+'"]');d.length&&(b=d.join(", ")+" { display: none !important } ",a=h.createElement("style"),a.type="text/css",
a.innerHTML=b,h.head.appendChild(a))}();(function(){var b=navigator.userAgent.toLowerCase(),a;if(a=/trident\/.*rv:([0-9.]+)/.exec(b))a={browser:"msie",version:parseFloat(a[1])};else{a=/(msie)[ \/]([0-9\.]+)/.exec(b)||/(edge)[ \/]([0-9\.]+)/.exec(b)||/(chrome)[ \/]([0-9\.]+)/.exec(b)||/(webkit)[ \/]([0-9\.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([0-9\.]+)/.exec(b)||0>b.indexOf("compatible")&&/(mozilla)(?:.*? rv:([0-9\.]+)|)/.exec(b)||[];if("webkit"==a[1]&&b.indexOf("safari")){var d=/version[ \/]([0-9\.]+)/.exec(b);
a=d?[a[0],"safari",d[1]]:(d=/ os ([0-9]+)_([0-9]+)/.exec(b))?[a[0],"safari",d[1]+"."+d[2]]:[a[0],"safari",0]}a={browser:a[1]||"",version:parseFloat(a[2])||0}}a.browser&&(a[a.browser]=!0);d="";var g=null,c;if(/(ipad|iphone|ipod)/.test(b)){if(d="ios",c=/os ([0-9_]+)/.exec(b))g=parseFloat(c[1].replace("_","."))}else(c=/android[ \/]([0-9\.]+)/.exec(b))?(d="android",g=parseFloat(c[1])):/windows /.test(b)?d="windows":/linux/.test(b)?d="linux":/mac os/.test(b)&&(d="mac",1<navigator.maxTouchPoints&&"MacIntel"===
navigator.platform&&(d="ios"));a.os=d;a.osVersion=g;d&&(a[d]=!0);k.className+=(a.os?" has-os-"+a.os:"")+(a.browser?" has-browser-"+a.browser:"");XF.browser=a})()}(window,document);