Simple Share

Simple share buttons for social media - without any frills. Parses your meta description for any page text and extracts the title to get a source (format: Name of page - Name of website). Image-sharing services like Pinterest uses the og:image meta tag. Twitter uses the twitter:site and twitter:creator meta tags to add @via username to a tweet.

Dependencies

jQuery

Supports

Usage

		<head>
			<script type="text/javascript" src="https://simpleshare.schuttelaar.nl/simpleshare.js" charset="utf-8"></script>
			<link rel="stylesheet" href="https://simpleshare.schuttelaar.nl/simpleshare.css" type="text/css" media="screen" charset="utf-8" />
			<script>
				$(document).ready(function() {
					$('#share').simpleShare({ pinterest : true, facebook : true, twitter : true });
				});
			</script>
		</head>
		...
		<div id="share"></div>
	

Tracking clicks

If desired, the script will replace links with a tracking URL of your choice. The query string contains thee parameters: service (Twitter, LinkedIn, Facebook...), source and clicked href. Be sure that after the request, your tracker script redirects to the href.

		$('#share).simpleShare({ tracker : 'https://simpleshare.schuttelaar.nl/track' });
	

Download

Example

Updated September 7th 2015