@@ -11,6 +11,7 @@ td.date {white-space: nowrap;font-size:90%;}
1111.markdown-body table tr { vertical-align : baseline ;}
1212.markdown-body table thead tr { border-bottom : solid thick black ;}
1313.markdown-body table p { margin-bottom : 0pt ;}
14+ a .closed {text-decoration : line-through }
1415</style >
1516<script src =" sorttable.js " ></script >
1617
@@ -36,10 +37,17 @@ The values in the *Status* column have the following meaning:
3637- ` unchecked ` The status of this package or class is not known, because there aren't reliable tests yet. Help with testing to determine the real status is very much appreciated. (** {{t-s | where: "status", "unchecked" | size }}** entries)
3738
3839
39- Click on the column headings to sort the table by the chosen column.
40+ ----
41+
42+ ** Enter search keywords** (space separated) to filter the table.
43+
44+ <input size =" 40 " type =" text " id =" inp " onkeyup =" filterRows ()" placeholder =" Search terms " >
4045
46+ ** Click on a column heading** to sort the table by the chosen column.
47+
48+ ----
4149
42- <table class =" sortable " style =" display :table ;width :100% ;position :absolute ; left :0 " >
50+ <table id = " tbl " class =" sortable " style =" display :table ;width :100% ;position :absolute ; left :0 " >
4351<thead >
4452<tr >
4553<th >Type</th >
@@ -55,7 +63,7 @@ Click on the column headings to sort the table by the chosen column.
5563<th >Last updated</th >
5664</tr >
5765</thead >
58- <tbody >
66+ <tbody id = " tblbdy " >
5967{%- for p in t-s -%}
6068<tr id =" {{p.name}} " >
6169<td >{{p.type}}</td >
@@ -105,15 +113,22 @@ Requires the use of (u)ptex.
105113<a href =" https://github.com/latex3/tagging-project/issues/{{i}} " >#{{i}}</a >
106114{% endfor %}
107115{%- endif -%}
108- {% if p.related -issues %}
116+ {% if p.closed -issues %}
109117{%- if p.issues -%}<br />{%- endif -%}
118+ Closed:
119+ {% for i in p.closed-issues %}
120+ <a class =" closed " href =" https://github.com/latex3/tagging-project/issues/{{i}} " >#{{i}}</a >
121+ {% endfor %}
122+ {% endif %}
123+ {% if p.related-issues %}
124+ {%- if p.issues or p.closed-issues -%}<br />{%- endif -%}
110125Related:
111126{% for i in p.related-issues %}
112127<a href =" https://github.com/latex3/tagging-project/issues/{{i}} " >#{{i}}</a >
113128{% endfor %}
114129{% endif %}
115130{% if p.external-issues %}
116- {%- if p.issues or p.related-issues -%}<br />{%- endif -%}
131+ {%- if p.issues or p.closed-issues or p. related-issues -%}<br />{%- endif -%}
117132Other:
118133{% for u in p.external-issues %}
119134{%- assign ltext = u | replace: "issues/", "" | replace: "-/","" | split: "/" -%}
@@ -170,3 +185,23 @@ Other:
170185<p id =" ref{{r.number}} " ><span >{{r.number}}. </span > <a href =" {{r.url}} " ><span >{{r.authors}}.</span > <span >{{r.title}}</span ></a ></p >
171186{% endfor %}
172187
188+ <script >
189+ function filterRows () {
190+ const input = document .getElementById (" inp" );
191+ const keywds = input .value .toUpperCase ().split (' ' );
192+ const tbdy = document .getElementById (" tblbdy" );
193+ const trs = tbdy .getElementsByTagName (" tr" );
194+
195+ // Loop through rows, and hide those who don't match all terms in the query
196+ for (let i = 0 ; i != trs .length ; i++ ) {
197+ const rowtxt = trs[i].textContent .toUpperCase ();
198+ let d= " " ;
199+ for (let j= 0 ;j!= keywds .length ;j++ ){
200+ if (rowtxt .indexOf (keywds[j]) == - 1 ) {
201+ d= " none" ;
202+ }
203+ }
204+ trs[i].style .display = d;
205+ }
206+ }
207+ </script >
0 commit comments