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
Смотрите видео Learn how to easily share selected text on social media with JavaScript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodingDesign 07 Июль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 311 раз и оно понравилось 20 людям.