Answer the question
In order to leave comments, you need to log in
How to change the purpose of the function (when clicked, return the original src)?
There is a block in which there is a hidden block (modal window) in which there is an iframe, when the site loads, all iframes replace the original src with a 1px image for faster site loading.
- then the user clicks on the block > a modal window opens > the play button appears when clicked on which returns the original src for the iframe > the video starts.
Help remove the gap in the form of this button and reassign the function of assigning the original src iframe y click on the main block.
Everything is related to arrays as I understand it. The code is hard for me.
Link to codepen JS code with comment https://codepen.io/Agas007/pen/PoqOEqV
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question