feat: add Prettier with go-template and toml plugins, format all files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+10
-5
@@ -17,7 +17,9 @@
|
||||
bar.style.width = "100%";
|
||||
setTimeout(() => {
|
||||
bar.style.opacity = "0";
|
||||
setTimeout(() => { bar.style.width = "0"; }, 350);
|
||||
setTimeout(() => {
|
||||
bar.style.width = "0";
|
||||
}, 350);
|
||||
}, 150);
|
||||
});
|
||||
})();
|
||||
@@ -37,9 +39,11 @@ function initLazyVideos(root) {
|
||||
observer.unobserve(video);
|
||||
});
|
||||
},
|
||||
{ rootMargin: "300px" }
|
||||
{ rootMargin: "300px" },
|
||||
);
|
||||
(root || document).querySelectorAll("video[data-src]").forEach((v) => observer.observe(v));
|
||||
(root || document)
|
||||
.querySelectorAll("video[data-src]")
|
||||
.forEach((v) => observer.observe(v));
|
||||
}
|
||||
|
||||
initLazyVideos();
|
||||
@@ -67,7 +71,9 @@ document.body.addEventListener("htmx:historyRestore", () => {
|
||||
bar.style.width = "100%";
|
||||
setTimeout(() => {
|
||||
bar.style.opacity = "0";
|
||||
setTimeout(() => { bar.style.width = "0"; }, 350);
|
||||
setTimeout(() => {
|
||||
bar.style.width = "0";
|
||||
}, 350);
|
||||
}, 150);
|
||||
}
|
||||
|
||||
@@ -81,4 +87,3 @@ document.body.addEventListener("htmx:historyRestore", () => {
|
||||
window.scrollTo({ top: 0, behavior: "instant" });
|
||||
window.dispatchEvent(new Event("scroll"));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user