⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search-page.html

📁 DICOM viewer - this software is used to view a set of DICOM images.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
            z++;
        }
        w = element.indexOf(upperSearchString);
    }
}

function searchFile(fileNumber, upperSearchString) {
    var matchIndex = -1, matchType;

    a[fileNumber][MATCH_TYPE] = -1;

    while (++matchIndex <= CONTENTS && a[fileNumber][MATCH_TYPE] == -1) {
        matchType = matchIndex == 0 ? FILENAME : (matchIndex == 1 ? DESCRIPTION : (matchIndex == 2 ? URL : CONTENTS));
        if ((matchType == FILENAME || matchType == URL) && !searchTitles) {
        	continue;
        }

        if (matchType == DESCRIPTION && !searchDescriptions) {
        	continue;
        }

        if (matchType == CONTENTS && !searchContent) {
        	continue;
        }

        searchElement(fileNumber, matchType, upperSearchString);
        if (a[fileNumber][N_MATCHES] > 0) {
            a[fileNumber][MATCH_TYPE] = matchType;
        }
    }
}

function sortResults() {
    var fileNumber, t, tempScore, E;

    for (fileNumber = 1; fileNumber < a.length; fileNumber++) {
        a[fileNumber][i] = fileNumber;
    }

    if (sortResultsByType) {
        for (fileNumber = 1; fileNumber < a.length; fileNumber++) {
            if (a[fileNumber][MATCH_TYPE] == FILENAME) {
                a[fileNumber][SCORE] = (4 - FILENAME_SCORE_ORDER) * SCORE_PER_TYPE;
            } else if (a[fileNumber][MATCH_TYPE] == DESCRIPTION) {
                a[fileNumber][SCORE] = (4 - DESCRIPTION_SCORE_ORDER) * SCORE_PER_TYPE;
            } else if (a[fileNumber][MATCH_TYPE] == URL) {
                a[fileNumber][SCORE] = (4 - URL_SCORE_ORDER) * SCORE_PER_TYPE;
            } else {
                a[fileNumber][SCORE] = (4 - CONTENT_SCORE_ORDER) * SCORE_PER_TYPE + a[fileNumber][N_MATCHES];
            }
        }
        for (fileNumber = 2; fileNumber < a.length; fileNumber++) {
            tempScore = a[fileNumber][SCORE];
            E = a[fileNumber][i];
            for (t = fileNumber; t > 1 && tempScore > a[t-1][SCORE]; t--) {
                a[t][SCORE] = a[t-1][SCORE];
                a[t][i] = a[t-1][i];
            }
            a[t][SCORE] = tempScore;
            a[t][i] = E;
        }
    }
}

function putMatchSummary(fileNumber) {
    var pluralSuffix = a[fileNumber][N_MATCHES]==1 ? "" : "es";

    html += "";
    html += "<font color=gray>";
    if (a[fileNumber][MATCH_TYPE] == FILENAME) {
        html += " - matched title";
    } else {
        if (a[fileNumber][MATCH_TYPE] == DESCRIPTION) {
            html += " - matched description";
        } else {
            if (a[fileNumber][MATCH_TYPE] == URL) {
                html += " - matched URL";
            } else {
                html += " - " + a[fileNumber][N_MATCHES] + " match" + pluralSuffix + "";
            }
        }
    }
    html += "</font>";
    html += "";
}

function putMatchDescription(fileNumber, curMatch) {
    var matchLocation = a[fileNumber][MATCHES + curMatch - 1];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -