From d0911a04958a04042da02a334ccc528dae79cc17 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 27 Mar 2015 20:28:51 +0000 Subject: Removed everything from 'web' directory except genofiles and renamed the directory to 'genotype_files' --- web/images/tooltip.js | 192 -------------------------------------------------- 1 file changed, 192 deletions(-) delete mode 100755 web/images/tooltip.js (limited to 'web/images/tooltip.js') diff --git a/web/images/tooltip.js b/web/images/tooltip.js deleted file mode 100755 index 56687bdf..00000000 --- a/web/images/tooltip.js +++ /dev/null @@ -1,192 +0,0 @@ - /********************************************************** - * Popup Window Definition Part * - * * - * To add a popup window, add a string definition below. * - * To include the item in the printing friendly page, * - * modify the longStr by adding the item to it. * - * Don't change anything else. * - **********************************************************/ - -var htmlOpener = "Tooltip and Popup Window Demo"+ - "

" -var htmlCloser = "" - - demo1 = "

Title Here.

It is fun. Don't forget to put a line break here.

" - - demo2 = "No title in this window. Just plain text.

" - - demo3 = "How much is a picture worth?

"+ - "

" - -/****END OF STRING DEFINITION*****/ - - var popupWin - var wholeWin - function popup(term) // write corresponding content to the popup window - { - popupWin = window.open("", "puWin", "width=480,height=200,scrollbars,dependent,resizable"); - popupWin.document.open("text/html", "replace"); - popupWin.document.write(htmlOpener); - popupWin.document.write(term); - popupWin.document.write(htmlCloser); - popupWin.document.close(); // close layout stream - popupWin.focus(); // bring the popup window to the front - } - - function closeDep() { - if (popupWin && popupWin.open && !popupWin.closed) popupWin.close(); - if (wholeWin && wholeWin.open && !wholeWin.closed) wholeWin.close(); - - } - - -/***********************END OF FUNCTION POPUP******************************/ - - function printwhole() - { - longStr ="

Annotated Output for Proc Univariate

"; - longStr += demo1 + demo2 + demo3; - - wholeWin = window.open("","wWin", "width=800,height=500,dependent=yes,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes"); - wholeWin.document.open("text/html","replace"); - wholeWin.document.write(htmlOpener); - wholeWin.document.write(longStr); - wholeWin.document.write(htmlCloser); - wholeWin.document.close(); - wholeWin.focus();} - -/*******End of popup window stuff*********/ - - -/***************************Tooltip Part Begins***************************/ - var style = ((NS4 && document.test) || IE4) ? 1 : 0; - var timerID = null; - var padding = 3; // < 4 recommended - var bgcolor = "beige"; - var borWid = 1; // for no border, assign null - var borCol = "#0000cc"; - var borSty = "solid"; - var str = ""; - - - if (style) { - document.write(str); - if (NS4) window.onload = init; -} - -/************************************************** -* Making your tooltip text here * -* This is the only place that need to be modified.* -* The first argument is the name of the tooltip. * -* The second argument is the width and last one * -* is the content of the tooltip. * -**************************************************/ - - -makeEl("map", 200, "This will do an interval regression using your data against the chromosome you just selected "); -makeEl("chrs", 200, "This will allow you to choose the chromosome you want to do the interval mapping"); -makeEl("normal", 200, "This will generate a graph to assess if your data is normally distributed"); -makeEl("link", 200, "This will do a Marker Regression using your data."); -makeEl("save", 200, "This will save the data you just input into a text file"); - - -/*************************End of making tooltip text*************************/ - -function init() { - setTimeout("window.onresize = redo", 1000); -} - -function redo() { - window.location.reload(); -} - -function makeEl(id, width, code) { - if (!style) return; - - var str = ""; - str += "
" + code + "
"; - - document.write(str); -} - -function displayEl(left, top) { - - if (NS4) document.releaseEvents(Event.MOUSEMOVE); - document.onmousemove = null; - var whichEl = (NS4) ? document[active] : document.all[active].style; - whichEl.left = left; - whichEl.top = top; - whichEl.visibility = (NS4) ? "show" : "visible"; -} - -function clearEl() { - - if (!style) return; - var whichEl = (NS4) ? document[active] : document.all[active].style; - whichEl.visibility = (NS4) ? "hide" : "hidden"; - active = null; - - if (timerID) clearTimeout(timerID); - if (NS4) document.releaseEvents(Event.MOUSEMOVE); - document.onmousemove = null; - -} - -function activateEl(id, e) { - if (!style) return; - active = id; - - if (NS4) document.captureEvents(Event.MOUSEMOVE); - document.onmousemove = checkEl; - checkEl(e); - - } - -function checkEl(e) { - if (timerID) clearTimeout(timerID); - var left = (NS4) ? e.pageX : event.clientX + document.body.scrollLeft; - var top = (NS4) ? e.pageY + 20 : event.clientY + document.body.scrollTop + 20; - timerID = setTimeout("displayEl(" + left + ", " + top + ")", 300); -} - -- cgit v1.2.3