Spaces:
Running
Running
GitHub Action Bot commited on
Commit ·
cd381bf
1
Parent(s): 87222a3
Sync index.html and tags.csv from GitHub
Browse files- index.html +9 -1
index.html
CHANGED
|
@@ -236,9 +236,17 @@
|
|
| 236 |
return { name: (parts[0] || '').trim().replace(/_/g, ' '), count: (parts[1] || '').trim() };
|
| 237 |
});
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
document.getElementById('tagCountStatus').innerText = `${tagDatabase.length.toLocaleString()} tags`;
|
|
|
|
| 240 |
loadHistory();
|
| 241 |
-
} catch (err) {
|
|
|
|
|
|
|
|
|
|
| 242 |
}
|
| 243 |
|
| 244 |
// Helper to get the word currently being typed at the cursor position
|
|
|
|
| 236 |
return { name: (parts[0] || '').trim().replace(/_/g, ' '), count: (parts[1] || '').trim() };
|
| 237 |
});
|
| 238 |
|
| 239 |
+
// Update the "Syncing..." text to show it's done
|
| 240 |
+
document.getElementById('fileDate').innerText = `Synced: ${new Date().toLocaleDateString()}`;
|
| 241 |
+
|
| 242 |
+
// Update the tag count
|
| 243 |
document.getElementById('tagCountStatus').innerText = `${tagDatabase.length.toLocaleString()} tags`;
|
| 244 |
+
|
| 245 |
loadHistory();
|
| 246 |
+
} catch (err) {
|
| 247 |
+
document.getElementById('fileDate').innerText = "Sync Failed";
|
| 248 |
+
document.getElementById('tagCountStatus').innerText = "Offline";
|
| 249 |
+
}
|
| 250 |
}
|
| 251 |
|
| 252 |
// Helper to get the word currently being typed at the cursor position
|