MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / createIframe

Function createIframe

assets/js/TrailerApp.js:69–77  ·  view source on GitHub ↗
(video)

Source from the content-addressed store, hash-verified

67// }
68
69function createIframe(video) {
70 const iframe = document.createElement('iframe');
71 iframe.src = `https://www.youtube.com/embed/${video.key}`;
72 iframe.width = 360;
73 iframe.height = 315;
74 iframe.allowFullscreen = true;
75
76 return iframe;
77}
78
79function renderSearchData(data) {
80 movieSearchable.innerHTML = '';

Callers 1

createVideoTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected