Share Link Generator
generate sharing links for social media sites
function generateLinks() {
const baseUrl = document.getElementById("urlInput").value;
const text = encodeURIComponent(document.getElementById("textInput").value);
const facebookLink = `https://www.facebook.com/sharer.php?u=${encodeURIComponent(baseUrl)}`;
document.getElementById("facebookLink").innerText = facebookLink;
const twitterLink = `https://twitter.com/intent/tweet?url=${encodeURIComponent(baseUrl)}&text=${text}`;
document.getElementById("twitterLink").innerText = twi