js代码
<script type="text/javascript" src="js/jquery.magnific-popup.js"></script> <script type="text/javascript"> if (/iP(hone|od|ad)/.test(navigator.platform)) { $('*').css({ "cursor": "pointer" }); } $('.preloader').delay(3500).fadeOut(600); $(document).ready(function () { $('.magnificPopup__Box').magnificPopup({ delegate: 'a', type: 'image', removalDelay: 300, callbacks: { beforeOpen: function () { this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure magnificPopup__Animus'); this.st.mainClass = this.st.el.attr('data-effect'); } }, closeOnContentClick: true, midClick: true }) }); </script>