Created
December 28, 2012 08:51
-
-
Save netsi1964/4396044 to your computer and use it in GitHub Desktop.
A CodePen by Sten Hougaard. Fancybox - iframe in lightbox - A simple boilerplate to using the Fancybox jQuery plugin to open iframe in a lightbox.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container fluid"> | |
<div class="row"> | |
<h1>Fancybox - iframe in lightbox</h1> | |
<blockquote>A simple boilerplate to using the Fancybox jQuery plugin to open iframe in a lightbox.</blockquote> | |
</div> | |
<div class="row">View my blog <a href="http://www.netsi.dk/wordpress" data-fancybox-type="iframe" class="various">netsi</a> in an lightbox iFrame, using <a href="http://fancyapps.com/fancybox/" data-fancybox-type="iframe" class="various">fancybox</a>. | |
</div> | |
<div class="row"> | |
<h4>HTML</h4> | |
<code><a href="http://www.netsi.dk/wordpress" <strong>data-fancybox-type="iframe" class="various"</strong>>netsi</a></code> | |
</div> | |
<div class="row"> | |
<h4>javascript</h4> | |
<pre>$(document).ready(function() { | |
$(".various").fancybox({ | |
maxWidth : 900, | |
maxHeight : 600, | |
fitToView : false, | |
width : '700px', | |
height : '90%', | |
autoSize : false, | |
closeClick : false, | |
openEffect : 'none', | |
closeEffect : 'none' | |
}); | |
});</pre> | |
</div> | |
</div> | |
<link rel="stylesheet" href="http://fancyapps.com/fancybox/source/jquery.fancybox.css?v=2.1.3" type="text/css" media="screen" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$(".various").fancybox({ | |
maxWidth : 900, | |
maxHeight : 600, | |
fitToView : false, | |
width : '700px', | |
height : '90%', | |
autoSize : false, | |
closeClick : false, | |
openEffect : 'none', | |
closeEffect : 'none' | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strong { | |
color: #262626; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment