sphericle / TheClicksyncChallengeList

now open source!
MIT License
1 stars 1 forks source link

copy permalink #9

Closed sphericle closed 1 month ago

sphericle commented 1 month ago

on level info page

sphericle commented 1 month ago
document.getElementById("record-copy-info").addEventListener('click', () => {
      navigator.clipboard.writeText(this.currentObject.id + ", " + this._holder.innerText + ", " + this.currentObject.video)
          .then(() => this.output.setSuccess("Copied record data to clipboard!"))
          .catch(() => this.output.setError("Error copying to clipboard"));
    });
i.fa.fa-clipboard.clickable #record-copy-info aria-hidden = "true" {}
sphericle commented 1 month ago

this already exists apparantly?!??! i mean i guess, but now the cursor is a pointer.