/[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

Annotation of /trunk2/out/alphabetical.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 468 - (hide annotations)
Fri Sep 24 17:06:07 2004 UTC (16 years, 7 months ago) by dpavlin
Original Path: trunk2/out/thesaurus.html
File MIME type: text/html
File size: 2659 byte(s)
fixed for new bfilter with timeout

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     <script type="text/javascript" src="bfilter/DescriptorHR.js"></script>
7     <script type="text/javascript">
8    
9     function myfilter() {
10 dpavlin 468 // self.document.getElementById('textfilter').focus();
11     // self.document.getElementById('textfilter').caretPos=1;
12     // self.document.getElementById('textfilter').select();
13     self.document.myfilter = new BFilter(headlines);
14 dpavlin 448
15 dpavlin 468 self.document.myfilter.result = function (arr) {
16 dpavlin 465 var r = element_id('results');
17     if (r) {
18 dpavlin 468 var e = self.document.createElement("a");
19 dpavlin 467 e.setAttribute("href","browse.html?o="+arr[1]);
20 dpavlin 468 e.appendChild(self.document.createTextNode(arr[0]));
21 dpavlin 465 r.appendChild(e);
22    
23 dpavlin 468 r.appendChild(self.document.createTextNode(" "));
24 dpavlin 465
25 dpavlin 468 e = self.document.createElement("a");
26 dpavlin 467 e.setAttribute("href","thes/"+arr[1]+".html");
27     //e.setAttribute("target","_blank");
28 dpavlin 468 e.appendChild(self.document.createTextNode(">>"));
29 dpavlin 465 r.appendChild(e);
30    
31 dpavlin 468 r.appendChild(self.document.createElement("br"));
32 dpavlin 465
33     } else {
34     alert("can't find results div!");
35     }
36     /*
37 dpavlin 448 return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
38 dpavlin 452 '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
39 dpavlin 448 '</li>';
40 dpavlin 465 */
41 dpavlin 468 return null;
42 dpavlin 448 }
43    
44     // this function is called when updating innerHTML with results
45 dpavlin 468 self.document.myfilter.display = function (html) {
46 dpavlin 465 return null;
47     // return '<ul>'+html+'</ul>';
48 dpavlin 448 }
49 dpavlin 432 }
50    
51     </script>
52 dpavlin 452 <script type="text/javascript" src="bfilter/hide.js"></script>
53 dpavlin 432 <link rel="stylesheet" href="style.css" type="text/css">
54     <title>Thesaurus</title>
55     </head>
56    
57     <body onload="myfilter(); ">
58    
59 dpavlin 452 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
60     <a href="#" onClick="toggle_display('debug');">debug</a>
61    
62     <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
63 dpavlin 432 </div>
64    
65 dpavlin 452 </div>
66    
67 dpavlin 432 <span style="background: #e0e0e0;">
68     <a href="search.html">search</a> |
69     <a href="thesaurus.html"><b>thesarus</b></a> |
70     <a href="browse.html">browse</a>
71     </span>
72    
73     <form method="get" onSubmit="return false;">
74     <div class="filters">
75 dpavlin 468 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);">
76 dpavlin 432 <!-- this button is strictly for looks -->
77     <input class="filters" value="filter" type="button">
78     </div>
79     </form>
80    
81     <div id="status" style="font-size: 80%; color: gray;">
82     <!--
83     Enter few letters to filter by them
84     -->
85     </div>
86    
87     <div id="results">
88     </div>
89    
90     </body>
91    

  ViewVC Help
Powered by ViewVC 1.1.26