| 101 | Search.output.appendChild(listItem); |
| 102 | }; |
| 103 | const _finishSearch = (resultCount) => { |
| 104 | Search.stopPulse(); |
| 105 | Search.title.innerText = _("Search Results"); |
| 106 | if (!resultCount) |
| 107 | Search.status.innerText = Documentation.gettext( |
| 108 | "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." |
| 109 | ); |
| 110 | else |
| 111 | Search.status.innerText = _( |
| 112 | `Search finished, found ${resultCount} page(s) matching the search query.` |
| 113 | ); |
| 114 | }; |
| 115 | const _displayNextItem = ( |
| 116 | results, |
| 117 | resultCount, |