M
M
mindx2018-04-15 23:35:49
JavaScript
mindx, 2018-04-15 23:35:49

How many modal windows can be made?

I made this block on the bootstrap: Uxg53Gokgl0.jpg, in these pictures, a modal window with a video from youtu.be , I made a different video for each photo, but when you open any of them, a video from 1 picture opens.
+ Even after all manipulations with windows, the page loads for a very long time (considering that I open it locally...)
What am I doing wrong? Maybe you can't do so much on one page? There are sixteen such blocks with a picture in total.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2018-04-15
@politon

You only need to change the video id in the modal when it pops up

R
Ruslan Absalyamov, 2018-04-15
@rusline18

Do an ajax load
, it will look something like this

$(#id).modal('show').find('$idModal').load('#href')

I don’t remember exactly how it is spelled correctly, but for example, move in this vein, respectively, when you click it, it will link to one modal window, only load loads the content. Well, accordingly, you can do href by any means
, at least something like this
;$('#button').click(functuion(){
$(this).attr(href);// Или примерно так если укажешь data-href $(this).data("href")
})

S
svetlov97, 2018-04-15
@svetlov97

Basically, as much as you want. But you are praised by one, just change the url to the video and that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question