/[webpac]/trunk2/out/alphabetical.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk2/out/alphabetical.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 536 - (show annotations)
Sun Oct 24 09:15:44 2004 UTC (19 years, 5 months ago) by dpavlin
File MIME type: text/html
File size: 3841 byte(s)
renamed thesaurus to alphabetical

1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
5 <script type="text/javascript" src="bfilter/bfilter.js"></script>
6 <script type="text/javascript" src="js/popup.js"></script>
7 <script type="text/javascript" src="js/load_js.js"></script>
8 <script type="text/javascript" src="js/cookies.js"></script>
9 <script type="text/javascript">
10 // <!--
11 function myfilter() {
12 // self.document.getElementById('textfilter').focus();
13 // self.document.getElementById('textfilter').caretPos=1;
14 // self.document.getElementById('textfilter').select();
15 self.document.myfilter = new BFilter(headlines);
16
17 self.document.myfilter.result = function (arr) {
18 var r = element_id('results');
19 if (r) {
20 var e = self.document.createElement("a");
21 e.setAttribute("href","browse.html?o="+arr[1]+"#mfn"+arr[1]);
22 e.appendChild(self.document.createTextNode(arr[0]));
23 r.appendChild(e);
24
25 r.appendChild(self.document.createTextNode(" "));
26
27 e = self.document.createElement("a");
28 e.setAttribute("href","thes/"+arr[1]+".html");
29 e.setAttribute("target","popup");
30 e.onclick = function() { return popup(e) };
31 e.appendChild(self.document.createTextNode("\u00bb"));
32 r.appendChild(e);
33
34 r.appendChild(self.document.createElement("br"));
35
36 } else {
37 alert("can't find results div!");
38 }
39 /*
40 return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
41 '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
42 '</li>';
43 */
44 return null;
45 }
46
47 // this function is called when updating innerHTML with results
48 self.document.myfilter.display = function (html) {
49 return null;
50 // return '<ul>'+html+'</ul>';
51 }
52 }
53
54 var lang2thes = {
55 'hr' : 'DescriptorHR.js',
56 'en' : 'DescriptorEN.js',
57 'fr' : 'DescriptorFR.js',
58 'ge' : 'DescriptorGE.js'
59 };
60
61 var lang = get_cookie('w2_lang');
62 if (! lang) lang = 'hr';
63
64 load_js(lang2thes[lang]);
65
66 function change_lang(lang) {
67 // reset results
68 self.document.myfilter.filter('');
69
70 set_cookie('w2_lang', lang);
71 load_js(lang2thes[lang]);
72 self.document.myfilter.arr=headlines;
73 return true;
74 }
75
76 function select_option(value,text,selected) {
77 document.write('<option value="'+value+'"');
78 if (value == selected) document.write(' selected');
79 document.write('>'+text+'</option>');
80 }
81 // -->
82 </script>
83 <script type="text/javascript" src="bfilter/hide.js"></script>
84 <link rel="stylesheet" href="style.css" type="text/css" />
85 <title>Thesaurus</title>
86 </head>
87
88 <body onload="myfilter(); ">
89 <div>
90
91 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
92 <a href="#" onclick="toggle_display('debug');">debug</a>
93 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
94 </div>
95 </div>
96
97 <span style="background: #e0e0e0;">
98 <a href="search.html">search</a> |
99 <a href="browse.html">browse</a> |
100 <a href="alphabetical.html"><b>alphabetical</b></a>
101 </span>
102
103 <form method="get" onsubmit="return false;" action="?">
104 <div class="filters">
105 <script type="text/javascript">
106 // <!--
107 document.write('<select name="lang" onchange="change_lang(this.options[this.selectedIndex].value);">');
108 select_option("hr","Hrvatski",lang);
109 select_option("en","Engleski",lang);
110 select_option("fr","Francuski",lang);
111 select_option("ge","Njemaèki",lang);
112 document.write('</select>');
113 // -->
114 </script>
115
116 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="self.document.myfilter.filter(this.value);" />
117 <!-- this button is strictly for looks -->
118 <input class="filters" value="filter" type="button" />
119 </div>
120 </form>
121
122 <div id="status" style="font-size: 80%; color: gray;">
123 <!--
124 Enter few letters to filter by them
125 -->
126 </div>
127
128 <div id="results">
129 </div>
130
131 </div>
132 </body>
133 </html>

  ViewVC Help
Powered by ViewVC 1.1.26