Created
August 23, 2018 09:16
-
-
Save locvfx/358515d07789375d681d40aca9568112 to your computer and use it in GitHub Desktop.
Display thumbnail image when mouse hover #javascript
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
| <span class="help-block"><a rel="featured_image_popover" href="<?=$data['post_featured_image'];?>" data-img="<?=$data['post_featured_image'];?>" target="_blank">image's URL</a></span> | |
| $('a[rel=featured_image_popover]').popover({ | |
| html: true, | |
| trigger: 'hover', | |
| placement: 'bottom', | |
| content: function () { return '<img class="img-responsive" src="' + $(this).data('img') + '" />'; } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment