function generateManifest() { initHeaderAndFilters(null); // no header var profStats = new ProfileStats(); $("") .append( $("") .addClass("title") .text("Page Name") ) .append( $("") .addClass("title") .text("Stats Used") ) .appendTo("#manifest-table"); $.each(navigationItems, function(i, navItem) { var statNames; if (navItem.config == null) return; else if (navItem.profile) { //statsText = "Profile Stats:
"; $.getScript(/stats/ + navItem.config, function() { var statsText = ""; $.each(reportOptions.availableCharts, function(i, chart) { var fullStatnames = []; //console.log(chart.types); $.each(chart.types, function(i, type) { fullStatnames = fullStatnames.concat(profStats.constructStatNames(chart, type, config.gameTypes)); }); //console.log(fullStatnames); statsText += ("" + chart.name + " (" + chart.description + ") :
[" + fullStatnames.join(", ") + "]

"); }); populateTableRow("#manifest-table", navItem.title + "
(Profile_Stat)", statsText); }); } else { //statNames = navItem.config; //populateTableRow("#manifest-table", navItem.title + "
(Telemetry_Stat)", statNames); } }); } function populateTableRow(tableId, title, text) { $(tableId).append( $("") .append( $("").html(title) ) .append( $("").html(text) ) ) }