dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.38k stars 3.49k forks source link

Ajax with Html page #1065

Open isavvy opened 6 years ago

isavvy commented 6 years ago

Why this plugin doesn’t work with a full html page, even though it is set as Ajax? I’m trying to use a magnific popup to show this page https://www.thepcwow.com/ajax/gur.html But notne of my attempts worked, and on iFrame it gets the black bkg, and I can’t change that either... what should I do?

boatkung commented 6 years ago

I guess Ajax wouldn't work because of CORS. iframe is a right choice but you need to custom markup and style them by yourself http://jsfiddle.net/boatkung/eg8xw9d1/

(default markup made for iframe of video. It will keep 16/9 ratio and too much wide for your content)