-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/2.0.0: release 2.0.0 fix external jquery in shariff.min.js fix IE 11 bug (#253) Update README-de.md Update README.md Add documentation of JavaScript constructor arguments. delete build artifacts
- Loading branch information
Showing
16 changed files
with
60 additions
and
2,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,18 @@ Für den Aufruf von `grunt demo` muss [Grunt CLI](http://gruntjs.com/getting-sta | |
| `data-twitter-via` | User von dem der Tweet ursprünglich stammt. | `null` | | ||
| `data-url` | URL, die geteilt werden soll. | Wenn `data-url` nicht gesetzt ist, wird `link[rel="canonical"]`, `meta[property="og:url"]` oder `location.href` verwendet. | | ||
|
||
## Konstruktor-Argumente | ||
|
||
Alle data-Attribute von oben sind auch als Konstruktor-Argumente in JavaScript verwendbar. Dabei wird das `data-` am Anfang weggestrichen und camelCase statt kebab-case verwendet: | ||
|
||
```js | ||
var buttonsContainer = $('.some-selector'); | ||
new Shariff(buttonsContainer, { | ||
backendUrl: '/my/backend/url', | ||
orientation: 'vertical', | ||
mailUrl: 'mailto:[email protected]', | ||
}); | ||
``` | ||
|
||
## Unterstützte Browser | ||
|
||
|
@@ -162,6 +174,7 @@ Bekannte Shariff-Integrationen für Drittanbieter-Systeme: | |
* [Kirby-CMS Shariff-Plugin](https://github.com/SpicyWeb-de/kirby-plugin-shariff) | ||
* [MediaWiki Extension](https://github.com/vonloxley/Shariff-Mediawiki/) | ||
* [Open Monograph Press-Plugin](https://github.com/langsci/shariff) | ||
* [Pagekit Extension](https://pagekit.com/marketplace/package/spqr/shariff) | ||
* [Serendipity Plugin](https://github.com/s9y/additional_plugins/tree/master/serendipity_event_social) | ||
* [SilverStripe-Modul](https://github.com/andrelohmann/silverstripe-shariff) | ||
* [Symfony ShariffBundle](https://github.com/core23/ShariffBundle) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,19 @@ Make sure you have installed the [Grunt CLI](http://gruntjs.com/getting-started# | |
| `data-twitter-via` | Screen name of the user to attribute the Tweet to | `null` | | ||
| `data-url` | The canonical URL of the page to check. | page's canonical URL or `og:url` or current URL | | ||
|
||
## Constructor arguments | ||
|
||
All data attributes above are also available as constructor arguments in JavaScript. However, the | ||
leading `data-` is omitted and the name is in camelCase instead of kebab-case: | ||
|
||
```js | ||
var buttonsContainer = $('.some-selector'); | ||
new Shariff(buttonsContainer, { | ||
backendUrl: '/my/backend/url', | ||
orientation: 'vertical', | ||
mailUrl: 'mailto:[email protected]', | ||
}); | ||
``` | ||
|
||
## Supported browsers | ||
|
||
|
@@ -162,6 +175,7 @@ This is a list of integrations for third-party systems: | |
* [Kirby-CMS Shariff-Plugin](https://github.com/SpicyWeb-de/kirby-plugin-shariff) | ||
* [MediaWiki Extension](https://github.com/vonloxley/Shariff-Mediawiki/) | ||
* [Open Monograph Press Plugin](https://github.com/langsci/shariff) | ||
* [Pagekit Extension](https://pagekit.com/marketplace/package/spqr/shariff) | ||
* [Serendipity](https://github.com/s9y/additional_plugins/tree/master/serendipity_event_social) | ||
* [SilverStripe Module](https://github.com/andrelohmann/silverstripe-shariff) | ||
* [Symfony ShariffBundle](https://github.com/core23/ShariffBundle) | ||
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters