Last active
January 25, 2018 11:36
-
-
Save az1979/97b1b51e1a3a5e8fc5274dd40184376a to your computer and use it in GitHub Desktop.
WordPressの画像をモーダルウィンドウで表示しよう! - JavaScript
This file contains 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
jQuery(document).ready(function() { | |
jQuery('.entry-content a[href$=".png"],a[href$=".gif"],a[href$=".jpg"],a[href$=".jpeg"]').has('img').magnificPopup({ | |
type:'image', | |
closeOnContentClick: true, | |
showCloseBtn: false, | |
image: { | |
verticalFit: false | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment