W
W
WebforSelf2018-06-01 15:37:46
JavaScript
WebforSelf, 2018-06-01 15:37:46

Why doesn't js work in fancybox 3?

Friends, I am adding a heavy gallery to the site. And in order not to load the main page, I load the gallery using the frame.

<a data-fancybox  data-options='{"caption" : "3D Обновленный", "src" : "site.ru/galery-tpl/galery-new.php", "type" : "iframe"}'  href="javascript:;" class="link_3D zoom">Обновленный</a>


in the gallery-new.php file

<div class="thumb-item">  
<img class="img-responsive lazy" src="/assets/images/3d/new/1.jpg" alt="Alt">
<img class="img-responsive lazy" src="/assets/images/3d/new/2.jpg" alt="Alt">
<img class="img-responsive lazy" src="/assets/images/3d/new/3.jpg" alt="Alt">
</div>
<script>
$(".thumb-item").brazzersCarousel();
</script>


in a normal popup window works. and in the frame it writes an error

Uncaught ReferenceError: $ is not defined
    at

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2018-06-01
@mannaro

jquery not included on this page?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question