This repository contains a project for a Diaspora's sharing button we can use with every pod in the world.
Site: http://www.simounet.net
Diaspora's profile: [email protected]
Twitter profile: @Simounet
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
@tzilliox for your time and your good advices.
This repository contains a project for a Diaspora's sharing button we can use with every pod in the world. (I hope) It will change quickly in the next few weeks so stay tuned and do git pull!
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:
<script type="text/javascript" src="widget.js"></script>
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:
<script type="text/javascript" src="widget.js?lang=fr"></script>
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.
<script type="text/javascript" src="widget.js?cdn=true"></script>
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)
Localization handler
Jqueryless version
Initial Release