PageSourceSearch

https://www.btl.gov.il/_layouts/15/1037/BTL-JScripts/ToolTipControl.js

js btl.gov.il collected 2026-10-02 02:53:32 UTC 3,967 bytes, 147 lines download raw bytes

1
2/*function ShowToolTip(str) {
3    //alert("ToolTipDiv_" + str)
4    var ToolTip = document.getElementById("ToolTipDiv_" + str);
5    //alert(ToolTip.id + "\n" + "ToolTipDiv_" + str );
6    if (ToolTip.length)
7        ToolTip = ToolTip[0];
8
9    ToolTip.style.display = '';
10    ToolTip.style.left = (document.body.parentElement.scrollLeft + window.event.x) - ToolTip.style.pixelWidth;
11    //alert(document.body.parentElement.scrollTop);
12    ToolTip.style.top = document.body.scrollTop + window.event.y + 5;
13    //ToolTip.style.left = (document.body.scrollLeft + window.event.x) - ToolTip.style.pixelWidth;  
14    //ToolTip.style.top = document.body.scrollTop + window.event.y + 5;
15
16}*/
17
18function DisplayToolTip(ID)
19{
20 
21    $("." + ID).removeClass("hiden");
22}
23
24function HideToolTip(ID) {
25
26    $("." + ID).addClass("hiden");
27}
28function ShowToolTip(e, str) {
29    ShowToolTip(e, str, 'he-il');
30}
31function ShowToolTip(e, btn,  str, lang) {
32    var clientX;
33    var clientY;
34    
35    if (window.event)
36    {
37        clientX = window.event.x
38        clientY = window.event.y
39    }
40    else
41    {
42        clientX = e.clientX;
43        clientY = e.clientY;
44    }
45        
46    var ToolTip = document.getElementById("ToolTipDiv_" + str);
47    if (ToolTip.length)
48        ToolTip = ToolTip[0];
49        
50    var btnObj = $(btn);
51    var btnOffset = btnObj.offset(); 
52    ToolTip.style.top =  (btnOffset.top + btn.offsetHeight) + "px";
53    
54        
55    /*LTR ==> ToolTip.style.left =  (btnOffset.left) + "px";*/
56    //alert(btnOffset.left)
57    ToolTip.style.left =  (btnOffset.left -170) + "px";
58     //alert(screen.width)
59   
60    //var left = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
61    //ToolTip.style.left =  (left - btnOffset.left) + "px";
62    
63    //alert(left);
64    
65    //ToolTip.style.left = (left + clientX) + "px"; //- ToolTip.style.pixelWidth;
66        
67        
68    //ToolTip.style.top = Math.max(document.body.scrollTop,document.documentElement.scrollTop); //+ window.event.y + 5;
69    //ToolTip.style.display = '';
70    
71  /*  
72    ToolTip.style.top = arrowOffset.top;
73//    var arrowWidth = arrow.offsetWidth
74*/
75    //var top = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
76    
77    /*if (lang == "en-us" || lang == "ru-ru" || lang == "fr-FR" || lang == "es")
78        ToolTip.style.right = (document.body.parentElement.scrollRight + clientX) - ToolTip.style.pixelWidth;
79
80    else
81        ToolTip.style.left = (document.body.parentElement.scrollLeft + clientX) - ToolTip.style.pixelWidth;
82    */
83    ToolTip.style.display = '';
84}
85
86
87function CloseToolTip(ID) {
88    var ToolTip = document.getElementById("ToolTipDiv_" + ID);
89    if (ToolTip.length)
90        ToolTip = ToolTip[0];
91    ToolTip.style.display = 'none';
92}
93
94
95function ShowHelp(e)
96{
97   var sElement;
98   if (document.all)           //IE
99   {
100     e = window.event;
101     
102     sElement =e.srcElement.id;
103   }
104   else
105   {
106        sElement =e.target.id;
107
108   }
109   
110   
111    var sUniqe = sElement.slice(0,sElement.length - 4);
112    
113    var ToolTip =document.getElementById(sUniqe + "_" + "ToolTipDiv");
114    if (ToolTip.length)
115        ToolTip = ToolTip[0];
116
117	ToolTip.style.display = '';
118	ToolTip.style.left = (document.body.parentNode.scrollLeft + e.x) - ToolTip.style.pixelWidth;  
119	ToolTip.style.top = document.body.parentNode.scrollTop + e.y + 5;
120
121}
122
123function CloseHelp(e)
124{
125    
126   var sElement;
127   if (document.all)           //IE
128   {
129     e = window.event;
130     
131     sElement =e.srcElement.id;
132   }
133   else
134   {
135        sElement =e.target.id;
136
137   }
138   
139    var sUniqe = sElement.slice(0,sElement.length - 4);
140    
141    var ToolTip = document.getElementById(sUniqe + "_" + "ToolTipDiv");
142	if (ToolTip.length)
143        ToolTip = ToolTip[0];
144        //alert(ToolTip.style.display);
145	ToolTip.style.display = 'none';
146	
147}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.