Skip to content

Instantly share code, notes, and snippets.

@svnlto
Created January 8, 2011 16:48
Show Gist options
  • Save svnlto/770982 to your computer and use it in GitHub Desktop.
Save svnlto/770982 to your computer and use it in GitHub Desktop.
search body for certain attr (loop)
var
className = $('body').attr('class'),
galleryPages = ['content-item-24', 'content-item-25'],
len = galleryPages.length;
for (i=0; i<len; i++) {
if (className === galleryPages[i]) {
$(imageTrigger).click();
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment