A
A
Andrew2020-03-07 22:55:22
css
Andrew, 2020-03-07 22:55:22

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

1 answer(s)
A
Ankhena, 2019-07-27
@Brad9aga

Because after #list1 there is no .ul1
To get to it, you need to go to the top level, and css can't do that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question