SHOW:
|
|
- or go back to the newest paste.
1 | J'essaie de mettre ça en place : https://github.com/carrot/share-button/wiki/Configuration-Options | |
2 | ||
3 | si je fais ça ça marche : | |
4 | ||
5 | -- | |
6 | jQuery(document).ready(function($){ | |
7 | config = { | |
8 | networks: { | |
9 | google_plus: { | |
10 | enabled: false | |
11 | }, | |
12 | facebook: { | |
13 | app_id: "abc123" | |
14 | }, | |
15 | pinterest: { | |
16 | enabled: false | |
17 | }, | |
18 | email: { | |
19 | enabled: false | |
20 | } | |
21 | } | |
22 | } | |
23 | ||
24 | var share = new Share('.share-button', config); | |
25 | }); | |
26 | --- | |
27 | ||
28 | - | Si je fais ça ça marche pas : |
28 | + | Si je fais ça avec plus d'options ça marche pas et c'est ce que je veux : |
29 | ||
30 | --- | |
31 | jQuery(document).ready(function($){ | |
32 | config = { | |
33 | ui: { | |
34 | flyout: | |
35 | button_font: | |
36 | button_text: | |
37 | icon_font: | |
38 | }, | |
39 | networks: { | |
40 | google_plus: { | |
41 | enabled: false | |
42 | }, | |
43 | facebook: { | |
44 | app_id: "abc123" | |
45 | }, | |
46 | pinterest: { | |
47 | enabled: false | |
48 | }, | |
49 | email: { | |
50 | enabled: false | |
51 | } | |
52 | } | |
53 | } | |
54 | ||
55 | var share = new Share('.share-button', config); | |
56 | }); | |
57 | --- |