Skip to content

Commit

Permalink
running before content loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 committed Jun 4, 2024
1 parent 06c42e1 commit aea9d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions banner_image.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function () {
window.addEventListener("DOMContentLoaded", function () {
const tagsEl = /** @type {HTMLMetaElement} */ document.querySelector("meta[name=tags]");
if (!tagsEl) return;
const bannerImage = document.querySelector("#banner-image");
Expand All @@ -16,4 +16,4 @@
if (name == null) return; // Don't change it
}
bannerImage.src = `/images/yazani/yazani_${name}_extracted.png`;
})();
});
4 changes: 2 additions & 2 deletions docs/banner_image.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aea9d1c

Please sign in to comment.