Re-added mobile list toggle to hallway.js
commitd1beed7bb02ec0de28861826d50752178ceb26ad
authorCory Driscoll <cory@drisc.io>
dateMon 29 Jul 2019, 19:24 (7 years ago)
parent6a43ff1
scripts/hallway.js+2−1
@@ -48,7 +48,8 @@ function Hallway (sites) {
4848 </ul>
4949 <div id='pagination'>
5050 ${[...Array(Math.ceil(relevantEntries.length / 20)).keys()].reduce((acc, num) => `${acc}<span class='${Number(hallway.finder.page) === num + 1 ? 'selected' : ''}' onclick='filter("${this.finder.filter}^${num + 1}")'>${num + 1}</span>`, '')}
51− </div>`
51+ </div>
52+ <a id='showbar' onclick="toggleVisibility('sidebar');"></a>`
5253
5354 this._sidebar.innerHTML = `
5455 <a id='hidebar' onclick="toggleVisibility('sidebar');"></a>