Welcome to our tutorial on how to effortlessly share specific text snippets on various social media platforms using JavaScript! Discover how to simplify the process of sharing selected content with our step-by-step guide. Whether you're a developer or simply interested in enhancing your website's user experience, this video is a must-watch. Learn essential techniques, including implementing JavaScript functions and leveraging social media APIs. Save time and boost engagement by enabling easy content sharing with our expert tips and tricks. Enhance your JavaScript skills and optimize your online presence today!
❓ Topics That We'll Cover
1️⃣ JavaScript Selection API
2️⃣ Detect position of mouse
3️⃣ Manipulate CSS code with JavaScript
📢 SUBSCRIBE my channel for more helpful 🎬videos
🔔 / @codingdesign
▶PLAYLIST
✅ • Add These Features TO Your Projects
⌚Timestamps
00:00 Intro
01:23 HTML
02:53 CSS (Social Share Buttons)
06:09 JavaScript (Share Selected Text)
19:18 Outro (Final Result)
................................... CODE ...................................
case "facebook":
share_url = `https://www.facebook.com/sharer.php?u=${url}`;
break;
case "twitter":
share_url = `https://www.twitter.com/intent/tweet?...{text}&url=${url}`;
break;
case "reddit":
share_url = `https://reddit.com/submit?url=${url}&title=${text}`;
break;
case "whatsapp":
share_url = `https://web.whatsapp.com/send?text=${text}%20${url}`;
break;
case "duckduckgo":
share_url = `https://duckduckgo.com/?q=${text}`;
// share_url = `https://google.com/search?q=${text}`;
break;
................................... CODE ...................................
🌎 Browser : Brave V.1.50
📝 Code Editor : VS Code
💠 Extensions : Live-Server
#socialmediabutton #share
Watch video Learn how to easily share selected text on social media with JavaScript online without registration, duration hours minute second in high quality. This video was added by user CodingDesign 07 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 311 once and liked it 20 people.