Add AddToAny share and feed services

This commit is contained in:
Amauri CHAMPEAUX 2015-02-17 15:40:37 +01:00
parent fa0b9c1bbf
commit 562bccf739
2 changed files with 40 additions and 0 deletions

View File

@ -18,6 +18,8 @@ Bonus:
## Supported services
- AddThis
- AddToAny (feed)
- AddToAny (share)
- Alexa
- Clicky
- Dailymotion

View File

@ -24,6 +24,44 @@ tarteaucitron.services.addthis = {
}
};
// addtoanyfeed
tarteaucitron.services.addtoanyfeed = {
"key": "addtoanyfeed",
"type": "social",
"name": "AddToAny (feed)",
"uri": "https://www.addtoany.com/privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
},
"fallback": function () {
"use strict";
var id = 'addtoanyfeed';
tarteaucitron.fallback(['a2a_dd'], tarteaucitron.engage(id));
}
};
// addtoanyshare
tarteaucitron.services.addtoanyshare = {
"key": "addtoanyshare",
"type": "social",
"name": "AddToAny (share)",
"uri": "https://www.addtoany.com/privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
},
"fallback": function () {
"use strict";
var id = 'addtoanyshare';
tarteaucitron.fallback(['a2a_dd'], tarteaucitron.engage(id));
}
};
// alexa
tarteaucitron.services.alexa = {
"key": "alexa",