aboutsummaryrefslogtreecommitdiff
path: root/web/javascript/searchtip.js
diff options
context:
space:
mode:
authorzsloan2015-03-27 20:28:51 +0000
committerzsloan2015-03-27 20:28:51 +0000
commitd0911a04958a04042da02a334ccc528dae79cc17 (patch)
tree3c48e2e937c1dbeaf00a5697c87ed251afa5c8f1 /web/javascript/searchtip.js
parenta840ad18e1fe3db98a359a159e9b9b72367a2839 (diff)
downloadgenenetwork2-d0911a04958a04042da02a334ccc528dae79cc17.tar.gz
Removed everything from 'web' directory except genofiles and renamed the directory to 'genotype_files'
Diffstat (limited to 'web/javascript/searchtip.js')
-rwxr-xr-xweb/javascript/searchtip.js64
1 files changed, 0 insertions, 64 deletions
diff --git a/web/javascript/searchtip.js b/web/javascript/searchtip.js
deleted file mode 100755
index 5665bc1d..00000000
--- a/web/javascript/searchtip.js
+++ /dev/null
@@ -1,64 +0,0 @@
-// search tips for 'Get Any' and 'Combined' in the main search page http://www.genenetwork.org/
-function searchtip(){
-
- var tfor = document.getElementById("tfor");
- var tfand = document.getElementById("tfand");
- var btsearch = document.getElementById("btsearch");
- var tiptextor = "Enter list here (APOE, APOA, etc.): logical OR";
- var tiptextand = "Enter terms to combine (blood pressure): logical AND";
-
- if(tfor.value == "" || tfor.value == tiptextor) {
- tfor.className = "searchtip";
- tfor.value = tiptextor;
- }
-
- tfor.onfocus = function(e) {
- if(tfor.value == tiptextor) {
- tfor.value = "";
- }
- tfor.className = "";
- }
- tfor.onblur = function(e) {
- if(tfor.value == "") {
- tfor.className = "searchtip";
- tfor.value = tiptextor;
- } else if(tfor.value == tiptextor){
- tfor.className = "searchtip";
- } else {
- tfor.className = "";
- }
- }
-
- if(tfand.value == "" || tfand.value == tiptextand) {
- tfand.className = "searchtip";
- tfand.value = tiptextand;
- }
-
- tfand.onfocus = function(e) {
- if(tfand.value == tiptextand) {
- tfand.value = "";
- }
- tfand.className = "";
- }
- tfand.onblur = function(e) {
- if(tfand.value == "") {
- tfand.className = "searchtip";
- tfand.value = tiptextand;
- } else if(tfand.value == tiptextand) {
- tfand.className = "searchtip";
- } else {
- tfand.className = "";
- }
- }
-
- btsearch.onclick = function(e) {
- if(tfor.value == tiptextor) {
- tfor.value = "";
- }
- if(tfand.value == tiptextand) {
- tfand.value = "";
- }
- return true;
- }
-
-}