
function fetch(url){
	$.getJSON(url,function(x,st){
		if(st==='success'){

			if(x.count>0){

				var _ts=x.topics;
				$.each(_ts,function(i,t){

					//well
					if(t.comments_count>10){
						var _ps=t.photos;
						$.each(_ps,function(j,p){
							addIMG(p.alt,p.title);
						});
					}else{
						//not popular
					}
				});

			}
		}
	});
}


function addIMG(alt,title){
	// todo 
	if(!!alt){

		var img='<img src="'+alt+'" title="'+title+'" class="img-thumbnail" width="58px" >';

		$(img).insertAfter('#_start');
	}


}


var latest;

$('.girls').delegate('img','click',function(){
	if(!!latest){
		sea(latest,'58px');
	}
	sea($(this),'auto');
	latest=$(this);

});

function sea(obj,arg){
	$(obj).css('width',arg);
	$(obj).css('height',arg);
}


var _urls=[
'https://api.douban.com/v2/group/407518/topics?count=40&callback=?',
'https://api.douban.com/v2/group/kaopulove/topics?callback=?',
'https://api.douban.com/v2/group/ai_Junko/topics?callback=?',
'https://api.douban.com/v2/group/haixiuzu/topics?callback=?',
];

function shuffle(o){ 
	for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
}

function letsdance(){

	shuffle(_urls).every(function(x){
		fetch(x);
		return true;
	});
}

letsdance();

@@ -474,19 +474,17 @@
 width=%225
-8px
+%25
 %22 %3E';%0A%0A%09
@@ -618,11 +618,9 @@
 t,'5
-8px
+%25
 ');%0A
@@ -812,18 +812,17 @@
 s?count=
-40
+2
 &callbac
@@ -819,32 +819,34 @@
 =2&callback=?',%0A
+//
 'https://api.dou
@@ -884,32 +884,34 @@
 cs?callback=?',%0A
+//
 'https://api.dou
@@ -956,16 +956,18 @@
 ack=?',%0A
+//
 'https:/

Update girls.js