Sha256: b3e0b93f1cb311910357605933cd697873146f1d352b7d2926f5772ce3de09f7
Contents?: true
Size: 477 Bytes
Versions: 19
Compression:
Stored size: 477 Bytes
Contents
$(document).ready(function(){ $("#posts img").each(function(i){ // adds a caption to the image with the content of the alt tag if ($(this).attr("alt").length) { $(this).after("<div class=\"image-footnote\">" + $(this).attr("alt") + "</div>"); } // resizes the images and takes it out of the borders of the body div if it is big enough if($(this)){ // okay this is really complicated because of the browser scaling and stuff. Will come back to this } }); });
Version data entries
19 entries across 16 versions & 1 rubygems