PageSourceSearch

https://cesarine.org/include/functions.js

js cesarine.org collected 2026-10-02 11:14:14 UTC 2,152 bytes, 91 lines download raw bytes

1function popup_windowNorm(sUrl)
2{
3	popup_windowSize(sUrl,600,440);
4}
5
6function popup_windowSize(sUrl,width,height,features)
7{	
8	if ( features!=null)
9		window.open(sUrl,'','height='+height+',width='+width+','+features);
10	else
11		window.open(sUrl,'','height='+height+',width='+width+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=yes,scrollbars=yes');	
12}
13
14function s_show(){return false;}
15function s_hide(){return false;}
16if (window.event+''=='undefined') {event=0;}
17
18
19function addOnload(f)
20{
21    //setup onload function
22    if(typeof window.addEventListener != 'undefined')
23    {
24        //.. gecko, safari, konqueror and standard
25        window.addEventListener('load', f, false);
26    }
27    else if(typeof document.addEventListener != 'undefined')
28    {
29        //.. opera 7
30        document.addEventListener('load', f, false);
31    }
32    else if(typeof window.attachEvent != 'undefined')
33    {
34        //.. win/ie
35        window.attachEvent('onload', f);
36    }
37
38    //** remove this condition to degrade older browsers
39    else
40    {
41        //.. mac/ie5 and anything else that gets this far
42
43        //if there's an existing onload function
44        if(typeof window.onload == 'function')
45        {
46            //store it
47            var existing = onload;
48
49            //add new onload handler
50            window.onload = function()
51            {
52                //call existing onload function
53                existing();
54
55                //call initial onload function
56                f();
57            };
58        }
59        else
60        {
61            //setup onload function
62            window.onload = f;
63        }
64
65    }
66}
67
68function setVisibleBlock(id)
69{
70  document.getElementById(id).style.display = 'block';
71}
72
73function setInVisible(id)
74{
75  document.getElementById(id).style.display = 'none';
76}
77
78function toggleVisibleBlock(id)
79{
80  var e =  document.getElementById(id);
81  // bon je ne sais pas bien pourquoi au premier coup c'est pas initialise
82  // donc je pars du principe que c'est caché par défaut.
83  if (e.style.display == 'block') 
84  {
85    e.style.display = 'none';
86  }
87  else 
88  {
89    e.style.display = 'block';
90  }
91}

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.