Comments (15)
What exactly are you using as data-services value?
from shariff.
data-services="["facebook","twitter","googleplus","mail","info"]"
from shariff.
data-services="["facebook","twitter","googleplus","mail","info"]"
from shariff.
This works for me:
<div class="shariff" data-services="["facebook","twitter","googleplus","mail","info"]"></div>
from shariff.
Still same. When I view the source-code, I can see the entities not printed as "
but as "
for example. May this be the reason?
from shariff.
from shariff.
I assume the JS exception Uncaught TypeError: undefined is not a function
in your structured_autocomplete.js:496
causes JS execution to stop.
from shariff.
No, I was wrong. I inspected your html markup. Your shariff element doesn't contain the data-services value as described above:
<h4>Weitersagen</h4>
<div class="shariff" data-services="[\/facebook,twitter,googleplus,mail,info]"></div>
versus
<h4>Weitersagen</h4>
<div class="shariff" data-services="["facebook","twitter","googleplus","mail","info"]"></div>
from shariff.
Yeah, like I asked before: You caught me trying to use escapes to get these entities work correctly. Somehow the template engine seems to interprete them :-/
from shariff.
If you cannot fix this behavior, you can initialize Shariff in your own JS code.
var $shariff = $("<div>");
new Shariff($shariff, {services: ["twitter", "googleplus"]});
$shariff.appendTo("#share");
This code needs to run after your <script src="shariff.min.js">
line.
from shariff.
This worked. Thanks a lot Philipp.
from shariff.
👍
from shariff.
Don't know which template engine you're using, but with TYPO3 Fluid you have to use this syntax:
<rx:shariff data="{url: 'http://example.com/', services: '[\"whatsapp\",\"facebook\"]'}" />
(The example is using the viewhelper of the rx_shariff extension for TYPO3 CMS)
from shariff.
Thx. Didn't know there is an extension for typo3.
from shariff.
;-) Yep, comes with full shariff-backend integration.
http://typo3.org/extensions/repository/view/rx_shariff
from shariff.
Related Issues (20)
- Add default callback functions
- viber.com inclusion request HOT 1
- Fix LinkedIn Sharer-URL to 2020 Version HOT 1
- WhatsApp: Support for WhatsApp Web via wa.me (api.whatsapp.com) HOT 2
- Why is there no service for WeChat? HOT 2
- Add {title} replacement to mailBody
- last release 18month ago: plz show life -and integrate some pull requests HOT 8
- Its not a good idea to overwrite the native javascript scrollTo() function
- Mastadon button HOT 1
- Error in WP 5.5: “register_rest_route was called incorrectly” HOT 1
- Problem with Infinite Ajax Scroll
- Error in the documentation for data-services HOT 1
- Flattr responds with 404
- Repo still active? HOT 2
- Enable Hashtags for content
- Image inclusion in FB posts HOT 1
- RFC: Button for "clipboard" service misleading icon and title?
- Change Twitter Icon HOT 2
- Bluesky
- Add MeWe, Mix, send by SMS, wallabag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shariff.