' ); if (!doc.addEventListener) return; window.addEventListener(resizeEvt, recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false); })(window); function setRem() { document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px'; }