Upload index.html
Browse files- static/index.html +6 -3
static/index.html
CHANGED
|
@@ -371,8 +371,7 @@
|
|
| 371 |
<header>
|
| 372 |
<h1>WHEC - Chatbot</h1>
|
| 373 |
<p class="subtitle">Based on documents at WHEC (Warrior Heat- and Exertion-Related Events Collaborative)
|
| 374 |
-
|
| 375 |
-
href="https://www.hprc-online.org/resources-partners/whec">https://www.hprc-online.org/resources-partners/whec</a>
|
| 376 |
</p>
|
| 377 |
</header>
|
| 378 |
|
|
@@ -535,9 +534,13 @@
|
|
| 535 |
? `<a href="${txt.link}" target="_blank" class="source-link">${txt.file || 'Document'}</a>`
|
| 536 |
: `<span class="source-title">${txt.file || 'Document'}</span>`;
|
| 537 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 538 |
div.innerHTML = `
|
| 539 |
<div class="source-title-wrapper">${titleHtml}</div>
|
| 540 |
-
<div class="source-excerpt"
|
| 541 |
<div class="source-meta">
|
| 542 |
Page ${txt.page || 'N/A'} • Similarity: ${(txt.score * 100).toFixed(0)}%
|
| 543 |
</div>
|
|
|
|
| 371 |
<header>
|
| 372 |
<h1>WHEC - Chatbot</h1>
|
| 373 |
<p class="subtitle">Based on documents at WHEC (Warrior Heat- and Exertion-Related Events Collaborative)
|
| 374 |
+
<a href="https://www.hprc-online.org/resources-partners/whec" target="_blank">page</a>
|
|
|
|
| 375 |
</p>
|
| 376 |
</header>
|
| 377 |
|
|
|
|
| 534 |
? `<a href="${txt.link}" target="_blank" class="source-link">${txt.file || 'Document'}</a>`
|
| 535 |
: `<span class="source-title">${txt.file || 'Document'}</span>`;
|
| 536 |
|
| 537 |
+
const excerptHtml = txt.link
|
| 538 |
+
? `<a href="${txt.link}" target="_blank" style="text-decoration:none; color:inherit; display:block;">"${txt.text}..."</a>`
|
| 539 |
+
: `"${txt.text}..."`;
|
| 540 |
+
|
| 541 |
div.innerHTML = `
|
| 542 |
<div class="source-title-wrapper">${titleHtml}</div>
|
| 543 |
+
<div class="source-excerpt">${excerptHtml}</div>
|
| 544 |
<div class="source-meta">
|
| 545 |
Page ${txt.page || 'N/A'} • Similarity: ${(txt.score * 100).toFixed(0)}%
|
| 546 |
</div>
|