my code
@section Scripts { <script src="~/Common/Scripts/jquery.fancybox.js"></script> <script src="~/Common/Scripts/jquery.fancybox-media.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".fancybox").fancybox({
openEffect: 'none',
closeEffect: 'none'
});
$('.fancybox-media').fancybox({
openEffect: 'none',
closeEffect: 'none',
helpers: {
media: {}
}
});
$('[data-toggle=offcanvas]').click(function () {
$('.row-offcanvas').toggleClass('active');
});
});
</script>
}
3 Answer(s)
-
0
Hi,
Can you share if there is an error you are getting ?
-
0
jquery.fancybox-media.js:89 Uncaught TypeError: Cannot read property 'helpers' of undefined(anonymous function) @ jquery.fancybox-media.js:89(anonymous function) @ jquery.fancybox-media.js:199 jquery.min.js:4Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check <a class="postlink" href="https://xhr.spec.whatwg.org/">https://xhr.spec.whatwg.org/</a>.
-
0
Hi,
We don't have any knowdledge of fancybox plugin. You can first check which version of jquery is compatible with your version of fancybox.
If that does not help, you can serach on the internet for this problem.