From 0807f6907218ff20cb1f620107473c91ca78865c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 May 2024 22:48:21 -0300 Subject: client, css: highlight current search result --- src/static/js/client.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/static/js/client.js') diff --git a/src/static/js/client.js b/src/static/js/client.js index 124c8414..1b70af0f 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -4342,6 +4342,7 @@ function generateSidebarSearchResultTemplate(slots) { const here = location.href.replace(/\/$/, ''); const there = link.href.replace(/\/$/, ''); if (here === there) { + link.classList.add('current-result'); accentSpan = document.createElement('span'); accentSpan.classList.add('wiki-search-current-result-text'); accentSpan.appendChild(templateContent(info.currentResultString)); -- cgit 1.3.0-6-gf8a5