Skip to content

Commit

Permalink
Upcoming feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ModelEarth committed May 6, 2024
1 parent ae2e99b commit 9e3ce2f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"},

Expand Down Expand Up @@ -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 <a href='/OpenFootprint'>Label Template</a>.<br><br>");
} 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);
Expand Down Expand Up @@ -281,7 +291,12 @@
<!--
Also see <a href="no-d3.html">$.getJSON</a>
-->
<div id="pageTitleText" style="padding-top: 10px;"></div>

<!--
If we reactivate, only show when contains text
-->
<div id="pageTitleText" style="display:none;padding-top: 10px;"></div>


<!--
<div id="resultLoading" style="padding-top: 10px;">Loading..<br></div>
Expand Down

0 comments on commit 9e3ce2f

Please sign in to comment.