var cssPath = "/res/styles/css/betexplorer"; function checkRem(attribute, test) { var supports = false; try { var div = document.createElement("div"); div.style[attribute] = test; if (div.style[attribute] === test) { supports = true; } } catch(e) { } return supports; } // pokud prohlizec nepodporuje REM jednotky nacti PX fallback if (!checkRem("fontSize", "1rem")) { cssPath += "-rem-fallback"; } document.write('');