|
@@ -442,12 +442,13 @@ main = function () {
|
442
|
442
|
|
443
|
443
|
function onPlayerStateChange(event) {
|
444
|
444
|
// console.log(event.target.o.id)
|
|
445
|
+ const iframe = event.target.getIframe();
|
445
|
446
|
if (event.data == YT.PlayerState.PLAYING) {
|
446
|
|
- $(`#${event.target.o.id}`).parents(".video").find(".video__overlay").hide();
|
|
447
|
+ $(iframe).parents(".video").find(".video__overlay").hide();
|
447
|
448
|
}
|
448
|
449
|
// console.log(event.data)
|
449
|
450
|
if (event.data == -1) {
|
450
|
|
- $(`#${event.target.o.id}`).parents(".video").find(".video__overlay").show();
|
|
451
|
+ $(iframe).parents(".video").find(".video__overlay").show();
|
451
|
452
|
}
|
452
|
453
|
}
|
453
|
454
|
|