sphericle / TheClicksyncChallengeList

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

copy permalink #9

Closed sphericle closed 2 months ago

sphericle commented 2 months ago

on level info page

sphericle commented 2 months 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 2 months ago

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