jssocials icon indicating copy to clipboard operation
jssocials copied to clipboard

Add Reddit support

Open kennethjor opened this issue 7 years ago • 4 comments

Would be cool to be able to submit to Reddit.

kennethjor avatar Jun 12 '17 01:06 kennethjor

This is my script and it works.

<div id="share"></div>

<script>
   $.extend(jsSocials.shares, {
    reddit: {
            label: "Reddit",
            logo: "fa fa-reddit",
            shareUrl: "https://www.reddit.com/submit?url={url}",
            countUrl: ""
        }
    });

    $("#share").jsSocials({
        shares: ["twitter", "facebook", "googleplus", "vkontakte", "pinterest", "stumbleupon", "whatsapp", "email", "reddit"],
        shareIn: "popup"
    });
</script>
<style>
.jssocials-share-reddit .jssocials-share-link {
  background: #64a4ff; }
  .jssocials-share-reddit .jssocials-share-link:hover {
    background: #4585ee; }
</style>

screenshot - 29_12

baca130 avatar Dec 29 '17 14:12 baca130

Thank you!

@baca130, do you think you could create a PR?

tabalinas avatar Jan 07 '18 14:01 tabalinas

Done

baca130 avatar Jan 07 '18 17:01 baca130

@baca130, thank you! There is a tiny comment to the PR, could you please address it before we merge it?

tabalinas avatar Jan 08 '18 08:01 tabalinas