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
- Added addTyposTestSize() function to fetch typossize.json data
- Updated table header to include fifth column 'Typos test size'
- Increased colspan from 4 to 5 to match new column count
- Data source will be available soon on gh-pages branch
Copy file name to clipboardExpand all lines: assets/js/spellertable.js
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,11 +94,15 @@ 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%;');
97
100
98
101
row_1.appendChild(heading_1);
99
102
row_1.appendChild(heading_2);
100
103
row_1.appendChild(heading_3);
101
104
row_1.appendChild(heading_4);
105
+
row_1.appendChild(heading_5);
102
106
103
107
returnrow_1;
104
108
}
@@ -116,7 +120,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
116
120
if(!repos||!Array.isArray(repos)){
117
121
consterrorRow=document.createElement('tr');
118
122
consterrorCell=document.createElement('td');
119
-
errorCell.colSpan=4;// Match number of columns in header
123
+
errorCell.colSpan=5;// Match number of columns in header
120
124
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
125
errorCell.style.textAlign='center';
122
126
errorCell.style.padding='30px 20px';
@@ -142,7 +146,7 @@ function addSpellerRepoTable(repos, mainFilter, filters) {
142
146
}
143
147
// If no repos found, inform the user:
144
148
if(!tbody.firstChild){
145
-
tbody.appendChild(addEmptyRow(4));
149
+
tbody.appendChild(addEmptyRow(5));
146
150
}
147
151
returntable;
148
152
}
@@ -161,6 +165,18 @@ function addSpellerSuggQuality(repo) {
0 commit comments