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
Update badge JSON paths and remove typos test size column
Badge JSON files reorganized in giella-core commit 4190a69:
- lemmacount.json → badgedata/fst-lemmacount.json
- spellersuggs.json → badgedata/speller-suggestions.json
Changes:
- Updated badge URLs in langtable.js and spellertable.js
- Removed addTyposTestSize() function from spellertable.js
- Reduced speller table from 5 to 4 columns
- Updated colspan and addEmptyRow calls to match new column count
- Test size info now included in speller-suggestions.json badge
Copy file name to clipboardExpand all lines: assets/js/spellertable.js
+3-20Lines changed: 3 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -94,15 +94,11 @@ function addSpellerTableHeader() {
94
94
letheading_4=document.createElement('th');
95
95
heading_4.innerHTML='Suggestion Quality';
96
96
heading_4.setAttribute('style','width: 20%;');
97
-
letheading_5=document.createElement('th');
98
-
heading_5.innerHTML='Typos test size';
99
-
heading_5.setAttribute('style','width: 15%;');
100
97
101
98
row_1.appendChild(heading_1);
102
99
row_1.appendChild(heading_2);
103
100
row_1.appendChild(heading_3);
104
101
row_1.appendChild(heading_4);
105
-
row_1.appendChild(heading_5);
106
102
107
103
returnrow_1;
108
104
}
@@ -120,7 +116,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
120
116
if(!repos||!Array.isArray(repos)){
121
117
consterrorRow=document.createElement('tr');
122
118
consterrorCell=document.createElement('td');
123
-
errorCell.colSpan=5;// Match number of columns in header
119
+
errorCell.colSpan=4;// Match number of columns in header
124
120
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>';
125
121
errorCell.style.textAlign='center';
126
122
errorCell.style.padding='30px 20px';
@@ -146,7 +142,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
146
142
}
147
143
// If no repos found, inform the user:
148
144
if(!tbody.firstChild){
149
-
tbody.appendChild(addEmptyRow(5));
145
+
tbody.appendChild(addEmptyRow(4));
150
146
}
151
147
returntable;
152
148
}
@@ -160,26 +156,14 @@ function addSpellerSuggQuality(repo) {
0 commit comments