Browse Source

Mise à jour de la lib TarteAuCitron

pull/19/head
Chancellier Pierre-Jean 9 months ago
parent
commit
eab77eb2a8
  1. 2
      json/services.json
  2. 27
      lib/tarteaucitron/tarteaucitron.services.js
  3. 6
      modeles/tac_webtvnu.html

2
json/services.json

File diff suppressed because one or more lines are too long

27
lib/tarteaucitron/tarteaucitron.services.js

@ -4808,6 +4808,7 @@ tarteaucitron.services.affilae = {
}
};
// Canal-U.tv
tarteaucitron.services.canalu = {
"key": "canalu",
"type": "video",
@ -4838,3 +4839,29 @@ tarteaucitron.services.canalu = {
});
}
};
// WebTV Normandie Université
tarteaucitron.services.webtvnu = {
"key": "webtvnu",
"type": "video",
"name": "WebTV Normandie Université",
"uri": "https://docs.google.com/document/d/1tpVclj4QBoAq1meSZgYrpNECwp7dbmb_IhICY3sTl9c/edit",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['webtvnu_player'], function (x) {
var frame_url = 'https://webtv.normandie-univ.fr/permalink/' + x.getAttribute("videoID") + '/iframe/',
width = x.getAttribute("width"),
height = x.getAttribute("height");
return '<iframe width="' + width + '" height="' + height + '" src="' + frame_url + '" allowfullscreen="allowfullscreen" allow="autoplay"></iframe>';
});
},
"fallback": function () {
"use strict";
tarteaucitron.fallback(['webtvnu_player'], function (elem) {
return tarteaucitron.engage('webtvnu');
});
}
};

6
modeles/tac_webtvnu.html

@ -1,5 +1 @@
[<div class="webtvnu_player"
videoID="(#ENV{id})"
width="[(#ENV{width,720})]"
height="[(#ENV{height,405})]">
</div><br>]
<div class="webtvnu_player" videoID="[(#ENV{videoID})]"></div>
Loading…
Cancel
Save