Created
February 10, 2016 23:44
-
-
Save neuling/389be73a4715e25fca0a 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
$('.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