Pridėkite šį kodą savo svetainėje, žymos „head“ viduje:
<script> function SocialShare(url) { window.open('https://rednet.lt/share?url=' + url, '', 'height=600,width=800'); } </script>
Tada pakeitę URL, kurį norite bendrinti savo puslapio HTML, įdėkite bendrinimo mygtuką:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
Also you can use this code to share the current page:
<button onclick="SocialShare(window.location.href)">Share</button>