Skip to content

shareIt.js is a jQuery plugin that offers a quick and easy way to genreate share URL's for facebook, Twitter, and Pinterest. It uses minimal HTML markup as all that is required is an link tag.

License

Notifications You must be signed in to change notification settings

ivanlopez/shareitJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shareIt.js

shareIt.js is a jQuery plugin that offers a quick and easy way to genreate share URL's for facebook, Twitter, and Pinterest. It uses minimal HTML markup as all that is required is an link tag.

To start using, you need two basic things:

1. Markup

The markup is a simple a creating link tags.

<a href="" id="facebook"> ... Link text/image ... </a>
<a href="" id="twitter"> ... Link text/image ... </a>
<a href="" id="pinterest"> ... Link text/image ... </a>

2. JavaScript

 $('#facebook').shareIt( 
                  share : "facebook", // needs to be set to facebook, twitter, or pinterest
                  img : "", // absolute image path
                  title: "", // title of shared item
                  description: "", // description of shared item
                  link: "" // link to shared item
                  );

Credits

About

shareIt.js is a jQuery plugin that offers a quick and easy way to genreate share URL's for facebook, Twitter, and Pinterest. It uses minimal HTML markup as all that is required is an link tag.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published