mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Refactor navbar implementation: replace navbar.js with main.js, update HTML references, and enhance button styles. Add author username to paste retrieval response and implement clipboard notification feature.
### Copilot Generated Commit Message
This commit is contained in:
@@ -38,6 +38,7 @@ function addInfo(paste) {
|
||||
document.getElementById("info-throbber").style.display = "none";
|
||||
document.getElementById("copy-button").addEventListener("click", function () {
|
||||
navigator.clipboard.writeText(window.location.href);
|
||||
showNotification("Paste copied to clipboard!", "info", 2000);
|
||||
});
|
||||
document.getElementById("download-button").addEventListener("click", function () {
|
||||
const content = document.getElementById("paste-content").innerText;
|
||||
|
||||
Reference in New Issue
Block a user