diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51d57b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.py[co] +*.sw[po] +pip-log.txt +.DS_Store diff --git a/OpenSans-Light.ttf b/OpenSans-Light.ttf new file mode 100644 index 0000000..0d38189 Binary files /dev/null and b/OpenSans-Light.ttf differ diff --git a/README.md b/README.md index e69de29..f6ce5b9 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,22 @@ +# Private Social Sharing + +## About +Most "Share with Twitter/Facebook/Google+" buttons leak user data even +when people don't don't use the button. + +This implementation of social sharing doesn't leak user data until a user goes +to share the page. + +## Usage +Insert the following code to get it to run + +```html +
+ +``` + +Put your images somewhere cool. Compile the css and include those too. + +TODO: + +Package everything/minify it put it in the readme how to clone and stuff. diff --git a/SocialShare.js b/SocialShare.js new file mode 100644 index 0000000..2b5e3c9 --- /dev/null +++ b/SocialShare.js @@ -0,0 +1,161 @@ +(function($) { + + "use strict"; + + /* DROPDOWN CLASS DEFINITION */ + + var toggle = '[data-toggle="dropdown"]'; + var share_selector = '.socialshare'; + var fb_iframe = '.socialshare.open[data-type="small-bubbles"] .share-options div.fb-like iframe'; + var $share_container; + var packaged_html = '' + + '