Diaspora Share Button
This repository contains a project for a Diaspora's sharing button we can use with every pod in the world.
Copy this folder wherever you want on your tree folder site installation but it must be accessible by your pages.
Add the following code where you wanna place the button:
Use the index.html as an exemple. The src must specify the full path URL to the widget.
You can handle localization adding a lang argument (only 'en' and 'fr' are supported by now) in the previous src attribute like this:
You can activate a CDN (Github by now) adding this 'cdn' attribute to your widget src url. If you don't, your domain will be used instead. Diaspora Share Button images set inside the css with data uri so if the browser used is not IE 6 or 7, it won't require access to image files.
Used in this project
- Eraser.css http://github.com/necolas/eraser.css
- Create HTML element https://gist.github.com/1868872
- Detection of Internet Explorer version https://gist.github.com/1950913
About the author
@tzilliox for your time and your good advices.
- Removing the protol handling for a better copy/paste action - Diaspora website updated - Moved to stable (3 years after!)
img button and data uri replaced by a new one, widget path handling (full, relative, htts), title added to the lightbox, about Diaspora displayed directly (not a toggle function anymore)
option to set up a cdn for images, detection of Data URI availability
created button css set to inline-block, DSB and Close buttons accessibility
updated eraser.css load URL in the JS, change button img URL (if data uri can't be used)
CSS cleaned (border-radius, remove underline for close link)