1 |
dpavlin |
432 |
<!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 |
dpavlin |
470 |
<script type="text/javascript" src="js/popup.js"></script> |
7 |
dpavlin |
480 |
<script type="text/javascript" src="js/load_js.js"></script> |
8 |
|
|
<script type="text/javascript" src="DescriptorHR.js"></script> |
9 |
dpavlin |
432 |
<script type="text/javascript"> |
10 |
|
|
|
11 |
|
|
function myfilter() { |
12 |
dpavlin |
468 |
// 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 |
dpavlin |
448 |
|
17 |
dpavlin |
468 |
self.document.myfilter.result = function (arr) { |
18 |
dpavlin |
465 |
var r = element_id('results'); |
19 |
|
|
if (r) { |
20 |
dpavlin |
468 |
var e = self.document.createElement("a"); |
21 |
dpavlin |
469 |
e.setAttribute("href","browse.html?o="+arr[1]+"#mfn"+arr[1]); |
22 |
dpavlin |
468 |
e.appendChild(self.document.createTextNode(arr[0])); |
23 |
dpavlin |
465 |
r.appendChild(e); |
24 |
|
|
|
25 |
dpavlin |
468 |
r.appendChild(self.document.createTextNode(" ")); |
26 |
dpavlin |
465 |
|
27 |
dpavlin |
468 |
e = self.document.createElement("a"); |
28 |
dpavlin |
467 |
e.setAttribute("href","thes/"+arr[1]+".html"); |
29 |
dpavlin |
470 |
e.setAttribute("target","popup"); |
30 |
|
|
e.onclick = function() { return popup(e) }; |
31 |
|
|
e.appendChild(self.document.createTextNode("\u00bb")); |
32 |
dpavlin |
465 |
r.appendChild(e); |
33 |
|
|
|
34 |
dpavlin |
468 |
r.appendChild(self.document.createElement("br")); |
35 |
dpavlin |
465 |
|
36 |
|
|
} else { |
37 |
|
|
alert("can't find results div!"); |
38 |
|
|
} |
39 |
|
|
/* |
40 |
dpavlin |
448 |
return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+ |
41 |
dpavlin |
452 |
' <a href="browse.html?o='+arr[1]+'">¤</a>' + |
42 |
dpavlin |
448 |
'</li>'; |
43 |
dpavlin |
465 |
*/ |
44 |
dpavlin |
468 |
return null; |
45 |
dpavlin |
448 |
} |
46 |
|
|
|
47 |
|
|
// this function is called when updating innerHTML with results |
48 |
dpavlin |
468 |
self.document.myfilter.display = function (html) { |
49 |
dpavlin |
465 |
return null; |
50 |
|
|
// return '<ul>'+html+'</ul>'; |
51 |
dpavlin |
448 |
} |
52 |
dpavlin |
432 |
} |
53 |
|
|
|
54 |
|
|
</script> |
55 |
dpavlin |
452 |
<script type="text/javascript" src="bfilter/hide.js"></script> |
56 |
dpavlin |
432 |
<link rel="stylesheet" href="style.css" type="text/css"> |
57 |
|
|
<title>Thesaurus</title> |
58 |
|
|
</head> |
59 |
|
|
|
60 |
|
|
<body onload="myfilter(); "> |
61 |
|
|
|
62 |
dpavlin |
452 |
<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 |
dpavlin |
432 |
</div> |
67 |
|
|
|
68 |
dpavlin |
452 |
</div> |
69 |
|
|
|
70 |
dpavlin |
432 |
<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 |
dpavlin |
480 |
<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 |
dpavlin |
468 |
<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);"> |
85 |
dpavlin |
432 |
<!-- 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 |
|
|
|