|
|
Line 1: |
Line 1: |
| {{Reading2}} | | {{Reading2}} |
| + | {{ReadingDataPage}} |
| <html> | | <html> |
− |
| |
− | <head>
| |
− | <SCRIPT LANGUAGE="JavaScript">
| |
− |
| |
− | function buildDataTable1(){
| |
− | var index = 0;
| |
− | var data = [];
| |
− | data.push(["07/07", "0.000", "0"]);
| |
− | data.push(["08/07", "0.003", "4.8x10<sup>5</sup>"]);
| |
− | data.push(["09/07", "0.005", "8x10<sup>5</sup>"]);
| |
− | data.push(["10/07", "0.005", "8x10<sup>5</sup>"]);
| |
− | data.push(["13/07", "0.005", "8x10<sup>5</sup>"]);
| |
− | data.push(["14/07", "0.112", "1.792x10<sup>7</sup>"]);
| |
− | data.push(["15/07", "0.008", "1.28x10<sup>6</sup>"]);
| |
− | data.push(["16/07", "0.009", "1.44x10<sup>6</sup>"]);
| |
− | data.push(["17/07", "0.030", "4.8x10<sup>6</sup>"]);
| |
− | data.push(["20/07", "0.364", "5.8x10<sup>7</sup>"]);
| |
− | data.push(["21/07", "0.510", "8.160x10<sup>7</sup>"]);
| |
− | data.push(["22/07", "0.820", "1.312x10<sup>8</sup>"]);
| |
− | data.push(["23/07", "1.016", "1.626x10<sup>8</sup>"]);
| |
− | data.push(["24/07", "1.167", "1.876x10<sup>8</sup>"]);
| |
− | data.push(["27/07", "1.412", "2.259x10<sup>8</sup>"]);
| |
− |
| |
− | var tableHTML = '<table class="dataTable"><tr> <th> Date </th> <th> OD<sub>750</sub> </th> <th> Estimated Cells per ml </th> </tr>';
| |
− | var newline = true;
| |
− | while(newline){
| |
− | tableHTML += '<tr>';
| |
− | for(i2 = 0; i2 < 3; i2++){
| |
− | if(index < data.length){tableHTML += '<td valign="bottom" align="center">' + data[index][i2] + ' </td>';}
| |
− | else{
| |
− | newline = false;
| |
− | }
| |
− | }
| |
− | index += 1;
| |
− | tableHTML += '</tr>';
| |
− | }
| |
− | tableHTML += '</table>';
| |
− | document.getElementById("datatable1").innerHTML= tableHTML;
| |
− | }
| |
− |
| |
− | function buildDataTable2(){
| |
− | var index = 0;
| |
− | var data = [];
| |
− | data.push(["13/07", "0.006", "0.012", "0.015", "9.6x10<sup>5</sup>", "1.92x10<sup>6</sup>", "2.4x10<sup>6</sup>"]);
| |
− | data.push(["14/07", "0.006", "0.018", "0.017", "9.6x10<sup>5</sup>", "2.88x10<sup>6</sup>", "2.7210<sup>6</sup>"]);
| |
− | data.push(["15/07", "0.006", "0.021", "0.018", "9.6x10<sup>5</sup>", "3.36x10<sup>6</sup>", "2.88x10<sup>6</sup>"]);
| |
− | data.push(["16/07", "0.001", "0.020", "0.019", "1.6x10<sup>5</sup>", "3.2x10<sup>6</sup>", "3.04x10<sup>6</sup>"]);
| |
− | data.push(["17/07", "0.001", "0.040", "0.027", "1.6x10<sup>5</sup>", "6.4x10<sup>6</sup>", "4.32x10<sup>6</sup>"]);
| |
− | data.push(["20/07", "0.005", "0.577", "0.486", "8x10<sup>5</sup>", "9.232x10<sup>7</sup>", "7.776x10<sup>7</sup>"]);
| |
− | data.push(["21/07", "0.001", "0.757", "0.653", "1.6x10<sup>5</sup>", "1.211x10<sup>8</sup>", "1.045x10<sup>8</sup>"]);
| |
− | data.push(["22/07", "0.001", "1.049", "0.916", "1.6x10<sup>5</sup>", "1.678x10<sup>8</sup>", "1.466x10<sup>8</sup>"]);
| |
− | data.push(["23/07", "-----", "1.302", "1.203", "-------", "2.083x10<sup>8</sup>", "1.925x10<sup>8</sup>"]);
| |
− | data.push(["24/07", "-----", "1.324", "1.296", "-------", "2.118x10<sup>8</sup>", "2.074x10<sup>8</sup>"]);
| |
− | data.push(["27/07", "-----", "1.691", "1.650", "-------", "2.706x10<sup>8</sup>", "2.640x10<sup>8</sup>"]);
| |
− |
| |
− | var tableHTML = '<table class="dataTable"><tr> <th></th> <th colspan="3"> OD<sub>750</sub> </th> <th colspan="3"> Estimated Cells per ml </th> </tr> <tr><th>Date</th><th>Flask 2</th><th>Flask 3</th><th>Flask 4</th><th>Flask 2</th><th>Flask 3</th><th>Flask 4</th> </tr>';
| |
− | var newline = true;
| |
− | while(newline){
| |
− | tableHTML += '<tr>';
| |
− | for(i2 = 0; i2 < 7; i2++){
| |
− | if(index < data.length){tableHTML += '<td valign="bottom" align="center">' + data[index][i2] + ' </td>';}
| |
− | else{
| |
− | newline = false;
| |
− | }
| |
− | }
| |
− | index += 1;
| |
− | tableHTML += '</tr>';
| |
− | }
| |
− | tableHTML += '</table>';
| |
− | document.getElementById("datatable2").innerHTML= tableHTML;
| |
− | }
| |
− |
| |
− | function buildDataPage(){
| |
− | buildDataTable1();
| |
− | buildDataTable2();
| |
− | }
| |
− |
| |
− | </script>
| |
− | </head>
| |
| | | |
| <body onload="buildDataPage()"> | | <body onload="buildDataPage()"> |