mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-07-15 03:42:28 +00:00
lightbox: switch to CSS-only solution #451
This commit is contained in:
parent
a07e90be04
commit
f2bfdce1d9
13 changed files with 54 additions and 40 deletions
static/js
|
@ -757,7 +757,7 @@ function scrollToFragment() {
|
|||
function mark(){
|
||||
// mark some additonal stuff as searchable
|
||||
$('#topbar a:not(:has(img)):not(.btn)').addClass('highlight');
|
||||
$('#body-inner a:not(:has(img)):not(.btn):not(a[rel="footnote"])').addClass('highlight');
|
||||
$('#body-inner a:not(:has(img)):not(.btn):not(.lightbox):not(a[rel="footnote"])').addClass('highlight');
|
||||
|
||||
var value = sessionStorage.getItem(baseUriFull+'search-value');
|
||||
$(".highlightable").highlight(value, { element: 'mark' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue