Benchmark-DKbench
view release on metacpan or search on metacpan
data/wiki2.html view on Meta::CPAN
return v.toString(16);
});
}
function getEventParams() {
let computedPVNumber = pvNumber ? parseInt(pvNumber, 10) : 0;
let computedPVNumberGlobal = pvNumberGlobal ? parseInt(pvNumberGlobal, 10) : 0;
if (!window.fandomTrackingCookiesSet) {
computedPVNumber += 1;
computedPVNumberGlobal += 1;
}
const params = {
beacon: beacon,
cb: new Date().valueOf(),
session_id: sessionId,
pv_unique_id: genUID(),
pv_number: computedPVNumber,
pv_number_global: computedPVNumberGlobal,
url: window.location.href,
c: config.wgCityId,
a: config.wgArticleId,
lc: config.wgContentLanguage,
x: config.wgDBname,
s: (
config.skin === 'fandommobile' ? 'ucp_mobile' :
config.skin === 'fandomdesktop' ? 'ucp_desktop' :
config.skin
),
n: config.wgNamespaceNumber,
};
if (document.referrer) {
params.r = encodeURIComponent(document.referrer);
}
return params;
}
function setCookies() {
if (!getCookieValue('tracking_session_id')) {
const expireDate = new Date(Date.now() + 1000 * 60 * 30);
document.cookie = 'tracking_session_id=' + sessionId + '; expires=' + expireDate.toGMTString() +
';domain=' + config.wgCookieDomain + '; path=' + config.wgCookiePath + ';';
}
}
function track() {
const requestUrl = 'https://beacon.wikia-services.com/__track/special/fcp_pageview';
readCookies();
setCookies();
const params = getEventParams();
const queryParams = Object.keys(params)
.map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(params[key]))
.join('&');
fetch(`${requestUrl}?${queryParams}`, { mode: 'no-cors', keepalive: true });
}
requestAnimationFrame(() => {
requestAnimationFrame(() => {
track();
})
})
})({"wgCookieDomain":".fandom.com","wgCookiePath":"\/","wgScriptPath":"","wgCityId":113,"wgDBname":"enmemoryalpha","wgArticleId":234282,"wgContentLanguage":"en","wgNamespaceNumber":0,"skin":"fandomdesktop"});
</script>
<!--[if lt IE 9]><script src="/load.php?fandomdesktop=1&lang=en&modules=html5shiv&only=scripts&skin=fandomdesktop&sync=1"></script><![endif]-->
<style type="text/css">._3nfntY7bV6Lslqu8hQRMHp {
display: inline-flex; }
._3nfntY7bV6Lslqu8hQRMHp input {
height: 0;
visibility: hidden;
width: 0; }
._3nfntY7bV6Lslqu8hQRMHp label {
align-items: center;
background: #595458;
border-radius: 50px;
cursor: pointer;
display: flex;
height: 30px;
justify-content: space-between;
position: relative;
transition: background-color 0.2s;
width: 50px; }
._3nfntY7bV6Lslqu8hQRMHp label span {
background: #fff;
border-radius: 26px;
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);
content: '';
height: 26px;
left: 2px;
position: absolute;
top: 2px;
transition: 0.2s;
width: 26px; }
._3nfntY7bV6Lslqu8hQRMHp input:checked + label {
background-color: #520044; }
._3nfntY7bV6Lslqu8hQRMHp input:checked + label span {
left: calc(100% - 2px);
transform: translateX(-100%); }
._3nfntY7bV6Lslqu8hQRMHp ._2JYcc5VzXwpLbIkBga-fyt:active span {
background: #520044;
width: 30px; }
</style><style type="text/css">._3MzFGYqqqgGfxN7P_T7MjC {
border: 1px solid #291927;
margin-top: 24px; }
.Gsw5bcLKsUulxrKo-zq_H {
background-color: #291927;
color: #fff;
font-size: 14px;
font-weight: 500;
padding: 4px 12px; }
.cBoIN3nD2E_BfIseJC9ny {
background-color: #595458;
( run in 0.803 second using v1.01-cache-2.11-cpan-df04353d9ac )