From c950d9adc3fea42d1aab34b2c2d295529676a684 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 8 Jan 2015 18:07:06 +0100 Subject: [PATCH] jslint syntax + support both http and https protocol --- tarteaucitron.services.js | 83 ++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 1ea6c84..06e68b9 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -25,46 +25,6 @@ tarteaucitron.services.addthis = { } }; -// youtube -tarteaucitron.services.youtube = { - "key": "youtube", - "type": "social", - "name": "YouTube", - "uri": "https://www.google.fr/intl/fr/policies/privacy/", - "needConsent": true, - "js": function () { - "use strict"; - tarteaucitron.fallback(['youtube_player'], function (x) { - var video_id = x.getAttribute("videoID"); - if ( video_id === undefined ) { - return ""; - } - var video_width = x.getAttribute("width"); - var frame_width = 'width='; - if ( video_width !== undefined ) { - frame_width+= '"'+video_width+'" '; - } else { - frame_width+= '"" '; - } - var video_height = x.getAttribute("height"); - var frame_height = 'height='; - if ( video_height !== undefined ) { - frame_height+= '"'+video_height+'" '; - } else { - frame_height+= '"" '; - } - var video_frame = '