Skip to content

Commit

Permalink
task: cleaning js a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Jun 15, 2024
1 parent a5153fe commit bc8ceb5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions internal/assets/doco.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,8 @@ let doco = {

document.querySelectorAll("pre").forEach((el) => {
let bt = document.createElement("button");
bt.classList.add("material-symbols-outlined", "absolute", "top-3", "right-2", "p-1.5", "bg-gray-50", "hover:bg-gray-100", "rounded");
bt.appendChild(document.createTextNode("content_copy"));
bt.classList.add(
"material-symbols-outlined",
"absolute",
"top-3",
"right-2",
"p-1.5",
"bg-gray-50",
"hover:bg-gray-100",
"rounded",
);

bt.addEventListener("click", () => {
navigator.clipboard.writeText(el.textContent);

Expand Down

0 comments on commit bc8ceb5

Please sign in to comment.