From a4cbb6c552e5d9fc6b73cf5f467a0266082e5ac0 Mon Sep 17 00:00:00 2001 From: Ziran Sun Date: Tue, 24 Sep 2013 16:43:08 +0100 Subject: [PATCH] redirect health data to IOT theme --- js/index.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/js/index.js b/js/index.js index d2f775e..295a86a 100644 --- a/js/index.js +++ b/js/index.js @@ -50,7 +50,7 @@ function gl() { function init() { - momInnerTabList[0] = { +/* momInnerTabList[0] = { 'tabId': 'momIT0', 'displayName': 'Blood pressure', 'type': 0 @@ -69,18 +69,18 @@ function init() { 'tabId': 'momIT3', 'displayName': 'Temperature', 'type': 3 - }; + }; */ - babyInnerTabList[0] = { + /*babyInnerTabList[0] = { 'tabId': 'babyIT0', 'displayName': 'Weight', 'type': 10 - }; + }; babyInnerTabList[1] = { 'tabId': 'babyIT1', 'displayName': 'Temperature', 'type': 11 - }; + }; */ } @@ -92,7 +92,15 @@ function getMyBabies(cbk) { function getOtherBabies(cbk) { queryBabyInfo(cbk); } +function babyHealth(){ + + window.open("http://localhost:8080/health-data/index.html"); +} +function momHealth(){ + //alert ("diverting to Mom health page"); + window.open("http://localhost:8080/health-data/index.html"); +} function addMyBabyInfo(index) { var defName; @@ -216,6 +224,8 @@ function addBabyTab(tabName, isMine, babyId) { htmlCode += '

'; htmlCode += '
'; htmlCode += '
'; + htmlCode += '

'; + htmlCode += ''; htmlCode += ''; $('#target').append(htmlCode); $('#'+tabId).hide(); @@ -573,6 +583,8 @@ function addMomTabs() { htmlCode += ''; htmlCode += '
'; htmlCode += '
'; + htmlCode += '

'; + htmlCode += ''; htmlCode += ''; $('#target').append(htmlCode);