Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimal script Usage #216

Open
ballios opened this issue Apr 2, 2018 · 0 comments
Open

Optimal script Usage #216

ballios opened this issue Apr 2, 2018 · 0 comments

Comments

@ballios
Copy link

ballios commented Apr 2, 2018

Can you please explain to me this:

If I use Optional: Configure URL and share text with javascript:

<script type="text/javascript">
jQuery(document).ready(function ($) {
  $('.rrssb-buttons').rrssb({
    // required:
    title: 'This is the email subject and/or tweet text',
    url: 'https://rrssb.netlify.com/',
    // 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>

then I can - not use this part "HREF" in:
<a href="https://www.facebook.com/sharer/sharer.php?u=http://your-url-here" class="popup">

<li class="rrssb-facebook">
    <a href="https://www.facebook.com/sharer/sharer.php?u=http://your-url-here" class="popup">
      <span class="rrssb-icon"></span>
      <span class="rrssb-text">facebook</span>
    </a>
  </li>

And thus get such simple code like this:
<li class="rrssb-facebook"><a href="#" class="popup"><span class="rrssb-icon"></span><span class="rrssb-text">facebook</span></a></li>

Or not?
P.S. I just try to get smaller (as possible) code structure...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant