You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Speller version column to speller overview table
New column added between Repository and Lemma Count:
- Created addSpellerVersion() function fetching badgedata/speller-version.json
- Updated table header with 'Speller version' as heading_3
- Increased table from 4 to 5 columns
- Updated colspan and addEmptyRow calls to match new column count
- Badge displays with label 'V' for version
Copy file name to clipboardExpand all lines: assets/js/spellertable.js
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -90,15 +90,18 @@ function addSpellerTableHeader() {
90
90
letheading_2=document.createElement('th');
91
91
heading_2.innerHTML='Reposi­tory';
92
92
letheading_3=document.createElement('th');
93
-
heading_3.innerHTML='Lemma Count';
93
+
heading_3.innerHTML='Speller version';
94
94
letheading_4=document.createElement('th');
95
-
heading_4.innerHTML='Suggestion Quality';
96
-
heading_4.setAttribute('style','width: 20%;');
95
+
heading_4.innerHTML='Lemma Count';
96
+
letheading_5=document.createElement('th');
97
+
heading_5.innerHTML='Suggestion Quality';
98
+
heading_5.setAttribute('style','width: 20%;');
97
99
98
100
row_1.appendChild(heading_1);
99
101
row_1.appendChild(heading_2);
100
102
row_1.appendChild(heading_3);
101
103
row_1.appendChild(heading_4);
104
+
row_1.appendChild(heading_5);
102
105
103
106
returnrow_1;
104
107
}
@@ -116,7 +119,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
116
119
if(!repos||!Array.isArray(repos)){
117
120
consterrorRow=document.createElement('tr');
118
121
consterrorCell=document.createElement('td');
119
-
errorCell.colSpan=4;// Match number of columns in header
122
+
errorCell.colSpan=5;// Match number of columns in header
120
123
errorCell.innerHTML='<strong>⚠️ GitHub repository data is temporarily unavailable</strong><br><em>This usually resolves automatically. Please try refreshing the page in a few minutes.</em>';
121
124
errorCell.style.textAlign='center';
122
125
errorCell.style.padding='30px 20px';
@@ -142,13 +145,25 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
0 commit comments