From 9e3ce2f7563cac90727e93c731e1d59aeeaf5842 Mon Sep 17 00:00:00 2001 From: modelearth Date: Mon, 6 May 2024 14:53:05 -0400 Subject: [PATCH] Upcoming feeds --- view/index.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/view/index.html b/view/index.html index a70f1ea..6441c95 100644 --- a/view/index.html +++ b/view/index.html @@ -135,6 +135,10 @@ {"value":"epd","name":"Environmental Product Declarations (EPD)"}, ]} +// To develop +// {"value":"Continents","name":"Emissions by Continent"}, +// {"value":"jobs","name":"Jobs Random Forest Accuracy"}, + // 403 - Get a new API to activate // {"value":"diffbot","name":"Diffbot"}, @@ -184,12 +188,18 @@ let url = ""; selected_array = []; + // https://github.com/ModelEarth/data-commons/blob/main/docs/air/emissions/data/API_EN.ATM.CO2E.PC_DS2_zh_csv_v2_45186.csv + if (hash.feed == "usda") { // Nutrition label $('#pageTitle').html("Nutrition label"); url = "https://api.nal.usda.gov/fdc/v1/food/2015943?api_key=bLecediTVa2sWd8AegmUZ9o7DxYFSYoef9B4i1Ml"; //selected_array = ["foodAttributes"]; selected_array = []; $('#pageTitleText').html("View Label Template.

"); + } else if (hash.feed == "jobs") { + $('#pageTitle').html("Jobs Random Forest Accuracy"); + url = "/RealityStream/output/jobs/CV-RandomForestClassifier_accuracy.yaml"; + } else if (hash.feed == "diffbot") { quantity = 2; $('#pageTitle').html("DiffBot JSON API - ZIP CODE " + hash.zip); @@ -281,7 +291,12 @@ -
+ + + +