Posted in
5873
1:40 am, June 15, 2022
Load fancybox modal on hash check
I was just testing this code, not working on the hash check as yet.
HTML
<div class="hide" id="modal">modal</div>
<a data-fancybox="modal" data-src="#modal" href="javascript:;">Open Modal</a>
CSS
.hide {
display:none;
}
Scripts
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>
Javascript
/*
$(document).ready(function(){
$("#modal").fancybox();
});
*/
modal
Open ModalExternal Link for Load fancybox modal on hash check
View Statistics
This Week
125
This Month
484
This Year
2113
Add Comment
Other Items in modals
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress