2017 © Pedro Peláez
 

library socialshareprivacy-1

A jQuery plugin that allows you to add social buttons in a privacy friendly way

image

eamador/socialshareprivacy-1

A jQuery plugin that allows you to add social buttons in a privacy friendly way

  • Friday, September 4, 2015
  • by eamador
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SocialSharePrivacy

Build Status, (*1)

SocialSharePrivacy is a jQuery Plugin that allows you to add buttons of social networks in a privacy friendly way., (*2)

Initially all buttons are inactive and so no data is transferred to or from those websites. Only after a first click they are activated and the code is loaded from the remote source., (*3)

It is based on the original plugin by heise. It can be found at http://www.heise.de/extras/socialshareprivacy/ For a demo see: http://c5demo.patrickheck.de/, (*4)

Iprovements in comparison to the original include:, (*5)

  • Usage of one single image sprite. This cuts down the number of assets from 9 to only 3.
  • Compatibility with jQuery >= 1.7 (including 1.9)
  • Nicer code formatting

Supported Networks include:, (*6)

  • Facebook
  • Twitter
  • Google+

This is published under MIT License: http://www.opensource.org/licenses/mit-license.php, (*7)

Installation

Example

<head>
  …
  <script type="text/javascript" src="jquery.js"></script> 
  <script type="text/javascript" src="jquery.socialshareprivacy.min.js"></script>
  <script type="text/javascript">
    jQuery(document).ready(function($){
      if($('#socialshareprivacy').length > 0){
        $('#socialshareprivacy').socialSharePrivacy(); 
      }
    });
  </script>
  …
</head>
<body>
  …
  <div id="socialshareprivacy"></div>
  …
</body>

Explanation

  1. Copy the minified file "jquery.socialshareprivacy.min.js" to your web directory.
  2. Add a placeholder where you want the buttons to go: <div id="socialshareprivacy"></div>
  3. Include a link to jQuery and "jquery.socialshareprivacy.min.js".
  4. Add a jQuery document-ready function that calls socialshareprivacy.

The Versions

04/09 2015

dev-master

9999999-dev

A jQuery plugin that allows you to add social buttons in a privacy friendly way

  Sources   Download

The Requires

  • php >=5.5.0