--
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user