2022-06-17 17:51:59 +02:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// DATA
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// UTILS
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// Convert rem to pixels by getting font-size CSS property
|
|
|
|
function convertRemToPixels(rem) {
|
2022-07-07 17:09:48 +02:00
|
|
|
let fontSize = parseFloat(window.getComputedStyle(document.body).getPropertyValue('font-size'));
|
|
|
|
return rem * fontSize;
|
2022-06-17 17:51:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// LOGIC
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// PROGRAM
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// Enable CSS :active pseudo-class in Safari Mobile
|
|
|
|
document.addEventListener("touchstart", function() {},false);
|