CSS and @font-face fixes
This commit is contained in:
@@ -69,10 +69,7 @@
|
||||
try {
|
||||
var clarityScript = document.createElement('script');
|
||||
clarityScript.defer = true;
|
||||
setScriptSrc(
|
||||
clarityScript,
|
||||
'https://www.clarity.ms/tag/vuo5q3yf79?ref=bwt',
|
||||
);
|
||||
setScriptSrc(clarityScript, 'https://www.clarity.ms/tag/vuo5q3yf79?ref=bwt');
|
||||
document.head.appendChild(clarityScript);
|
||||
} catch (e2) {
|
||||
console.error('Failed to load Microsoft Clarity', e2);
|
||||
@@ -142,4 +139,3 @@
|
||||
init();
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
var el = document.getElementById('copyright-year');
|
||||
if (el) el.textContent = new Date().getFullYear();
|
||||
'use strict';
|
||||
var el = document.getElementById('copyright-year');
|
||||
if (el) el.textContent = new Date().getFullYear();
|
||||
})();
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){ window.dataLayer.push(arguments); }
|
||||
function gtag() {
|
||||
window.dataLayer.push(arguments);
|
||||
}
|
||||
|
||||
gtag("js", new Date());
|
||||
gtag("config", "G-36F29PDKRT", {
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-36F29PDKRT', {
|
||||
// optional, but often helpful:
|
||||
anonymize_ip: true,
|
||||
});
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
const MOBILE_BREAKPOINT_PX = 768;
|
||||
|
||||
/** All focusable elements inside the menu (links). */
|
||||
const getMenuFocusables = (menu) =>
|
||||
menu.querySelectorAll('a[href]');
|
||||
const getMenuFocusables = (menu) => menu.querySelectorAll('a[href]');
|
||||
|
||||
const mobileMenuHelper = () => {
|
||||
const mobileMenu = document.getElementById('nav-menu');
|
||||
@@ -15,10 +14,7 @@ const mobileMenuHelper = () => {
|
||||
const syncMenuAriaHidden = () => {
|
||||
if (isMobile()) {
|
||||
const hidden = !mobileMenuToggle.checked;
|
||||
mobileMenu.setAttribute(
|
||||
'aria-hidden',
|
||||
hidden ? 'true' : 'false',
|
||||
);
|
||||
mobileMenu.setAttribute('aria-hidden', hidden ? 'true' : 'false');
|
||||
// inert removes the subtree from the a11y tree and makes descendants non-focusable
|
||||
if (hidden) {
|
||||
mobileMenu.setAttribute('inert', '');
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// Umami: safe track (no-op if script blocked or not loaded)
|
||||
function umamiTrack(name, data) {
|
||||
if (
|
||||
typeof window.umami !== 'undefined' &&
|
||||
typeof window.umami.track === 'function'
|
||||
) {
|
||||
if (typeof window.umami !== 'undefined' && typeof window.umami.track === 'function') {
|
||||
if (data != null) window.umami.track(name, data);
|
||||
else window.umami.track(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user