Skip to content

Instantly share code, notes, and snippets.

@jacksonhenry3
Created August 5, 2012 02:39
Show Gist options
  • Select an option

  • Save jacksonhenry3/3261216 to your computer and use it in GitHub Desktop.

Select an option

Save jacksonhenry3/3261216 to your computer and use it in GitHub Desktop.
basic food look up (based on FDA data)
<script type="text/javascript">
acidic_foods = {'Birds nest soup': '7.20 - 7.60','Cheese, Camembert': '7.44','Clams': '6.00 - 7.10','Coconut, fresh': '5.50 - 7.80','Coconut milk': '6.10 - 7.00','Coconut preserves': '3.80 - 7.00','Conch': '7.52 - 8.40','Corn': '5.90 - 7.30','Corn, frozen, cooked': '7.33 - 7.68','Corn, Golden Bantam, cooked on cob': '6.22 - 7.04','Crab meat':'6.50 - 7.00','Eggs, new-laid, whole': '6.58','White': '7.96','Graham Crackers': '7.10 - 7.92','Grass jelly': '5.80 - 7.20','Hominy, cooked': '6.00 - 7.50','Lobster, cooked': '7.10 - 7.43','Milk, peptonized': '7.10','Olives, black': '6.00 - 7.00','Olives, ripe': '6.00 -7.50','Peanut Soup': '7.5','Sauce, Shrimp': '7.01 - 7.27','Shrimp': '6.50 - 7.00','Soda Crackers': '5.65 - 7.32','Soy infant formula': '6.60 - 7.00','Soy bean curd (tofu)': '7.20','Soybean milk': '7.00','Spinach, cooked': '6.60 - 7.18','Tea': '7.20','Tofu (soybean Curd)': '7.20','Wax gourd drink': '7.20'}
val = prompt("type in the name of the food you would like to see basicness of in the form of 'Soybean milk' (no quotes)")
if (val === 'list'){document.write(acidic_foods)}
else{document.write(acidic_foods[val])}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment