📄 fhsearch.js
字号:
var include_num = 1;
var bold = 0;
var s = new Array();
s[0] = "Welcome^Welcome.htm^...^Welcome`;";
s[1] = "Introduction^HomePage_Introduction.htm^...^Introduction`;";
s[2] = "Introduction^Activities_Introduction.htm^...^Introduction`;";
s[3] = "Introduction^Communication_Introduction.htm^...^Introduction`;";
s[4] = "Introduction^Organizations_Introduction.htm^...^Introduction`;";
s[5] = "Introduction^Contacts_Introduction.htm^...^Introduction`;";
s[6] = "Introduction^People_Introduction.htm^...^Introduction`;";
s[7] = "Introduction^Cases_Introduction.htm^...^Introduction`;";
s[8] = "Introduction^Questionnaires_Introduction.htm^...^Introduction`;";
s[9] = "Introduction^Intake_Introduction.htm^...^Introduction`;";
s[10] = "Introduction^Reports_Introduction.htm^...^Introduction`;";
s[11] = "Introduction^MailMerge_Introduction.htm^...^Introduction`;";
s[12] = "Introduction^Administration_Introduction.htm^...^Introduction`;";
var cookies = document.cookie;
var p = cookies.indexOf("d=");
if (p != -1) {
var st = p + 2;
var en = cookies.indexOf(";", st);
if (en == -1) {
en = cookies.length;
}
var d = cookies.substring(st, en);
d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
m = 1;
}
var r = new Array();
var co = 0;
if (m == 0) {
var woin = new Array();
var w = d.split(" ");
for (var a = 0; a < w.length; a++) {
woin[a] = 0;
if (w[a].charAt(0) == '-') {
woin[a] = 1;
}
}
for (var a = 0; a < w.length; a++) {
w[a] = w[a].replace(/^\-|^\+/gi, "");
}
a = 0;
for (var c = 0; c < s.length; c++) {
pa = 0;
nh = 0;
for (var i = 0; i < woin.length; i++) {
if (woin[i] == 0) {
nh++;
var pat = new RegExp(w[i], "i");
var rn = s[c].search(pat);
if (rn >= 0) {
pa++;
} else {
pa = 0;
}
}
if (woin[i] == 1) {
var pat = new RegExp(w[i], "i");
var rn = s[c].search(pat);
if (rn >= 0) {
pa = 0;
}
}
}
if (pa == nh) {
r[a] = s[c];
a++;
}
}
co = a;
}
if (m == 1) {
d = d.replace(/"/gi, "");
var a = 0;
var pat = new RegExp(d, "i");
for (var c = 0; c < s.length; c++) {
var rn = s[c].search(pat);
if (rn >= 0) {
r[a] = s[c];
a++;
}
}co = a;
}
function return_query() {
document.jse_Form.d.value = od;
}
function num_jse() {
document.write(co);
}
function out_jse() {
if (co == 0) {
document.write('Your search did not match any documents.<br>Please ensure that all keywords are spelled correctly.<br>Or try different or more general keywords. Thank you.');
return;
}
for (var a = 0; a < r.length; a++) {
var os = r[a].split("^");
if (bold == 1 && m == 1) {
var br = "<b>" + d + "</b>";
os[2] = os[2].replace(pat, br);
}
if (include_num == 1) {
document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
} else {document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -