Created
June 27, 2013 06:09
-
-
Save jufemaiz/5874312 to your computer and use it in GitHub Desktop.
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
// Beginnings of a plugin for apartment therapy house tours | |
images = $(".thumb-wrapper img").map(function(i,el){ return el.src.replace("._s.centercrop","").replace("_h.100","").replace("_w.100","").replace("_.jpg",".jpg");}); | |
main_image = $(".main-image"); | |
images.each(function(i,el) {main_image.append($("<img src="+el+" />"))}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment