magnific-popup


Modal dialog. - Confusing


I am trying to open a simple modal dialog and I have been struggling to do this. Can
any one please help? This is the HTML code(please remove pre). This simply doesnot work.
Can any one please tell **strong text**me why? I have not been getting the kind of output that I really
need.
Any one help me.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="css/magnific-popup.css" rel="stylesheet" />
<script src="js/jquery.magnific-popup.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" ></script>
</head>
<body>
<a class="popup-modal" href="#test-modal">Open modal</a>
<div id="test-modal" class="white-popup-block mfp-hide">
<h1>Modal dialog</h1>
<p>You won't be able to dismiss this by usual means (escape or
click button), but you can close it programatically based on
user choices or actions.</p>
<p><a class="popup-modal-dismiss" href="#">Dismiss</a></p>
</div>
<script>
$(function () {
$('.popup-modal').magnificPopup({
type: 'inline',
preloader: false,
focus: '#username',
modal: true
});
$(document).on('click', '.popup-modal-dismiss', function (e) {
e.preventDefault();
$.magnificPopup.close();
});
});
</script>
</body>
</html>
Load jquery before the magnific-popup plugin, it relies on jquery (I've never used it but I'm assuming so seeeing as it is pre-appended withfixed 'jquery')
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="css/magnific-popup.css" rel="stylesheet" />
<!-- Jquery loaded first here... -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" ></script>
<!-- Plugins after... -->
<script src="js/jquery.magnific-popup.js"></script>
</head>
<body>

Related Links

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
Magnific-popup cancels all requests on open
Magnific Popup fails to work with multiple galleries on a page

Categories

HOME
ms-access
openlayers
atom-editor
urbancode
plot
react-virtualized
vmware
xmpp
leon
binary-tree
google-project-tango
ojdbc
fancybox
swagger-ui
esper
slurm
maude-system
fancybox-3
izpack
modx-revolution
u-sql
dtrace
quartz-scheduler
iolanguage
progressive-web-apps
jsdoc
viewport
ml
physics-engine
accessor
kudan
rst2pdf
ejabberd-module
stormpath
ecto
hybridauth
io-redirection
lto
leading-zero
squib
eclipse-scout
reportingservices-2005
nand2tetris
midl
qcombobox
jedis
zip4j
qsslsocket
python-c-api
hls.js
dotnetzip
google-perftools
np-complete
memory-alignment
pdfclown
probability-density
mikroc
skobbler-maps
flash-cs5
persist
apachebench
bluegiga
rhino-servicebus
thredds
cannon.js
android-listview
tableau-online
ami
census
dundas
python-green
oxwall
angularjs-ng-click
relocation
rdtsc
nsbutton
gulp-less
internet-connection
rdl
navigationservice
funcunit
datagridviewcolumn
balanced-payments
gwt-rpc
django-nonrel
seed
random-seed
sharp-repository
flashvars
jquery-knob
trusted
venn-diagram
enter
jquery-ui-layout
transactionscope
recent-documents
mongomapper
jmock
dmx512
jquery-ui-droppable
asp.net-profiles
multi-tier
libs
photoshop-cs4

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