-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.js
34 lines (27 loc) · 816 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function showTooltip(e, tooltip) {
e = window.event ? window.event : e;
tooltip = document.getElementById(tooltip);
if(tooltip.style.display != "block")
tooltip.style.display = "block";
tooltip.style.left = (event.clientX + 5) + "px";
tooltip.style.top = (event.clientY + 5) + "px";
}
function hideTooltip(e, tooltip) {
e = window.event ? window.event : e;
tooltip = document.getElementById(tooltip);
// if(e.toElement == tooltip)
// {
// showTooltip(e, tooltip);
// return;
// }
tooltip.style.display = "none";
}
function toggleVisibility(id) {
var el = document.getElementById(id);
if (el.style.visibility=="visible") {
el.style.visibility="hidden";
}
else {
el.style.visibility="visible";
}
}