/[webpac]/trunk2/eurovoc/abecedno.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

Diff of /trunk2/eurovoc/abecedno.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 523 by dpavlin, Tue Oct 19 15:17:25 2004 UTC revision 526 by dpavlin, Tue Oct 19 15:50:13 2004 UTC
# Line 23  function myfilter() { Line 23  function myfilter() {
23                          var li = self.document.createElement("li");                          var li = self.document.createElement("li");
24                          var e = self.document.createElement("a");                          var e = self.document.createElement("a");
25                          e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);                          e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
26                          e.appendChild(self.document.createTextNode(arr[0]));                          var regex = new RegExp(/ *\* */);
27                            if (arr[0].match(regex)) {
28                                    e.appendChild(self.document.createTextNode(arr[0].replace(regex,' ')));
29                                    var pic = self.document.createElement("img");
30                                    pic.src = 'img/crovoc.png';
31                                    pic.border = 0;
32                                    e.appendChild(pic);
33                            } else {
34                                    e.appendChild(self.document.createTextNode(arr[0]));
35                            }
36                          li.appendChild(e);                          li.appendChild(e);
37    
38                          li.appendChild(self.document.createTextNode(" "));                          li.appendChild(self.document.createTextNode(" "));
# Line 32  function myfilter() { Line 41  function myfilter() {
41                          e.setAttribute("href","thes/"+arr[1]+".html");                          e.setAttribute("href","thes/"+arr[1]+".html");
42                          e.setAttribute("target","popup");                          e.setAttribute("target","popup");
43                          e.onclick = function() { return popup(e) };                          e.onclick = function() { return popup(e) };
44                          e.appendChild(self.document.createTextNode("\u00bb"));                          var pic = self.document.createElement("img");
45                            pic.src = 'img/listic.png';
46                            pic.border = 0;
47                            e.appendChild(pic);
48                          li.appendChild(e);                          li.appendChild(e);
49    
50                          li.appendChild(self.document.createElement("br"));                          li.appendChild(self.document.createElement("br"));
# Line 56  function myfilter() { Line 68  function myfilter() {
68                  return null;                  return null;
69  //              return '<ul>'+html+'</ul>';  //              return '<ul>'+html+'</ul>';
70          }          }
71    
72            self.document.myfilter.show_status = function (status) {
73                    var html;
74                    if (this.hits > 0) {
75                            html = "Pronađeno "+this.hits+" zapisa";
76                    } else {
77                            html = "Nije pronađen niti jedan zapis";
78                    }
79                    if (! status) {
80                            html = "Unesite "+this.min_len+" znakova za pretraživanje.";
81                            status = "";
82                    } else {
83                            status = " za <em>"+status+"</em>.";
84                    }
85    
86                    var el = this.element_id("status");
87                    el.innerHTML = html+status+"\n";
88            }
89  }  }
90    
91  var lang2thes = {  var lang2thes = {

Legend:
Removed from v.523  
changed lines
  Added in v.526

  ViewVC Help
Powered by ViewVC 1.1.26