{"size": 1388, "ext": "js", "max_stars_repo_path": "assec/public/js/main.js", "max_stars_repo_name": "1254715625/cpzx", "max_stars_repo_stars_event_min_datetime": "2017-07-07T14:14:36.000Z", "max_stars_repo_stars_event_max_datetime": "2018-04-14T07:48:13.000Z", "max_issues_repo_path": "assec/public_old/js/main.js", "max_issues_repo_name": "1254715625/cpzx", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assec/public_old/js/main.js", "max_forks_repo_name": "1254715625/cpzx", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.7741935484, "max_line_length": 164, "alphanum_fraction": 0.3962536023}
// window.web_url = 'http://www.view.cc';
var home = {
    cpzx : function(url){
        $.get(url+'/data/cpzx',function(r){
            var r = $.parseJSON(r);
            var content = '',type='';
            $.each(r,function(ind,val){
                if( ind%2 == 0){type = 'left';}else{type = 'right';}
                var data = '<div class="important-t-list0 '+type+'  clearfix cpzxs"><ul class="important-t-list-l im-js">';
                $.each(val,function(index,value){
                    console.log(index);
                    if(value['typename']){
                        if(index == 0){
                            data = data + '<li><i class="num'+(ind+1)+'">'+value['typename']+'</i>'+
                                '<a target="_blank" title="'+value['title']+'" href="'+url+'/News/content/'+value['id']+'">'+value['title'].substr(0,20) +
                                '</br><span>' + value['abstract'].substr(0,50) + '…</span></a></li>';
                        }else{
                            data = data + '<li><a href="'+url+'/News/content/'+value['id']+'" title="'+value['title']+'">'+value['title'].substr(0,20) +'</a></li>';
                        }
                    }

                })
                data = data + '</ul></div>';
                content = content + data;

            })

            $('.w100p').html(content);
        })
    }
}