Skip to content

Commit

Permalink
fix(docs): fixed js and spinner icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtBlue committed Jan 13, 2025
1 parent 530308f commit 1e0fd7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/_index/+layout.component-browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "prismjs";
import "prismjs/themes/prism-tomorrow.css";
// import "prismjs/components/prism-json.js";
// import "./main.js";
import "../main.js";

export default {};
4 changes: 2 additions & 2 deletions src/routes/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ const debounce = (func, wait) => {
};

// BUSY BUTTON
document.getElementById("busy-button").addEventListener("click", function () {
document.getElementById("busy-button")?.addEventListener("click", function () {
const button = this;
button.setAttribute("aria-label", "Busy...");
button.innerHTML = `
<span class="btn__cell">
<span class="progress-spinner" role="img" aria-label="Busy">
<svg class="icon icon--24" height="24" width="24" aria-hidden="true" >
<use href="static/icons.svg#icon-spinner-24"></use>
<use href="#icon-spinner-24"></use>
</svg>
</span>
</span>
Expand Down

0 comments on commit 1e0fd7c

Please sign in to comment.