Fix video banner js.

This commit is contained in:
BoHung Chiu 2021-10-27 18:15:17 +08:00
parent 922334febd
commit d39b6e2139
1 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
delete yt_players[id][k]; delete yt_players[id][k];
}) })
iframes.each(function(i,iframe){ iframes.each(function(i,iframe){
console.log($(iframe).attr("id"))
var yt_player = yt_players[id][$(iframe).attr("id")]; var yt_player = yt_players[id][$(iframe).attr("id")];
if(yt_player){ if(yt_player){
}else{ }else{
@ -122,6 +121,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
} }
{{extra_state_chnage_script}} {{extra_state_chnage_script}}
} }
}
$(document).ready(function(){ $(document).ready(function(){
window.onYouTubePlayerAPIReady = function() { window.onYouTubePlayerAPIReady = function() {
onYouTubeIframeAPIReady.apply(this,arguments); onYouTubeIframeAPIReady.apply(this,arguments);
@ -176,7 +176,6 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
},300); },300);
}) })
}) })
}
</script> </script>
<style type="text/css"> <style type="text/css">
.w-ba-banner .controlplay .resume-slide.active i{ .w-ba-banner .controlplay .resume-slide.active i{