Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +112 -26
templates/index.html
CHANGED
|
@@ -47,9 +47,20 @@ textarea::placeholder,input::placeholder{color:var(--faint);}
|
|
| 47 |
.btn-p{background:var(--accent);color:#fff;}.btn-p:hover{background:#1d4ed8;}
|
| 48 |
.btn-o{background:var(--surface);color:var(--text);border:1px solid var(--border);}.btn-o:hover{background:var(--bg);}
|
| 49 |
.btn:disabled{opacity:.4;cursor:not-allowed;}
|
|
|
|
|
|
|
| 50 |
.gpills{display:flex;flex-wrap:wrap;gap:5px;}
|
| 51 |
-
.gpill{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
.gpill:hover{background:#dbeafe;}
|
|
|
|
|
|
|
| 53 |
.main{display:flex;flex-direction:column;overflow:hidden;}
|
| 54 |
.tabs{background:var(--surface);border-bottom:1px solid var(--border);display:flex;padding:0 24px;flex-shrink:0;}
|
| 55 |
.tab{padding:16px;font-size:14px;font-weight:500;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;transition:all .15s;}
|
|
@@ -83,11 +94,21 @@ tr:last-child td{border-bottom:none;}tr:hover td{background:#fafbfc;}
|
|
| 83 |
.tdt{max-width:360px;}.tdt a{color:var(--text);font-weight:500;}.tdt a:hover{color:var(--accent);}
|
| 84 |
.tdm{font-size:12px;color:var(--faint);margin-top:3px;}
|
| 85 |
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500;}
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
.
|
| 89 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
.bunk{background:var(--bg);color:var(--faint);border:1px solid var(--border);}
|
|
|
|
| 91 |
.bdis{font-size:11px;color:var(--amber);background:var(--aml);border-radius:4px;padding:1px 6px;margin-left:4px;font-weight:500;}
|
| 92 |
.cbar{display:flex;align-items:center;gap:8px;}.cbg{flex:1;height:4px;background:var(--bg);border-radius:2px;min-width:48px;}
|
| 93 |
.cfg{height:100%;border-radius:2px;}.cnum{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap;}
|
|
@@ -174,7 +195,7 @@ tr:last-child td{border-bottom:none;}tr:hover td{background:#fafbfc;}
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
<div class="sbsec" style="flex:1;overflow-y:auto;">
|
| 177 |
-
<div class="sblbl">Genes in DB</div>
|
| 178 |
<div class="gpills" id="db-genes"></div>
|
| 179 |
</div>
|
| 180 |
</aside>
|
|
@@ -312,6 +333,9 @@ function api(path, extra) {
|
|
| 312 |
// ββ State ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 313 |
const S = {page:1,perPage:25,genes:[],cancer:'all',func:'all',conf:0,total:0,pages:1};
|
| 314 |
|
|
|
|
|
|
|
|
|
|
| 315 |
window.addEventListener('DOMContentLoaded', () => { loadStats(); setInterval(loadStats, 60000); });
|
| 316 |
|
| 317 |
function switchTab(id, el) {
|
|
@@ -330,13 +354,38 @@ async function loadStats() {
|
|
| 330 |
document.getElementById('s-func').textContent = fmt(d.functional_papers);
|
| 331 |
document.getElementById('db-summary').textContent =
|
| 332 |
`${fmt(d.total_papers)} papers Β· ${fmt(d.total_genes)} genes Β· synced ${d.last_sync||'β'}`;
|
| 333 |
-
|
| 334 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
} catch(e) {
|
| 336 |
document.getElementById('db-summary').textContent = 'DB unavailable';
|
| 337 |
}
|
| 338 |
}
|
| 339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
function quickSearch(gene) {
|
| 341 |
document.getElementById('gene-input').value = gene;
|
| 342 |
switchTab('results', document.querySelector('.tab'));
|
|
@@ -370,9 +419,10 @@ async function doSearch(page) {
|
|
| 370 |
finally { btn.disabled=false; btn.textContent='Search Database'; }
|
| 371 |
}
|
| 372 |
|
|
|
|
| 373 |
function renderCards(genes, summaries, rows) {
|
| 374 |
const el = document.getElementById('gcards');
|
| 375 |
-
const
|
| 376 |
|
| 377 |
el.innerHTML = genes.map(gene => {
|
| 378 |
const s = summaries[gene]||{};
|
|
@@ -381,12 +431,18 @@ function renderCards(genes, summaries, rows) {
|
|
| 381 |
<div class="gcinfo" style="color:var(--amber);margin-top:6px;">Not in database</div>
|
| 382 |
<div class="gcinfo" style="font-size:13px;margin-top:3px;">Click to request</div></div>`;
|
| 383 |
|
| 384 |
-
|
|
|
|
|
|
|
| 385 |
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
if (funcOnly && rows) {
|
| 389 |
const geneRows = rows.filter(r => r.gene === gene && r.functional_study);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
methodCounts = {
|
| 391 |
knockout: geneRows.filter(r=>r.knockout).length,
|
| 392 |
knockdown: geneRows.filter(r=>r.knockdown).length,
|
|
@@ -394,6 +450,23 @@ function renderCards(genes, summaries, rows) {
|
|
| 394 |
sirna: geneRows.filter(r=>r.sirna).length,
|
| 395 |
crispr: geneRows.filter(r=>r.crispr).length,
|
| 396 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
}
|
| 398 |
|
| 399 |
const tags=[
|
|
@@ -404,27 +477,36 @@ function renderCards(genes, summaries, rows) {
|
|
| 404 |
methodCounts.crispr?`<span class="tag t-crispr">CRISPRΓ${methodCounts.crispr}</span>`:'',
|
| 405 |
].join('');
|
| 406 |
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 410 |
|
| 411 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
|
| 413 |
return `<div class="gcard sel">
|
| 414 |
<div class="gcname">${gene}</div>
|
| 415 |
<div class="gcinfo" style="margin-top:5px;">
|
| 416 |
-
<strong>${
|
| 417 |
</div>
|
| 418 |
<div class="gcinfo" style="margin-top:4px;font-size:13px;">
|
| 419 |
-
Pancreatic: <strong>${
|
| 420 |
-
GI: <strong>${
|
| 421 |
-
Other: <strong>${
|
| 422 |
</div>
|
| 423 |
-
<div class="minibar" style="margin-top:10px;">
|
| 424 |
<div style="width:${vt}%;background:var(--purple);"></div>
|
| 425 |
<div style="width:${vv}%;background:#f97316;"></div>
|
| 426 |
<div style="width:${bt}%;background:var(--accent);"></div>
|
| 427 |
-
</div>
|
| 428 |
${tags?`<div class="tags">${tags}</div>`:''}
|
| 429 |
</div>`;
|
| 430 |
}).join('');
|
|
@@ -443,17 +525,21 @@ function renderTable(rows, total) {
|
|
| 443 |
document.getElementById('tbl-title').textContent=`${fmt(total)} paper${total!==1?'s':''}`;
|
| 444 |
let html=`<table><thead><tr>
|
| 445 |
<th>Gene</th><th>Title</th><th>Year</th><th>Cancer</th>
|
| 446 |
-
<th>Functional</th><th>Where</th><th>Confidence</th><th></th>
|
| 447 |
</tr></thead><tbody>`;
|
| 448 |
rows.forEach((row,i)=>{
|
| 449 |
const uid='r'+i, conf=parseFloat(row.confidence)||0;
|
| 450 |
const cc=conf>=.7?'var(--green)':conf>=.4?'var(--amber)':'var(--red)';
|
| 451 |
-
|
|
|
|
|
|
|
|
|
|
| 452 |
const wb=row.where_functional==='both'?`<span class="badge bb">Both</span>`:
|
| 453 |
row.where_functional==='in_vitro'?`<span class="badge bvt">In vitro</span>`:
|
| 454 |
row.where_functional==='in_vivo'?`<span class="badge bvv">In vivo</span>`:
|
| 455 |
-
`<span class="badge bn">β</span>`;
|
| 456 |
const ct=row.cancer_type||'unk';
|
|
|
|
| 457 |
const cb=`<span class="badge b${ct==='pancreatic'?'panc':ct==='gi'?'gi':ct==='cancer'?'ca':'unk'}">${ct}</span>`;
|
| 458 |
const ttl=row.pubmed_link?`<a href="${row.pubmed_link}" target="_blank" rel="noopener">${esc(row.title)}</a>`:esc(row.title);
|
| 459 |
const dis=row.llm_rules_disagree?`<span class="bdis">β disagree</span>`:'';
|
|
|
|
| 47 |
.btn-p{background:var(--accent);color:#fff;}.btn-p:hover{background:#1d4ed8;}
|
| 48 |
.btn-o{background:var(--surface);color:var(--text);border:1px solid var(--border);}.btn-o:hover{background:var(--bg);}
|
| 49 |
.btn:disabled{opacity:.4;cursor:not-allowed;}
|
| 50 |
+
|
| 51 |
+
/* ββ Gene pills: multi-select ββ */
|
| 52 |
.gpills{display:flex;flex-wrap:wrap;gap:5px;}
|
| 53 |
+
.gpill{
|
| 54 |
+
font-family:var(--mono);font-size:12px;font-weight:500;
|
| 55 |
+
padding:3px 9px;
|
| 56 |
+
background:var(--al);color:var(--accent);
|
| 57 |
+
border:1px solid var(--ab);border-radius:5px;
|
| 58 |
+
cursor:pointer;transition:background .12s,border-color .12s,color .12s;
|
| 59 |
+
user-select:none;
|
| 60 |
+
}
|
| 61 |
.gpill:hover{background:#dbeafe;}
|
| 62 |
+
.gpill.selected{background:var(--accent);color:#fff;border-color:var(--accent);}
|
| 63 |
+
|
| 64 |
.main{display:flex;flex-direction:column;overflow:hidden;}
|
| 65 |
.tabs{background:var(--surface);border-bottom:1px solid var(--border);display:flex;padding:0 24px;flex-shrink:0;}
|
| 66 |
.tab{padding:16px;font-size:14px;font-weight:500;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;transition:all .15s;}
|
|
|
|
| 94 |
.tdt{max-width:360px;}.tdt a{color:var(--text);font-weight:500;}.tdt a:hover{color:var(--accent);}
|
| 95 |
.tdm{font-size:12px;color:var(--faint);margin-top:3px;}
|
| 96 |
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500;}
|
| 97 |
+
|
| 98 |
+
/* Functional Yes = green, No = RED */
|
| 99 |
+
.by{background:var(--gl);color:var(--green);}
|
| 100 |
+
.bn{background:var(--rl);color:var(--red);border:none;} /* changed: No is now red */
|
| 101 |
+
|
| 102 |
+
.bb{background:var(--al);color:var(--accent);}
|
| 103 |
+
.bvt{background:var(--pl);color:var(--purple);}
|
| 104 |
+
.bvv{background:#fff7ed;color:#c2410c;}
|
| 105 |
+
|
| 106 |
+
/* Cancer badges β pancreatic = amber, gi = green, cancer = NEUTRAL (not red), unknown = neutral */
|
| 107 |
+
.bpanc{background:var(--aml);color:var(--amber);}
|
| 108 |
+
.bgi{background:var(--gl);color:var(--green);}
|
| 109 |
+
.bca{background:#f3f4f6;color:#374151;border:1px solid var(--border);} /* changed: was red, now neutral grey */
|
| 110 |
.bunk{background:var(--bg);color:var(--faint);border:1px solid var(--border);}
|
| 111 |
+
|
| 112 |
.bdis{font-size:11px;color:var(--amber);background:var(--aml);border-radius:4px;padding:1px 6px;margin-left:4px;font-weight:500;}
|
| 113 |
.cbar{display:flex;align-items:center;gap:8px;}.cbg{flex:1;height:4px;background:var(--bg);border-radius:2px;min-width:48px;}
|
| 114 |
.cfg{height:100%;border-radius:2px;}.cnum{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap;}
|
|
|
|
| 195 |
</div>
|
| 196 |
</div>
|
| 197 |
<div class="sbsec" style="flex:1;overflow-y:auto;">
|
| 198 |
+
<div class="sblbl">Genes in DB <span style="font-size:10px;font-weight:400;color:var(--faint);text-transform:none;letter-spacing:0;">(click to toggle)</span></div>
|
| 199 |
<div class="gpills" id="db-genes"></div>
|
| 200 |
</div>
|
| 201 |
</aside>
|
|
|
|
| 333 |
// ββ State ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 334 |
const S = {page:1,perPage:25,genes:[],cancer:'all',func:'all',conf:0,total:0,pages:1};
|
| 335 |
|
| 336 |
+
// ββ Multi-select gene pills state βββββββββββββββββββββββββββββββββββββββββ
|
| 337 |
+
const selectedPills = new Set();
|
| 338 |
+
|
| 339 |
window.addEventListener('DOMContentLoaded', () => { loadStats(); setInterval(loadStats, 60000); });
|
| 340 |
|
| 341 |
function switchTab(id, el) {
|
|
|
|
| 354 |
document.getElementById('s-func').textContent = fmt(d.functional_papers);
|
| 355 |
document.getElementById('db-summary').textContent =
|
| 356 |
`${fmt(d.total_papers)} papers Β· ${fmt(d.total_genes)} genes Β· synced ${d.last_sync||'β'}`;
|
| 357 |
+
|
| 358 |
+
// Render multi-select gene pills
|
| 359 |
+
const pillsEl = document.getElementById('db-genes');
|
| 360 |
+
pillsEl.innerHTML = (d.all_genes||[]).map(g => {
|
| 361 |
+
const sel = selectedPills.has(g) ? ' selected' : '';
|
| 362 |
+
return `<span class="gpill${sel}" onclick="togglePill('${g}',this)">${g}</span>`;
|
| 363 |
+
}).join('');
|
| 364 |
} catch(e) {
|
| 365 |
document.getElementById('db-summary').textContent = 'DB unavailable';
|
| 366 |
}
|
| 367 |
}
|
| 368 |
|
| 369 |
+
// ββ Toggle a gene pill on/off and update the textarea βββββββββββββββββββββ
|
| 370 |
+
function togglePill(gene, el) {
|
| 371 |
+
if (selectedPills.has(gene)) {
|
| 372 |
+
selectedPills.delete(gene);
|
| 373 |
+
el.classList.remove('selected');
|
| 374 |
+
} else {
|
| 375 |
+
selectedPills.add(gene);
|
| 376 |
+
el.classList.add('selected');
|
| 377 |
+
}
|
| 378 |
+
// Sync textarea: keep any manually typed genes + selected pills
|
| 379 |
+
const manual = document.getElementById('gene-input').value
|
| 380 |
+
.split(/[\n,]+/).map(g=>g.trim().toUpperCase()).filter(g=>g && !selectedPills.has(g) && g);
|
| 381 |
+
const all = [...manual, ...Array.from(selectedPills)];
|
| 382 |
+
document.getElementById('gene-input').value = all.join('\n');
|
| 383 |
+
|
| 384 |
+
// Auto-switch to results tab
|
| 385 |
+
switchTab('results', document.querySelector('.tab'));
|
| 386 |
+
doSearch();
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
function quickSearch(gene) {
|
| 390 |
document.getElementById('gene-input').value = gene;
|
| 391 |
switchTab('results', document.querySelector('.tab'));
|
|
|
|
| 419 |
finally { btn.disabled=false; btn.textContent='Search Database'; }
|
| 420 |
}
|
| 421 |
|
| 422 |
+
// ββ Summary card rendering β respects current filter ββββββββββββββββββββββ
|
| 423 |
function renderCards(genes, summaries, rows) {
|
| 424 |
const el = document.getElementById('gcards');
|
| 425 |
+
const funcFilter = S.func; // 'all' | 'true' | 'false'
|
| 426 |
|
| 427 |
el.innerHTML = genes.map(gene => {
|
| 428 |
const s = summaries[gene]||{};
|
|
|
|
| 431 |
<div class="gcinfo" style="color:var(--amber);margin-top:6px;">Not in database</div>
|
| 432 |
<div class="gcinfo" style="font-size:13px;margin-top:3px;">Click to request</div></div>`;
|
| 433 |
|
| 434 |
+
// Build display counts based on active filter
|
| 435 |
+
let displayTotal, displayFunctional, displayPancreatic, displayGi, displayOther;
|
| 436 |
+
let methodCounts;
|
| 437 |
|
| 438 |
+
if (funcFilter === 'true') {
|
| 439 |
+
// Functional only: count from rows for this gene that are functional
|
|
|
|
| 440 |
const geneRows = rows.filter(r => r.gene === gene && r.functional_study);
|
| 441 |
+
displayTotal = geneRows.length;
|
| 442 |
+
displayFunctional = geneRows.length;
|
| 443 |
+
displayPancreatic = geneRows.filter(r=>r.cancer_type==='pancreatic').length;
|
| 444 |
+
displayGi = geneRows.filter(r=>r.cancer_type==='gi').length;
|
| 445 |
+
displayOther = geneRows.filter(r=>r.cancer_type==='cancer').length;
|
| 446 |
methodCounts = {
|
| 447 |
knockout: geneRows.filter(r=>r.knockout).length,
|
| 448 |
knockdown: geneRows.filter(r=>r.knockdown).length,
|
|
|
|
| 450 |
sirna: geneRows.filter(r=>r.sirna).length,
|
| 451 |
crispr: geneRows.filter(r=>r.crispr).length,
|
| 452 |
};
|
| 453 |
+
} else if (funcFilter === 'false') {
|
| 454 |
+
// Non-functional only: count from rows for this gene that are NOT functional
|
| 455 |
+
const geneRows = rows.filter(r => r.gene === gene && !r.functional_study);
|
| 456 |
+
displayTotal = geneRows.length;
|
| 457 |
+
displayFunctional = 0;
|
| 458 |
+
displayPancreatic = geneRows.filter(r=>r.cancer_type==='pancreatic').length;
|
| 459 |
+
displayGi = geneRows.filter(r=>r.cancer_type==='gi').length;
|
| 460 |
+
displayOther = geneRows.filter(r=>r.cancer_type==='cancer').length;
|
| 461 |
+
methodCounts = {knockout:0,knockdown:0,shrna:0,sirna:0,crispr:0};
|
| 462 |
+
} else {
|
| 463 |
+
// All papers: use full summary from API
|
| 464 |
+
displayTotal = s.total;
|
| 465 |
+
displayFunctional = s.functional;
|
| 466 |
+
displayPancreatic = s.pancreatic;
|
| 467 |
+
displayGi = s.gi;
|
| 468 |
+
displayOther = s.other_cancer || 0;
|
| 469 |
+
methodCounts = s.methods || {};
|
| 470 |
}
|
| 471 |
|
| 472 |
const tags=[
|
|
|
|
| 477 |
methodCounts.crispr?`<span class="tag t-crispr">CRISPRΓ${methodCounts.crispr}</span>`:'',
|
| 478 |
].join('');
|
| 479 |
|
| 480 |
+
// Mini bar: only meaningful when showing functional studies
|
| 481 |
+
let vt=0, vv=0, bt=0;
|
| 482 |
+
if (funcFilter !== 'false' && displayFunctional > 0) {
|
| 483 |
+
vt = Math.round(100*(s.in_vitro_only||0)/displayFunctional);
|
| 484 |
+
vv = Math.round(100*(s.in_vivo_only||0)/displayFunctional);
|
| 485 |
+
bt = Math.round(100*(s.both||0)/displayFunctional);
|
| 486 |
+
}
|
| 487 |
|
| 488 |
+
const paperLabel = funcFilter === 'true' ? 'functional studies'
|
| 489 |
+
: funcFilter === 'false' ? 'non-functional papers'
|
| 490 |
+
: 'papers';
|
| 491 |
+
const funcLine = funcFilter === 'all'
|
| 492 |
+
? ` Β· <strong>${displayFunctional}</strong> functional studies`
|
| 493 |
+
: '';
|
| 494 |
|
| 495 |
return `<div class="gcard sel">
|
| 496 |
<div class="gcname">${gene}</div>
|
| 497 |
<div class="gcinfo" style="margin-top:5px;">
|
| 498 |
+
<strong>${displayTotal}</strong> ${paperLabel}${funcLine}
|
| 499 |
</div>
|
| 500 |
<div class="gcinfo" style="margin-top:4px;font-size:13px;">
|
| 501 |
+
Pancreatic: <strong>${displayPancreatic}</strong>
|
| 502 |
+
GI: <strong>${displayGi}</strong>
|
| 503 |
+
Other: <strong>${displayOther}</strong>
|
| 504 |
</div>
|
| 505 |
+
${funcFilter !== 'false' ? `<div class="minibar" style="margin-top:10px;">
|
| 506 |
<div style="width:${vt}%;background:var(--purple);"></div>
|
| 507 |
<div style="width:${vv}%;background:#f97316;"></div>
|
| 508 |
<div style="width:${bt}%;background:var(--accent);"></div>
|
| 509 |
+
</div>` : ''}
|
| 510 |
${tags?`<div class="tags">${tags}</div>`:''}
|
| 511 |
</div>`;
|
| 512 |
}).join('');
|
|
|
|
| 525 |
document.getElementById('tbl-title').textContent=`${fmt(total)} paper${total!==1?'s':''}`;
|
| 526 |
let html=`<table><thead><tr>
|
| 527 |
<th>Gene</th><th>Title</th><th>Year</th><th>Cancer</th>
|
| 528 |
+
<th>Functional</th><th>Where (In Vitro/In Vivo)</th><th>Confidence</th><th></th>
|
| 529 |
</tr></thead><tbody>`;
|
| 530 |
rows.forEach((row,i)=>{
|
| 531 |
const uid='r'+i, conf=parseFloat(row.confidence)||0;
|
| 532 |
const cc=conf>=.7?'var(--green)':conf>=.4?'var(--amber)':'var(--red)';
|
| 533 |
+
// Functional: Yes = green, No = red
|
| 534 |
+
const fb=row.functional_study
|
| 535 |
+
?`<span class="badge by">Yes</span>`
|
| 536 |
+
:`<span class="badge bn">No</span>`;
|
| 537 |
const wb=row.where_functional==='both'?`<span class="badge bb">Both</span>`:
|
| 538 |
row.where_functional==='in_vitro'?`<span class="badge bvt">In vitro</span>`:
|
| 539 |
row.where_functional==='in_vivo'?`<span class="badge bvv">In vivo</span>`:
|
| 540 |
+
`<span class="badge bn" style="background:var(--bg);color:var(--faint);border:1px solid var(--border);">β</span>`;
|
| 541 |
const ct=row.cancer_type||'unk';
|
| 542 |
+
// Cancer badge: pancreatic=amber, gi=green, cancer=neutral-grey, unknown=neutral
|
| 543 |
const cb=`<span class="badge b${ct==='pancreatic'?'panc':ct==='gi'?'gi':ct==='cancer'?'ca':'unk'}">${ct}</span>`;
|
| 544 |
const ttl=row.pubmed_link?`<a href="${row.pubmed_link}" target="_blank" rel="noopener">${esc(row.title)}</a>`:esc(row.title);
|
| 545 |
const dis=row.llm_rules_disagree?`<span class="bdis">β disagree</span>`:'';
|