on master help sign in
*
commitc099e71289f830d9620f17b43e2ff47438e3a801 authorDevine Lu Linvega <aliceffekt@gmail.com> dateMon 29 Jul 2019, 10:04 (7 years ago) parente83e5be
1 file changed+1−1
scripts/wiki.js+1−1
scripts/wiki.js+1−1
@@ -51,7 +51,7 @@ function Wiki (sites) {
5151 }
5252 } else {
5353 const random = this.random()
54− this._entry.innerHTML = `Click a /topic to get started, or try a <a href='#${random.toUrl()}' onclick='wiki.go("${random}")'>random page</a>.`
54+ this._entry.innerHTML = `Click a /topic to get started, or try a <a href='#${random.toUrl()}' onclick='wiki.go("${random}")'>random page</a>.<br />The wiki contains ${Object.keys(this.index).length} terms, in ${Object.keys(this.categories).length} categories.`
5555 }
5656 // Sidebar
5757 this._categories.innerHTML = Object.keys(this.categories).reduce((acc, id) => { return this.categories[id].length > 5 ? `${acc}<li onclick='wiki.go("${id}")' class='${wiki.at(id) ? 'selected' : ''}'>${id.substr(0, 20)} <span class='right'>${this.categories[id].length}</span></li>` : acc }, '')