- accept wildcard proxy host domains like *.example.com with validation and normalization - make exact hosts win over overlapping wildcards in generated routes and TLS policies - add unit coverage for host-pattern priority and wildcard domain handling - add a single test:all entry point and clean up lint/typecheck issues so the suite runs cleanly - run mobile layout Playwright checks under both chromium and mobile-iphone
25 lines
564 B
JavaScript
25 lines
564 B
JavaScript
/* global document */
|
|
|
|
const yearEl = document.getElementById('year');
|
|
if (yearEl) {
|
|
yearEl.textContent = new Date().getFullYear();
|
|
}
|
|
|
|
const navLinks = document.querySelectorAll('a[href^="#"]');
|
|
navLinks.forEach((link) => {
|
|
link.addEventListener('click', (event) => {
|
|
const targetId = link.getAttribute('href');
|
|
if (!targetId || targetId === '#') {
|
|
return;
|
|
}
|
|
|
|
const target = document.querySelector(targetId);
|
|
if (!target) {
|
|
return;
|
|
}
|
|
|
|
event.preventDefault();
|
|
target.scrollIntoView({ behavior: 'smooth' });
|
|
});
|
|
});
|