aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-07-16 20:14:47 -0400
committerBrian Cully <bjc@spork.org>2025-07-16 20:14:47 -0400
commitb1cabdc85ccefbd07d86be861378ba58a9e908ee (patch)
tree29ad4c8870637614bc32d6e9d861902987885c24
parent8776d676c34b66551abfdb5bc7e85434e7ae46e7 (diff)
downloadpnit-b1cabdc85ccefbd07d86be861378ba58a9e908ee.tar.gz
pnit-b1cabdc85ccefbd07d86be861378ba58a9e908ee.zip
add table header
-rw-r--r--index.html9
-rw-r--r--main.css18
-rw-r--r--pnit-form.mjs2
3 files changed, 28 insertions, 1 deletions
diff --git a/index.html b/index.html
index d0da373..2d28e96 100644
--- a/index.html
+++ b/index.html
@@ -26,6 +26,15 @@
<button id='csv-download'>download</button>
<table id='pnit-results'>
+ <thead>
+ <tr>
+ <th>sequence 1</th>
+ <th>sequence 2</th>
+ <th>identity</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
</table>
</x-pnit-form>
diff --git a/main.css b/main.css
index b6ae759..9ce6e35 100644
--- a/main.css
+++ b/main.css
@@ -2,6 +2,24 @@ form {
margin-bottom: 2ex;
}
+table {
+ border-collapse: collapse;
+ border: 1px solid black;
+}
+
+thead {
+ border-bottom: 1px solid black;
+}
+
+th, td {
+ border: 1px solid black;
+ padding: 2px 5px;
+}
+
+td:last-child {
+ text-align: right;
+}
+
input[name='pni-threshold'] {
text-align: right;
}
diff --git a/pnit-form.mjs b/pnit-form.mjs
index 50624c0..baef44d 100644
--- a/pnit-form.mjs
+++ b/pnit-form.mjs
@@ -35,7 +35,7 @@ export default class extends HTMLElement {
}
get resultTable() {
- return document.getElementById('pnit-results');
+ return this.querySelector('#pnit-results tbody');
}
connectedCallback() {