Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect health data to IOT theme #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function gl() {


function init() {
momInnerTabList[0] = {
/* momInnerTabList[0] = {
'tabId': 'momIT0',
'displayName': 'Blood pressure',
'type': 0
Expand All @@ -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
};
}; */
}


Expand All @@ -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;
Expand Down Expand Up @@ -216,6 +224,8 @@ function addBabyTab(tabName, isMine, babyId) {
htmlCode += '<br><br>';
htmlCode += '<div id=\''+tabInnerTabs+'\'></div>';
htmlCode += '<div id=\''+tabInnerGraphs+'\'></div>';
htmlCode += '<br><br>';
htmlCode += '<input type=\'button\' value=\'Baby Health\' class=\'buttonGeneric\' onclick=\'babyHealth()\'>';
htmlCode += '</div>';
$('#target').append(htmlCode);
$('#'+tabId).hide();
Expand Down Expand Up @@ -573,6 +583,8 @@ function addMomTabs() {
htmlCode += '</div>';
htmlCode += '<div id=\'momInnerGraphs\'>';
htmlCode += '</div>';
htmlCode += '<br><br>';
htmlCode += '<input type=\'button\' value=\'My health\' class=\'buttonGeneric\' onclick=\'momHealth()\'>';
htmlCode += '</div>';
$('#target').append(htmlCode);

Expand Down