minor fixes: scroll bars on overflowing elements, copy button size, function args spacing, type icons padding, link to window.location.href
This commit is contained in:
parent
3c2fb32b3e
commit
ffdbd0e614
13 changed files with 488 additions and 546 deletions
|
@ -42,6 +42,7 @@
|
|||
button.onclick = () => {
|
||||
let link = window.location.href.split("#")[0];
|
||||
link += `#-${heading.textContent?.slice(10).trimEnd().replaceAll(" ", "-").toLowerCase()}`;
|
||||
window.location.href = link
|
||||
navigator.clipboard.writeText(link);
|
||||
heading.classList.toggle("copied")
|
||||
setTimeout(() => heading.classList.remove("copied"), 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue