Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
botbahlul authored Aug 6, 2024
1 parent c0fc671 commit 1146238
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,9 @@ function embed(){
//if (!document.querySelector(".iframe_header_unit")) create_iframe_video_player();
if (document.querySelector("#my_video")) document.querySelector("#my_video").parentElement.removeChild(document.querySelector("#my_video"));
var ytID = getYoutubePlayerID(url);
var src = "https://www.youtube.com/embed/" + ytID;
console.log('ytID =', ytID)
//var src = "https://www.youtube.com/embed/" + ytID;
var src = `https://www.youtube.com/embed/${ytID}`;
url = src;
console.log('document.querySelector("#my_iframe") =', document.querySelector("#my_iframe"));
document.querySelector("#my_iframe").style.display = "block";
Expand Down Expand Up @@ -1846,8 +1848,8 @@ function embed(){
insert_videojs_script();
console.log('document.querySelector("#my_video") =', document.querySelector("#my_video"));
document.querySelector("#my_video").style.display = "block";
document.querySelector("#my_iframe").style.width = "1072px";
document.querySelector("#my_iframe").style.height = "603px";
document.querySelector("#my_video").style.width = "100%";
document.querySelector("#my_video").style.height = "100%";
document.querySelector("#video_source").src = url;
document.querySelector("#video_source").type = "application/x-mpegURL";
}
Expand Down

0 comments on commit 1146238

Please sign in to comment.