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(" ")); |
65 |
return null; |
return null; |
66 |
// return '<ul>'+html+'</ul>'; |
// return '<ul>'+html+'</ul>'; |
67 |
} |
} |
68 |
|
|
69 |
|
self.document.myfilter.show_status = function (status) { |
70 |
|
var html; |
71 |
|
if (this.hits > 0) { |
72 |
|
html = "Pronađeno "+this.hits+" zapisa"; |
73 |
|
} else { |
74 |
|
html = "Nije pronađen niti jedan zapis"; |
75 |
|
} |
76 |
|
if (! status) { |
77 |
|
html = "Unesite "+this.min_len+" znakova za pretraživanje."; |
78 |
|
status = ""; |
79 |
|
} else { |
80 |
|
status = " za <em>"+status+"</em>."; |
81 |
|
} |
82 |
|
|
83 |
|
var el = this.element_id("status"); |
84 |
|
el.innerHTML = html+status+"\n"; |
85 |
|
} |
86 |
} |
} |
87 |
|
|
88 |
var lang2thes = { |
var lang2thes = { |