This commit is contained in:
2026-04-25 18:28:06 +09:00
parent dd2c1fcc70
commit 6bc97e0057
+6 -5
View File
@@ -1,14 +1,15 @@
/* Progressive Blur */ /* Progressive Blur */
(function initProgressiveHeaderBlur() { function initProgressiveHeaderBlur() {
const header = document.querySelector('header'); const header = document.querySelector('header');
if (!header) return; if (!header || header.querySelector('.header-blur')) return;
const container = document.createElement('div'); const container = document.createElement('div');
container.className = 'header-blur'; container.className = 'header-blur';
container.setAttribute('aria-hidden', 'true'); container.setAttribute('aria-hidden', 'true');
for (let i = 0; i < 5; i++) container.appendChild(document.createElement('div')); for (let i = 0; i < 5; i++) container.appendChild(document.createElement('div'));
header.prepend(container); header.prepend(container);
})(); }
initProgressiveHeaderBlur();
/* View Transition */ /* View Transition */
(() => { (() => {
@@ -118,7 +119,6 @@
if (typeof window.__cursorCleanup === 'function') { if (typeof window.__cursorCleanup === 'function') {
window.__cursorCleanup(); window.__cursorCleanup();
window.__cursorCleanup = null;
} }
await preloadAssets(doc); await preloadAssets(doc);
@@ -139,7 +139,8 @@
}); });
} }
history.pushState(null, '', url.href); initProgressiveHeaderBlur();
history.pushState(null, '', response.url);
if (typeof window.__cursorReinit === 'function') { if (typeof window.__cursorReinit === 'function') {
window.__cursorReinit(); window.__cursorReinit();