Revert "iframes only load after being clicked"
This reverts commit c2548be860
.
This commit is contained in:
parent
c2548be860
commit
ddf41431f1
1 changed files with 0 additions and 11 deletions
11
js/index.js
11
js/index.js
|
@ -32,14 +32,3 @@ if (btn) btn.addEventListener('click', fullscreen)
|
|||
$(document).ready(function(){
|
||||
$('.carousel.carousel-slider').carousel({full_width: true});
|
||||
});
|
||||
|
||||
$('iframe').each(function() {
|
||||
this.tmp = this.src;
|
||||
this.src = '';
|
||||
$(this).wrap('<div class="iframe_block">')
|
||||
})
|
||||
.parent('.iframe_block')
|
||||
.click(function() {
|
||||
let frame = $(this).children("iframe")[0]
|
||||
frame.src = frame.tmp
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue