function renderFrontPage()

in site/js/projects.js [1100:1132]


function renderFrontPage() {
    var numcommittees = 0;
    var i;
    for (i in committees) numcommittees++;
    var curPodlings = 0;
    for (i in podlings) curPodlings++;

    var nsubs = 0; // number of projects with DOAP that do not have same name than a committee
    for (i in projects) {
        i = projects[i];
        if (i.pmc != 'incubator' && !isCommittee(i.name)) {
            nsubs++;
        }
    }
    var initiatives = curPodlings + numcommittees + nsubs; // podlings + committees + sub-projects
    initiatives -= initiatives % 50; // round down to nearest 50
    var obj = document.getElementById('details');
    obj.innerHTML = ""
    if (urlErrors.length > 0) {
        obj.innerHTML += "<p><span style='color: red'><b>Warning: could not load: "+urlErrors.join(', ')+"</b></span></p>"
    }
    obj.innerHTML
        += "<h3 style='text-align: center;'>There are currently <span style='color: #269;'>" + initiatives + "+</span> open source initiatives at the ASF:</h3>"
        + "<ul style='width: 400px; margin: 0 auto; font-size: 18px; color: #269; font-weight: bold;'>"
        + "<li>" + numcommittees + " committees managing " + (numcommittees + nsubs) + " projects</li>"
        + "<li>5 special committees*</li>"
        + "<li>" + curPodlings + " incubating podlings</li></ul>"
        + "<p><small>*Infrastructure, Travel Assistance, Security Team, Legal Affairs and Brand Management</small></p>";

    renderCommitteeEvolution();
    renderPodlingsEvolution();
    renderLanguageChart();
}