const fcpremium=false; if(!document.body.classList.contains('fc-premium') && !document.body.classList.contains('notloggedin') && !!location.href.split('m/')[1])location='/'; const fixedCols = (table) => { let td = table.querySelectorAll('td'); if (!!td[0]) table.style.setProperty('--colOne', td[0].getBoundingClientRect().width + 'px'); if (!!td[1]) table.style.setProperty('--colTwo', td[1].getBoundingClientRect().width + 'px'); }, introToggle = t => { let act = t.parentNode.classList.contains('active'); t.parentNode.parentNode.querySelectorAll('.active').forEach(a => a.classList.remove('active')); t.parentNode.querySelectorAll('[pre-src]').forEach(i => { i.src = i.getAttribute('pre-src'); i.removeAttribute('pre-src') }); t.parentNode.classList.toggle('active', !act); t.scrollIntoView(); }, loadedImg=t=>t.parentNode.classList.remove('loading'); if (document.body.classList.contains('notloggedin') && document.body.classList.contains('pagelayout-frontpage')) location = 'login'; let userPrefs = localStorage.getItem("userPrefs"); if (!!userPrefs) JSON.parse(userPrefs).forEach(c => document.body.classList.add(c));