/[webpac]/trunk2/out/thesaurus.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/thesaurus.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (show annotations)
Sun Sep 26 19:53:09 2004 UTC (19 years, 6 months ago) by dpavlin
File MIME type: text/html
File size: 3179 byte(s)
dynamically load different languages

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="DescriptorHR.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 </script>
55 <script type="text/javascript" src="bfilter/hide.js"></script>
56 <link rel="stylesheet" href="style.css" type="text/css">
57 <title>Thesaurus</title>
58 </head>
59
60 <body onload="myfilter(); ">
61
62 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
63 <a href="#" onClick="toggle_display('debug');">debug</a>
64
65 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
66 </div>
67
68 </div>
69
70 <span style="background: #e0e0e0;">
71 <a href="search.html">search</a> |
72 <a href="thesaurus.html"><b>thesarus</b></a> |
73 <a href="browse.html">browse</a>
74 </span>
75
76 <form method="get" onSubmit="return false;">
77 <div class="filters">
78 <select name="headlines_name" onChange="load_js(this.options[this.selectedIndex].value); self.document.myfilter.arr=headlines;">
79 <option value="DescriptorHR.js">Hrvatski</option>
80 <option value="DescriptorEN.js">Engleski</option>
81 <option value="DescriptorFR.js">Francuski</option>
82 <option value="DescriptorGE.js">Njemaèki</option>
83 </select>
84 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);">
85 <!-- this button is strictly for looks -->
86 <input class="filters" value="filter" type="button">
87 </div>
88 </form>
89
90 <div id="status" style="font-size: 80%; color: gray;">
91 <!--
92 Enter few letters to filter by them
93 -->
94 </div>
95
96 <div id="results">
97 </div>
98
99 </body>
100

  ViewVC Help
Powered by ViewVC 1.1.26