From 630d6606ced9d35c676008a84ebd593cb52ea255 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 11 Mar 2015 22:24:14 +0100 Subject: [PATCH] Add: Calameo, Prezi, Slideshare --- README.md | 6 ++- tarteaucitron.js | 2 +- tarteaucitron.services.js | 82 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 86 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 026353d..5e5bcc9 100644 --- a/README.md +++ b/README.md @@ -63,14 +63,18 @@ Bonus: * Shareaholic * ShareThis * Twitter - * Twitter Cards + * Twitter (cards) + * Twitter (timelines) * Support * UserVoice * Zopim * Video + * Calameo * Dailymotion + * Prezi + * SlideShare * Vimeo * Youtube diff --git a/tarteaucitron.js b/tarteaucitron.js index 4808032..8f6916e 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -10,7 +10,7 @@ var scripts = document.getElementsByTagName('script'), tarteaucitronNoAdBlocker = false; var tarteaucitron = { - "version": 204.71, + "version": 205.1, "cdn": cdn, "user": {}, "lang": {}, diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 73f4f49..37759d2 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -125,6 +125,32 @@ tarteaucitron.services.amazon = { } }; +// calameo +tarteaucitron.services.calameo = { + "key": "calameo", + "type": "video", + "name": "Calameo", + "uri": "http://fr.calameo.com/privacy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['calameo-canvas'], function (x) { + var id = x.getAttribute("data-id"), + width = x.getAttribute("width"), + height = x.getAttribute("height"), + url = '//v.calameo.com/?bkcode=' + id; + + return ''; + }); + }, + "fallback": function () { + "use strict"; + var id = 'calameo'; + tarteaucitron.fallback(['calameo-canvas'], tarteaucitron.engage(id)); + } +}; + // clicky tarteaucitron.services.clicky = { "key": "clicky", @@ -735,6 +761,32 @@ tarteaucitron.services.pinterest = { } }; +// prezi +tarteaucitron.services.prezi = { + "key": "prezi", + "type": "video", + "name": "Prezi", + "uri": "https://prezi.com/privacy-policy/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['prezi-canvas'], function (x) { + var id = x.getAttribute("data-id"), + width = x.getAttribute("width"), + height = x.getAttribute("height"), + url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&lock_to_path=0&autoplay=0&autohide_ctrls=0'; + + return ''; + }); + }, + "fallback": function () { + "use strict"; + var id = 'prezi'; + tarteaucitron.fallback(['prezi-canvas'], tarteaucitron.engage(id)); + } +}; + // pubdirecte tarteaucitron.services.pubdirecte = { "key": "pubdirecte", @@ -832,6 +884,32 @@ tarteaucitron.services.sharethis = { } }; +// slideshare +tarteaucitron.services.slideshare = { + "key": "slideshare", + "type": "video", + "name": "SlideShare", + "uri": "https://www.linkedin.com/legal/privacy-policy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['slideshare-canvas'], function (x) { + var id = x.getAttribute("data-id"), + width = x.getAttribute("width"), + height = x.getAttribute("height"), + url = '//www.slideshare.net/slideshow/embed_code/' + id; + + return ''; + }); + }, + "fallback": function () { + "use strict"; + var id = 'slideshare'; + tarteaucitron.fallback(['slideshare-canvas'], tarteaucitron.engage(id)); + } +}; + // statcounter tarteaucitron.services.statcounter = { "key": "statcounter", @@ -909,7 +987,7 @@ tarteaucitron.services.twitter = { tarteaucitron.services.twitterembed = { "key": "twitterembed", "type": "social", - "name": "Twitter Cards", + "name": "Twitter (cards)", "uri": "https://support.twitter.com/articles/20170514", "needConsent": true, "cookies": [], @@ -964,7 +1042,7 @@ tarteaucitron.services.twitterembed = { tarteaucitron.services.twittertimeline = { "key": "twittertimeline", "type": "social", - "name": "Twitter Timelines", + "name": "Twitter (timelines)", "uri": "https://support.twitter.com/articles/20170514", "needConsent": true, "cookies": [],