diff options
| author | Lei Yan | 2015-05-12 20:47:50 +0000 |
|---|---|---|
| committer | Lei Yan | 2015-05-12 20:47:50 +0000 |
| commit | cb5684aa004d59585167804450f64ab74d3a3412 (patch) | |
| tree | 31aedac7d1fd945c893f07e2e419b4361f00925b /web/javascript/searchtip.js | |
| parent | d11b71790f5f7c7eb9fe41704e1df7d8447371c9 (diff) | |
| parent | f228118ac112f3ebab5faf41ac9e1bc2a6e2c0fa (diff) | |
| download | genenetwork2-cb5684aa004d59585167804450f64ab74d3a3412.tar.gz | |
Merge https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'web/javascript/searchtip.js')
| -rwxr-xr-x | web/javascript/searchtip.js | 64 |
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; - } - -} |
