Customize folder setup

This commit is contained in:
Paul Nicoué 2022-07-08 17:11:28 +02:00
parent 445db7d1bf
commit 302c150790
29 changed files with 49 additions and 15 deletions

26
public/assets/js/app.js Normal file
View file

@ -0,0 +1,26 @@
'use strict';
// ----------------------------------------------------------------------------
// DATA
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// UTILS
// ----------------------------------------------------------------------------
// Convert rem to pixels by getting font-size CSS property
function convertRemToPixels(rem) {
let fontSize = parseFloat(window.getComputedStyle(document.body).getPropertyValue('font-size'));
return rem * fontSize;
}
// ----------------------------------------------------------------------------
// LOGIC
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// PROGRAM
// ----------------------------------------------------------------------------
// Enable CSS :active pseudo-class in Safari Mobile
document.addEventListener("touchstart", function() {},false);