From 2a3f0f53f32d5a594381c607a7eacbc2b562084e Mon Sep 17 00:00:00 2001 From: Ralph Haussmann Date: Tue, 22 Jul 2014 18:57:58 +0200 Subject: [PATCH 1/3] Use an option control to select a mineral water for comparison - Remove buttons and use an option control instead - Don't let user compare his tap water with his tap water. That feature was very confusing. --- src/data/mineralwaesser.js | 8 ++++---- src/index.html | 19 ++++++++++++------- src/js/app.js | 8 ++++++++ src/js/comparison.js | 18 +++++++----------- 4 files changed, 31 insertions(+), 22 deletions(-) diff --git a/src/data/mineralwaesser.js b/src/data/mineralwaesser.js index 7649b3e..67596ff 100644 --- a/src/data/mineralwaesser.js +++ b/src/data/mineralwaesser.js @@ -1,5 +1,5 @@ tw.data.referenceWaters = { - "wueteria": { + "Wüteria": { "natrium": 10.7, "kalium": 2.6, "calcium": 118, @@ -9,7 +9,7 @@ tw.data.referenceWaters = { "sulfat": 68, "sources": ["http://www.wueteria.de/unser_wasser/index.php"] }, - "teusser": { + "Teusser": { "natrium": 53, "kalium": 8, "calcium": 565, @@ -19,7 +19,7 @@ tw.data.referenceWaters = { "sulfat": 1450, "sources": ["http://www.teusser.de/index.php?id=225"] }, - "volvic": { + "Volvic": { "natrium": 11.6, "kalium": 6.2, "calcium": 11.5, @@ -29,7 +29,7 @@ tw.data.referenceWaters = { "sulfat": 8.1, "sources": ["http://books.google.de/books?id=lzEoGWyqMBwC&pg=PA198&lpg=PA198&dq=volvic+nitratgehalt&source=bl&ots=pJEE0i9HwK&sig=OI_PeSr_QGBCfpeVCu70N4ohy8g&hl=de&ei=4-yvSuHrJ8jK_gbV0p3ZDA&sa=X&oi=book_result&ct=result&resnum=6#v=onepage&q&f=false"] }, - "vittel": { + "Vittel": { "natrium": 7.7, "kalium": 5.2, "calcium": 94, diff --git a/src/index.html b/src/index.html index 0e41088..b27a60b 100644 --- a/src/index.html +++ b/src/index.html @@ -256,14 +256,21 @@

Was steckt in meinem Leitungswasser?