kni-labs / rrssb

:arrow_right_hook: Ridiculously Responsive Social Sharing Buttons
https://rrssb.netlify.com/
MIT License
3.4k stars 424 forks source link

Configure URL and share text with javascript #178

Closed coolwebs closed 8 years ago

coolwebs commented 8 years ago

dbox, can you include a sample of this feature? At the moment I'm using your lib and handcoding the share details into the URL like your example (except for OG stuff). Because the way that social media shares via URL are all different, I'm having issue with getting that jQuery feature to configure share text.

dbox commented 8 years ago
<script type="text/javascript">

jQuery(document).ready(function ($) {

  $('.rrssb-buttons').rrssb({
    // required:
    title: 'This is the email subject and/or tweet text',
    url: 'http://kurtnoble.com/labs/rrssb/',

    // optional:
    description: 'Longer description used with some providers',
    emailBody: 'Usually email body is just the description + url, but you can customize it if you want'
  });
});
</script>
coolwebs commented 8 years ago

Thanks man!