@@ -15,13 +15,13 @@ window.onload = (event) => {
1515
1616async function stateChange ( state ) {
1717 if ( state === 'loggedIN' ) {
18- document . getElementById ( 'please-login' ) . style . visibility = 'hidden ' ;
19- document . getElementById ( 'data-view' ) . style . visibility = 'visible ' ;
18+ document . getElementById ( 'please-login' ) . style . display = 'none ' ;
19+ document . getElementById ( 'data-view' ) . style . display = 'block ' ;
2020 setQuestionnaries ( ) ;
2121
2222 } else {
23- document . getElementById ( 'please-login' ) . style . visibility = 'visible ' ;
24- document . getElementById ( 'data-view' ) . style . visibility = 'hidden ' ;
23+ document . getElementById ( 'please-login' ) . style . display = 'block ' ;
24+ document . getElementById ( 'data-view' ) . style . display = 'none ' ;
2525 }
2626}
2727
@@ -71,7 +71,7 @@ async function showQuestionnary(questionaryId) {
7171 highlightQuestionnaryButton ( questionaryId ) ;
7272 console . log ( '## showQuestionnary' , questionaryId ) ;
7373 if ( questionaryId == null ) {
74- document . getElementById ( 'questionnary-view' ) . style . visibility = 'hidden ' ;
74+ document . getElementById ( 'questionnary-view' ) . style . display = 'none ' ;
7575 return ;
7676 }
7777
@@ -80,7 +80,7 @@ async function showQuestionnary(questionaryId) {
8080 document . getElementById ( 'button-download' ) . onclick = ( ) => {
8181 exportCSVFile ( headers , patientsData , 'patients' ) ;
8282 }
83- document . getElementById ( 'questionnary-view' ) . style . visibility = 'visible ' ;
83+ document . getElementById ( 'questionnary-view' ) . style . display = 'block ' ;
8484}
8585
8686const rowItems = [ 'name' , 'surname' , 'nationality' ] ;
0 commit comments