diff options
| -rw-r--r-- | index.html | 9 | ||||
| -rw-r--r-- | main.css | 18 | ||||
| -rw-r--r-- | pnit-form.mjs | 2 |
3 files changed, 28 insertions, 1 deletions
@@ -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> @@ -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() { |
