1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

clean up styles & extend old browser support via autoprefixer/eslint 🧓🏻

and stop encoding emojis like a caveman
This commit is contained in:
2020-07-04 19:29:18 -04:00
parent e10c3a10f7
commit 426e7d91f1
27 changed files with 631 additions and 199 deletions

View File

@ -65,7 +65,7 @@
try {
return emptyUUID.replace(uuidRegex, function (c) {
return (c ^ (cryptoObject.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16);
return (c ^ (cryptoObject.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16); // eslint-disable-line compat/compat
});
} catch (error) {
return emptyUUID.replace(uuidRegex, function (c) {
@ -135,7 +135,7 @@
// This code could error on not having resolvedOptions in the Android Webview, that's why we use try...catch
var timezone;
try {
timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; // eslint-disable-line compat/compat
} catch (e) {
/* Do nothing */
}
@ -294,7 +294,7 @@
}
// If a user does refresh we need to delete the referrer because otherwise it count double
var perf = window.performance;
var perf = window.performance; // eslint-disable-line compat/compat
var navigation = "navigation";
// Check if back, forward or reload buttons are being used in modern browsers

View File

@ -61,7 +61,7 @@
// don't freak out if page happens not to have a toggle
if (toggle) {
// toggle re-appears now that we know user has JS enabled
toggle.style.visibility = "visible";
toggle.style.display = "block";
// handle toggle click
toggle.addEventListener(