@internetstiftelsen/styleguide 5.0.14-beta.0.1 → 5.0.14-beta.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,6 +85,8 @@ function createCover(el) {
|
|
|
85
85
|
destroyConsentWarning(el);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
loadYoutubeAPI();
|
|
89
|
+
|
|
88
90
|
if (el.getElementsByTagName('img').length) {
|
|
89
91
|
return;
|
|
90
92
|
}
|
|
@@ -182,11 +184,9 @@ window.onYouTubeIframeAPIReady = function () {
|
|
|
182
184
|
};
|
|
183
185
|
|
|
184
186
|
setupPlayers(document);
|
|
185
|
-
loadYoutubeAPI();
|
|
186
187
|
|
|
187
188
|
window.addEventListener('consent.onetrust', function (e) {
|
|
188
189
|
consent = e.detail.includes('C0004');
|
|
189
190
|
|
|
190
191
|
setupPlayers(document);
|
|
191
|
-
loadYoutubeAPI();
|
|
192
192
|
});
|
|
@@ -96,6 +96,7 @@ var elementIsInViewport = (0, _debounce2.default)(function () {
|
|
|
96
96
|
window.addEventListener('scroll', function () {
|
|
97
97
|
elementIsInViewport();
|
|
98
98
|
});
|
|
99
|
+
|
|
99
100
|
function closeForm() {
|
|
100
101
|
setCookie(cookieName, 'YES', 7);
|
|
101
102
|
slidingForm.classList.remove(visibleClass);
|
package/package.json
CHANGED
package/src/assets/js/youtube.js
CHANGED
|
@@ -70,6 +70,8 @@ function createCover(el) {
|
|
|
70
70
|
destroyConsentWarning(el);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
loadYoutubeAPI();
|
|
74
|
+
|
|
73
75
|
if (el.getElementsByTagName('img').length) {
|
|
74
76
|
return;
|
|
75
77
|
}
|
|
@@ -165,11 +167,9 @@ window.onYouTubeIframeAPIReady = () => {
|
|
|
165
167
|
};
|
|
166
168
|
|
|
167
169
|
setupPlayers(document);
|
|
168
|
-
loadYoutubeAPI();
|
|
169
170
|
|
|
170
171
|
window.addEventListener('consent.onetrust', (e) => {
|
|
171
172
|
consent = e.detail.includes('C0004');
|
|
172
173
|
|
|
173
174
|
setupPlayers(document);
|
|
174
|
-
loadYoutubeAPI();
|
|
175
175
|
});
|