Skip to content

Share is a customizable jQuery Plugin which lets you share a website, post, article, blog or anything which has a URL. Share it on facebook, twitter, linkedin, pinterest or tumblr.

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT

harshen/jquery-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-share Plugin- jQuery plugin to share your content.

Introduction

Share is a customizable jQuery Plugin which lets you share a website, post, article, blog or anything which has a URL. Share it on facebook, twitter, linkedin, pinterest or tumblr.

Click here to lend your support to: jQuery Share and make a donation at pledgie.com !

This project is looking for help! You can donate to the ongoing pledgie campaign and help spread the word. If you've used the plugin, or plan to use, consider a donation - any amount will help.

You can find the plan for how to spend the money on the pledgie page.

Getting Started

Include jQuery, the plugin and its css file on a page.

<script type="text/javascript" src="jquery-2.0.3.js"></script>
<script type="text/javascript" src="jquery.share.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.share.css"/>

Add the share image below your content.

<a href="javascript:void(0)" class="share" title="Share This">
  <img src="IMAGES⁄iconShareGreenSmall.png" title="Share This"/>
</a>

Add a container "div" for the share icons and give id attribute to it.

<div  id="boxa"> </div>

Register a new Mashery ID to access developer.sharethis.com by Visiting http://developer.sharethis.com/member/register

Then call the share method on the class of a tag, with the required options.

<script type="text/javascript">
		$(document).ready(function(){
		    $('.share').share({
		        socialIcons : {
		            facebook : {
		                show : false
		            },
		            pinterest : {
		                show : true,
		                media : "http://goo.gl/OCMfWB",
		                description : "Harshen Amarnath Pandey"
		            }
		        },
		        mandatory : {
		            containerId : "boxa",
		            APIkey : "bgrswprtt3nzgudfxr5zkjur",
		            URL : "http://www.nature.org/"
		        },
		        display : {
		            background : "#321243"
		        }
		    });
		});
</script>

For more information on how to use different options, check the documentation.

Also refer the demo for more clarity.

Dependencies

jQuery greater than or equal to version 1.7.

Support

Please post bug reports and other contributions (enhancements, features) to the GitHub issue tracker.

License

Copyright (c) 2014 Harshen Pandey Licensed under the MIT and GPLv3 license.

About

Share is a customizable jQuery Plugin which lets you share a website, post, article, blog or anything which has a URL. Share it on facebook, twitter, linkedin, pinterest or tumblr.

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published