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

📄 search-page.html

📁 DICOM viewer - this software is used to view a set of DICOM images.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    var matchStart = matchLocation < 35 ? 0 : matchLocation - 35;
    var matchEnd = (matchLocation + 35 > a[fileNumber][CONTENTS].length) ? a[fileNumber][CONTENTS].length : matchLocation + 35;

    var Q = false;
    while ((matchStart >= 0) && !Q) {
        if (isAlnumAmp(a[fileNumber][CONTENTS].charAt(matchStart))) {
            matchStart--;
        } else {
            Q = true;
        }
    }
    matchStart++;

    Q = false;
    while ((matchEnd > matchLocation) && !Q) {
        if (isAlnumAmp(a[fileNumber][CONTENTS].charAt(matchEnd))) {
            matchEnd--;
        } else {
            Q = true;
        }
    }

    html += "<BR>\".. " + a[fileNumber][CONTENTS].substring(matchStart, matchLocation);
    html += "<B>" + a[fileNumber][CONTENTS].substring(matchLocation, matchLocation + searchString.length) + "</B>";
    html += a[fileNumber][CONTENTS].substring(matchLocation + searchString.length, matchEnd) + " ..\"";
}

function putAllMatchDescriptions(fileNumber) {
    if (omitDescriptions == false) {
        var curMatch = 1;
        while ((curMatch < 4) && (curMatch <= a[fileNumber][N_MATCHES])) {
            putMatchDescription(fileNumber, curMatch);
            curMatch++;
        }
    }
}

function putFoundString(v, R) {
    html += v.substring(0, R);
    html += "<B>" + v.substring(R, R + searchString.length) + "</B>";
    html += v.substring(R + searchString.length, v.length);
}

function putItem(fileNumber, itemNumber) {
    html += "<p>" + itemNumber + ". ";
    html += "<A href=\"" + a[fileNumber][URL] + "\" target=\"file_frame\">" + a[fileNumber][FILENAME] + "</a>";

    if (a[fileNumber][MATCH_TYPE] == CONTENTS) {
        putAllMatchDescriptions(fileNumber);
    } else {
        html += "";
    }

    if (a[fileNumber][MATCH_TYPE] == DESCRIPTION) {
        html += "<font color=gray>";
        html += "<br>Description: ";
        html += "</font>";
        html += "";
        putFoundString(a[fileNumber][DESCRIPTION], a[fileNumber][MATCHES]);
    } else {
        if( a[fileNumber][DESCRIPTION].length > 0 ) {
            html += "<font color=gray>";
            html += "<br>Description: ";
            html += "</font>";
            html += "" + a[fileNumber][DESCRIPTION];
        } else {
        }
    }
    html += "<br>";
    html += "<font color=#005500>";
    if (a[fileNumber][MATCH_TYPE] == URL) {
        putFoundString(a[fileNumber][URL], a[fileNumber][MATCHES]);
    } else {
        html += a[fileNumber][URL];
    }
    html += "</font>";
    if (addMatchSummary) {
        putMatchSummary(fileNumber);
    }
    html += "<br>";
}

function putResults() {
    var itemNumber = 0;

    if (!(invalidSearchString)) {
        for (var fileNumber = 1; fileNumber < a.length; fileNumber++) {
            if (a[a[fileNumber][i]][N_MATCHES] > 0) {

⌨️ 快捷键说明

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