magnific-popup

How can I get this google photos embed to work inside magnific popup

放肆的年华 提交于 2020-04-18 05:43:47
问题 I have had this serious issue for a while and cant seem to solve it. I have been asking many questions on online forums and haven't gotten very close to the answer... here is the issue. I need to try and get this google photos embed to work inside a popup. What happens is that the embed inside the popup only works if it is opened up really quickly before the page has finished loading. Although this is true once the popup is closed and opened again it then fails to load embed. Also If the

Magnific-Popup, Limit items to direct siblings

大城市里の小女人 提交于 2020-01-22 22:55:13
问题 How can I limit magnific-popup gallery to direct siblings? When I open an image from the first .child, I don’t want the images from the second .child to be in the gallery. The html structure: <div class="parent"> <div class="child"> <a class="image-link" href="img/red1.jpg"><img src="img/red1.jpg"></a> <a class="image-link" href="img/red2.jpg"><img src="img/red2.jpg"></a> <a class="image-link" href="img/red3.jpg"><img src="img/red3.jpg"></a> <a class="image-link" href="img/red4.jpg"><img src=

Autoplay (slideshow) a lightbox gallery in magnific lightbox?

☆樱花仙子☆ 提交于 2020-01-05 10:27:17
问题 I've been looking for a responsive lightbox that will autoplay a gallery starting at a specified point in the gallery. Magnific Popup looks pretty solid. Anyone have a way for it to act as a lightbox slideshow - that is, have the gallery autoadvance? Looks from the Magnific documentation like there should be a way that makes use of magnificPopup.next(); , magnificPopup.updateItemHTML(); and/or callback events, but that's beyond my javascripting thanks! edit: if you're thinking "umm fancybox's

Define owl carousel with data attribute in magnific popup callbacks function

久未见 提交于 2019-12-24 20:02:30
问题 I have implement Owl carousel in Magnific Popup . and, It is normaly working fine. if, I have use simple function $('.owl-carousel').owlCarousel({autoplay:true, items:1}) but, Owl carousel does not work when i define Owl carousel with data attribute. HTML: <a class="ajax-popup btn btn-dark" href="ajaxproject.html">Click To Open Popup</a> ajaxproject.html file: <div class="container ajax-container"> <h2 class="text-7 text-center mb-4">Title 1</h2> <div class="row"> <div class="col-sm-7"> <div

TypeError: $(…).magnificPopup is not a function

笑着哭i 提交于 2019-12-24 00:56:40
问题 I'm on chrome developer edition. The library is not loaded and I can't figure out why. The error is reported in the chrome console. This is my code: <ul><li><a class="mediaimage-link" href="~/img/HP/mediakit/The-CorPath-Vascular-Robotic-System_HR.jpg"><img src="~/img/HP/The-CorPath-Vascular Robotic-System-187.jpg" alt=""> </a></li> <li><a href="https://www.youtube.com/watch?v=TnQsToiKKgw?rel=0&showinfo=0" class="popup-youtube"> <img src="~/img/HP/Iyer-Video-187.jpg" alt=""></a> </li> </ul> $

Magnific Popup action before close

风格不统一 提交于 2019-12-23 09:34:49
问题 I have implemented Magnific Popup in my solutions and I am using Bootbox to get confirmation from the user that he wants to close the window without saving changes, etc. I hooked up my custom function to close callback but it doesn't work as expected. $('#divThumbnails').magnificPopup({ delegate: 'a', type: 'inline', midClick: true, callbacks: { close: function () { var confirm = bootbox.confirm('Are you sure?', function(result) { }); if (confirm) return true; else return false; } } }); This

Magnific popup: getting “The image could not be loaded” and image url is undefined

泪湿孤枕 提交于 2019-12-22 18:23:46
问题 I cannot make magnific popup work for some reason getting "The image could not be loaded" all the time. The image url is "undefined". <div class="album"> <a href="http://lorempixel.com/1024/768/?a=1"> <img src="http://lorempixel.com/168/168/?a=1" /> </a> <a href="http://lorempixel.com/1024/768/?a=2"> <img src="http://lorempixel.com/168/168/?a=2" /> </a> <a href="http://lorempixel.com/1024/768/?a=3"> <img src="http://lorempixel.com/168/168/?a=3" /> </a> </div> <script> $(function() { $('div

“TypeError: $(…).magnificPopup is not a function” in nopCommerce 3.40

半城伤御伤魂 提交于 2019-12-22 18:01:59
问题 The following code displays picture thumb nails and attaches a magnificPopup event. it also embeds a picture within a picture. This all worked a few days ago but now broken it somehow and now all i get is a js type error. I have tried fiddling around with jQuery.noConflict() even though i have not added any new libs or updated old ones but that of course did nothing. i know that the problem has to do with magnificPopup somehow because if i simply remove the script from the code everything

Adding some text below the video popup

风流意气都作罢 提交于 2019-12-21 21:31:23
问题 I want to add some text below the my video popup, like the example picture: How can I do that? My code: $(document).ready(function () { $.magnificPopup.open({ items:[ { src: 'http://www.youtube.com/watch?v=p_I70TYm9qQ', type:'iframe' }, ], type: 'iframe' }); }); 回答1: By default caption works only with image type. To make it work with iframe type, you'll need to add element that will hold title to iframe markup and parse it in markupParse callback, e.g.: callbacks: { markupParse: function

How do I define a gallery of inline content in HTML for use with Magnific-Popup ?

﹥>﹥吖頭↗ 提交于 2019-12-20 01:03:42
问题 I have many galleries on a page which are launched from their respective buttons. I like the idea of defining the markup for the galleries in the page alongside the button and then hiding using the .mfp-hide . However I cannot get the popup to activate when I add the delegate keyword (it does otherwise). Here is the code I have so far, HTML <div id="gallery1" class="mfp-hide"> <div class="slide"> ... some content for slide 1 ... </div> <div class="slide"> ... some content for slide 2 ... <