Created
September 17, 2015 14:12
-
-
Save knowlet/d6d7307f28bd9a30b80e to your computer and use it in GitHub Desktop.
put ypur own image url into slides!
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
$(".sl-block-content").click(function (e){ | |
if (this.innerHTML=="") { | |
var URL = prompt("Please input the image src") | |
URL && $(this).append('<img src="' + URL + '">') | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment