共享插件 | RubberX
共享插件
在站點的 head 標籤中添加以下代碼:
            <script>
              function SocialShare(url) {
                  window.open('https://www.rubberx.net/share?url=' + url, '', 'height=600,width=800');
              }
            </script>
            
然後,在將要共享的 URL 更改為頁面 HTML 後,放置“共享”按鈕:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
您也可以使用此代碼來共享當前頁面:
<button onclick="SocialShare(window.location.href)">Share</button>
例子: