/jQuery-Awesome-Sosmed-Share-Button

Awesome Social Media Share Button With Share Count

Primary LanguageJavaScriptMIT LicenseMIT

AyoShare.js the new name of this plugin

Awesome Social Media Share Button With Share Count

Plug and play :)

AyoShare.js v14 currently supports 10 social media sites & 5 mobile share:

  • Google+
  • Stumbleupon
  • Facebook
  • Linkedin
  • Pinterest
  • Bufferapp
  • Reddit
  • Vk
  • Pocket
  • Twitter
  • Email
  • Whatsapp
  • Telegram
  • Viber
  • Line

Usage:

CSS
<!-- Include Font Awesome v4.6.0 -->
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.0/css/font-awesome.min.css" rel="stylesheet">

<!-- Custom Style --> <link href="src/css/ayoshare.css" rel="stylesheet">

JS

<!-- Include jQuery -->
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>

<!-- jQuery Awesome Sosmed Share Button -->
<script src="src/js/ayoshare.js"></script>

Example:

<!-- By Class Name -->
<div class="anu" data-ayoshare="http://your-site.com/bla"></div>
<div class="anu" data-ayoshare="http://your-site.com/foo/bar"></div>

<!-- By ID --> <div id="unik" data-ayoshare="http://your-site.com/test.html"&gt;&lt;/div>

<script> $(function() {

    $(".anu").ayoshare(
        google = true, // true or false
        stumbleupon = false,
        facebook = true,
        linkedin = true,
        pinterest = true,
        bufferapp = false,
        reddit = false,
        vk = false,
        pocket = false,
        twitter = true,
        email = true,
        whatsapp = true,
        telegram = true,
        viber = false,
        line = true
    );
    
    $("#unik").ayoshare(
        google = true, // true or false
        stumbleupon = true,
        facebook = true,
        linkedin = true,
        pinterest = true,
        bufferapp = true,
        reddit = true,
        vk = true,
        pocket = true,
        twitter = true,
        email = false,
        whatsapp = false,
        telegram = false,
        viber = true,
        line = true
    );
    
});

</script>