Update results.html
Browse files- results.html +3 -5
results.html
CHANGED
|
@@ -385,7 +385,6 @@
|
|
| 385 |
.gsc-above-wrapper-area { border: none !important; padding: 0 !important; margin: 0 !important; height: 0 !important; }
|
| 386 |
.gsc-control-cse, .gsc-control-wrapper-cse { background: transparent !important; border: none !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
|
| 387 |
|
| 388 |
-
/* ุฅุธูุงุฑ ุญุงููุฉ ุงูุตูุฑุฉ ุงูู
ุตุบุฑุฉ ุจุดูู ุทุจูุนู */
|
| 389 |
.gsc-thumbnail-inside { display: block !important; padding: 0 !important; visibility: visible !important; height: auto !important; width: auto !important; margin-bottom: 5px; }
|
| 390 |
|
| 391 |
/* ุฅุฎูุงุก ุงูุนูุงููู ุงูู
ูุฑุฑุฉ ุฏุงุฎู ุญุงููุฉ ุงูุตูุฑุฉ ุงูู
ุตุบุฑุฉ */
|
|
@@ -396,7 +395,6 @@
|
|
| 396 |
visibility: hidden !important;
|
| 397 |
}
|
| 398 |
|
| 399 |
-
/* ุชูุณูู ุงูุนูุงููู ูุงูู
ูุฎุตุงุช ุงูุฃุณุงุณูุฉ */
|
| 400 |
.gs-title, .gs-title *, a.gs-title {
|
| 401 |
color: var(--accent) !important;
|
| 402 |
text-decoration: none !important;
|
|
@@ -700,7 +698,7 @@
|
|
| 700 |
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 701 |
// Helpers
|
| 702 |
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 703 |
-
function truncateWords(text, max =
|
| 704 |
if (!text) return '';
|
| 705 |
const words = text.trim().split(/\s+/);
|
| 706 |
return words.length <= max ? text : words.slice(0, max).join(' ') + 'โฆ';
|
|
@@ -802,7 +800,7 @@
|
|
| 802 |
body: JSON.stringify({
|
| 803 |
api_key: TAVILY_API_KEYS[idx],
|
| 804 |
query: q,
|
| 805 |
-
search_depth: '
|
| 806 |
max_results: 20,
|
| 807 |
include_favicon: true
|
| 808 |
})
|
|
@@ -842,7 +840,7 @@
|
|
| 842 |
<div class="tavily-content">
|
| 843 |
<div class="tavily-domain"><i class="fa-solid fa-link"></i> ${escapeHTML(domain)}</div>
|
| 844 |
<a class="tavily-title" href="${r.url}" target="_blank" rel="noopener noreferrer">${escapeHTML(r.title || 'ุจุฏูู ุนููุงู')}</a>
|
| 845 |
-
<p class="tavily-snippet">${truncateWords(escapeHTML(r.content || r.snippet || ''),
|
| 846 |
</div>
|
| 847 |
</article>`;
|
| 848 |
}).join('');
|
|
|
|
| 385 |
.gsc-above-wrapper-area { border: none !important; padding: 0 !important; margin: 0 !important; height: 0 !important; }
|
| 386 |
.gsc-control-cse, .gsc-control-wrapper-cse { background: transparent !important; border: none !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
|
| 387 |
|
|
|
|
| 388 |
.gsc-thumbnail-inside { display: block !important; padding: 0 !important; visibility: visible !important; height: auto !important; width: auto !important; margin-bottom: 5px; }
|
| 389 |
|
| 390 |
/* ุฅุฎูุงุก ุงูุนูุงููู ุงูู
ูุฑุฑุฉ ุฏุงุฎู ุญุงููุฉ ุงูุตูุฑุฉ ุงูู
ุตุบุฑุฉ */
|
|
|
|
| 395 |
visibility: hidden !important;
|
| 396 |
}
|
| 397 |
|
|
|
|
| 398 |
.gs-title, .gs-title *, a.gs-title {
|
| 399 |
color: var(--accent) !important;
|
| 400 |
text-decoration: none !important;
|
|
|
|
| 698 |
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 699 |
// Helpers
|
| 700 |
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 701 |
+
function truncateWords(text, max = 21) {
|
| 702 |
if (!text) return '';
|
| 703 |
const words = text.trim().split(/\s+/);
|
| 704 |
return words.length <= max ? text : words.slice(0, max).join(' ') + 'โฆ';
|
|
|
|
| 800 |
body: JSON.stringify({
|
| 801 |
api_key: TAVILY_API_KEYS[idx],
|
| 802 |
query: q,
|
| 803 |
+
search_depth: 'ultra-fast',
|
| 804 |
max_results: 20,
|
| 805 |
include_favicon: true
|
| 806 |
})
|
|
|
|
| 840 |
<div class="tavily-content">
|
| 841 |
<div class="tavily-domain"><i class="fa-solid fa-link"></i> ${escapeHTML(domain)}</div>
|
| 842 |
<a class="tavily-title" href="${r.url}" target="_blank" rel="noopener noreferrer">${escapeHTML(r.title || 'ุจุฏูู ุนููุงู')}</a>
|
| 843 |
+
<p class="tavily-snippet">${truncateWords(escapeHTML(r.content || r.snippet || ''), 21)}</p>
|
| 844 |
</div>
|
| 845 |
</article>`;
|
| 846 |
}).join('');
|