magnific-popup


Magnific Popup Plugin Not Showing when Previewed in Browser


The code works, but for some reason the effect does not work when I open site in browser window (firefox). I did try a different browser but same thing. I am using TextWrangler to write my website. I also have Dreamweaver and I tried that too, but for some reason the plugin won't work...so then I used CodePen to see if code works and it does! Is there any tips or hints to why the plugin does not show when previewed in browser?
Here is Magnific Popup Documentation
I linked and downloaded the Magnific Popup css and js files.
I tried it in CodePen and it works I just changed on the image
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Gallery Test</title>
<!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="dist/magnific-popup.css">
<!-- jQuery 1.7.2+ or Zepto.js 1.0+ -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- Magnific Popup core JS file -->
<script src="dist/jquery.magnific-popup.js"></script>
</head>
<body>
<h1>Gallery Test</h1>
<a class="image-popup-vertical-fit" href="images/yellow-cactus.jpg" title="Yellow Cactus">
<img src="images/yellow-cactus-small.jpg">
</a>
<script>
$(document).ready(function() {
$('.image-popup-vertical-fit').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
});
</script>
</body>
</html>
Finally I figured what I did wrong, it was a typo in my jquery library link. It didn't start off with "http:"
Simple is always the easiest things overlooked!

Related Links

Magnific popup specific size
Magnific popup scroll issue
Does it only work on wordpress?
Magnific Popup scroll issues with iframe and iOS
How to apply magnific pop to image preview after revoke the object url
How to override magnific popup inline markup
Magnific pop-up only links to you tube
Magnific Popup close button placed in invalid html?
Magnific Popup - Google Maps Embed API must be used in an iframe
Magnific Popup Plugin Not Showing when Previewed in Browser
Magnific Popup Wordpress
Magnific vs PhotoSwipe
How to adjust video size magnific popup
$.magnificPopup.open() callbacks is not working
How do i setup magnific-popup
magnific-popup - re-initiate on ajax content

Categories

HOME
maven
multithreading
wso2-am
webpack
reserved
bookshelf.js
sharepoint-designer
cakephp-2.5
uber-api
add
adfs
amazon-cloudformation
nstableview
flask-wtforms
jsprit
systemc
connection-string
zapier
clickonce
intentfilter
p-value
angular2-aot
tdd
minitab
windows-server-2000
subdomains
madlib
iframe-resizer
scorm2004
grails-3.1
perlin-noise
azure-sql-database
accelerate-framework
gammu
overriding
stacked
swisscomdev
streamsets
graphenedb
unoconv
mapzen
firebase-admin
galleria
babel-core
logfiles
parentheses
jlink
fancybox-2
drupal-6
carrot
sqlclient
account-kit
query-performance
gnome-shell-extensions
objective-c-swift-bridge
word-vba-mac
phishing
trash
autorest
jwplayer7
nsviewcontroller
moveit
ready-api
independentsoft
iad
sdhc
icu4j
feedback
fouc
content-length
android-listview
service-accounts
umbraco6
gwidgets
oxwall
id3v2
device-manager
internet-connection
terminfo
transcoding
geos
soundtouch
eventlistener
referrer
rdoc
bluepill
gdata-api
word-processor
jspinclude
nsobject
doh
spyware
mod-auth
subgurim-maps
joyent
cinema-4d
servicehost
yetanotherforum
celltable
actionview
mongomapper
remember-me
gamequery
revisions
mozilla-prism
castle-monorail
port-number
uiq3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App