View on GitHub

Diaspora Share Button

Download this project as a .zip file Download this project as a tar.gz file

Diaspora Share Button

Description

This repository contains a project for a Diaspora's sharing button we can use with every pod in the world.

Installation

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.

Localization

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>

CDN

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>

Used in this project

About the author

Thanks

@tzilliox for your time and your good advices.

License

GNU Lesser General Public License, version 2.1

Changelog

1.0.0

- Removing the protol handling for a better copy/paste action
- Diaspora website updated
- Moved to stable (3 years after!)

0.3.6

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)

0.3.5

option to set up a cdn for images, detection of Data URI availability

0.3.4

created button css set to inline-block, DSB and Close buttons accessibility

0.3.3

updated eraser.css load URL in the JS, change button img URL (if data uri can't be used)

0.3.2

CSS cleaned (border-radius, remove underline for close link)

0.3.1

Localization handler

0.3

Jqueryless version

0.1

Initial Release