From fc0ed5e45d520d46c4dbe98c725430e252c340c9 Mon Sep 17 00:00:00 2001 From: miles Date: Fri, 15 Mar 2013 23:33:26 +0000 Subject: [PATCH] working revision, including the view ontology capability. Colors changed in the ontology viewer from blue -> yellow to blue -> green svn path=/; revision=437 --- Personnel/miles/Web Page/heatMap.php | 4 +- Personnel/miles/Web Page/infoChoice.php | 1 - Personnel/miles/Web Page/viewOntology.php | 54 +++++++++++------------ 3 files changed, 27 insertions(+), 32 deletions(-) diff --git a/Personnel/miles/Web Page/heatMap.php b/Personnel/miles/Web Page/heatMap.php index ad0f06c..17c32e8 100644 --- a/Personnel/miles/Web Page/heatMap.php +++ b/Personnel/miles/Web Page/heatMap.php @@ -235,9 +235,7 @@ function drawMap(init) { drawnRows = Math.floor(scrolledTop/cellSize); heatMap.fillStyle = "#FFFFFF"; - heatMap.fillRect(0,0,1500,topOffset); - heatMap.fillRect(0,0,leftOffset,1000); - heatMap.fillRect(1029,0,1100,500); + heatMap.fillRect(0,0,1100,500); // heatMap.fillRect(maxCols*cellSize+leftOffset,0,1500-(maxCols*cellSize+leftOffset),1000); // heatMap.fillRect(0,maxRows*cellSize+topOffset,1500,1000-(maxRows*cellSize+topOffset)); startXCell = Math.floor(scrolledLeft/cellSize); diff --git a/Personnel/miles/Web Page/infoChoice.php b/Personnel/miles/Web Page/infoChoice.php index 5d87ce4..37adc83 100644 --- a/Personnel/miles/Web Page/infoChoice.php +++ b/Personnel/miles/Web Page/infoChoice.php @@ -140,7 +140,6 @@ mysql_close($connection); $row = mysql_fetch_row($results); } mysql_close($connection); - echo $genes; } ?> diff --git a/Personnel/miles/Web Page/viewOntology.php b/Personnel/miles/Web Page/viewOntology.php index cb2f557..1919e93 100644 --- a/Personnel/miles/Web Page/viewOntology.php +++ b/Personnel/miles/Web Page/viewOntology.php @@ -127,7 +127,7 @@ Your browser does not support the canvas element.
- +
@@ -155,7 +155,7 @@ var startTerm = 0; var topOffset = 210; var leftOffset = 85; -var cellSize = 15; +var cellSize = 15; //NOTE if this is changed, the size of the canvasDiv must also be changed by the same factor! var maxRows = Math.floor((500-topOffset)/cellSize); var maxCols = Math.floor((1000-leftOffset)/cellSize); @@ -213,43 +213,41 @@ function drawMap(init) { ontMap.fillStyle = "#FFFFFF"; ontMap.fillRect(0,0,1100,500); + startXCell = Math.floor(scrolledLeft/cellSize); startYCell = Math.floor(scrolledTop/cellSize); - for(var c=startXCell; (c