From 518e1f7d89ead052c39a736117700fe7b950ef93 Mon Sep 17 00:00:00 2001 From: miles Date: Thu, 6 Dec 2012 00:56:49 +0000 Subject: [PATCH] jump to cluster unbroken svn path=/; revision=417 --- Personnel/miles/Web Page/heatMap.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Personnel/miles/Web Page/heatMap.php b/Personnel/miles/Web Page/heatMap.php index 1c96b29..d02fbae 100644 --- a/Personnel/miles/Web Page/heatMap.php +++ b/Personnel/miles/Web Page/heatMap.php @@ -122,10 +122,15 @@ Click on a species name, cluster number, or cell for more information.
- +
+
+ + +
+
Your browser does not support the canvas element. @@ -409,9 +414,18 @@ function getBoxInfo(cluster, species, clusterIndex, speciesIndex) { function jumpToCluster() { var cluster = document.jumpTo.cluster.value; - scrolledTop = (cluster-1)*25; - drawMap(false); - return false; + if(cluster > clusterCount) { + alert("No such cluster exists for this result set!"); + return; + } + if(cluster > clusterCount - maxCols) document.getElementById("scrollDiv").scrollTop = clusterCount*25 - maxCols*25; + document.getElementById("scrollDiv").scrollTop = cluster*25; + drawMap(); + return; +} + +function jumpToGene() { + alert(document.jumpToGene.gene.value); } function generateImage() { -- 2.34.1