adding chain permalinks

This commit is contained in:
Juicysteak117
2025-10-11 12:44:15 -07:00
parent b37ca3df67
commit 6a7fdeaf55
7 changed files with 1646 additions and 1550 deletions

View File

@@ -16,4 +16,18 @@ for (i = 0; i < coll.length; i++) {
if (coll[i].nextElementSibling) {} else {
coll[i].classList.add("del");
}
}
function copyURI(evt) {
evt.preventDefault();
/* ensures url is without hash, then add on correct hash */
navigator.clipboard.writeText(window.location.href.replace(window.location.hash,'') + evt.target.getAttribute('href')).then(() => {
/* clipboard successfully set */
}, () => {
/* clipboard write failed */
});
/* silly little toast */
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 2000);
}