bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
When I use loadCallback event, I notice that it is fired before loading iframe. Maybe it will be better to use something like this: h.on('load', function(){k(a.loadCallback);}); instead of directly call event.
Maybe it will be good to add id of iframe, so it will be easy referrable outside bPopup.
Also, is there a way to auto-size iframe? I try to change its height at loadCallback function, but this approach is not very clear as I think.
When I use loadCallback event, I notice that it is fired before loading iframe. Maybe it will be better to use something like this: h.on('load', function(){k(a.loadCallback);}); instead of directly call event. Maybe it will be good to add id of iframe, so it will be easy referrable outside bPopup. Also, is there a way to auto-size iframe? I try to change its height at loadCallback function, but this approach is not very clear as I think.
Thank you for support.