@RomWeb3
Posted
Hey, For the Copy button, you can use a setTimeout to automatically go back to the original copy button with the delay you want. On my code below i switch back to original button after 2s.
Example :
copyBtn.addEventListener("click", () => {
clipboard(shortenUrl.innerHTML);
copyBtn.classList.add("active");
copyBtn.textContent = "Copied!";
setTimeout(() => {
copyBtn.classList.remove("active");
copyBtn.textContent = "Copy";
}, 2000);
});
For the social icons on footer, it's not loading, you can use https://fontawesome.com/icons it's really nice and easy to use
Marked as helpful
@RJ3605
Posted
@RomWeb3 Thank you!
@RJ3605
Posted
@RomWeb3 The images were broken due to an extra / before the file "images". It's the default in my code editor, but GitHub doesn't like it.