Skip to content

Instantly share code, notes, and snippets.

@neuling
Created February 10, 2016 23:44
Show Gist options
  • Save neuling/389be73a4715e25fca0a to your computer and use it in GitHub Desktop.
Save neuling/389be73a4715e25fca0a to your computer and use it in GitHub Desktop.
$('.choices').hide();
setTimeout(function(obj) {
console.log('obj',$(obj).attr('id'));
$(obj).hide();
// check if last, if so load new ones
console.log('length',$('.photos .photo:visible').length);
if($('.photos .photo:visible').length<=1) $('.photos').load("/?action=profiles",function() {
if($('.photos .photo:visible').length>1) $('.choices').show();
startLoadAnimation();
userCounter=0;
$('#user-'+userCounter).css('background-image','url('+$('#user-'+userCounter).data('photo')+')');
});
},250,obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment