mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-07-03 22:20:30 +00:00
images: allow option to apply image effects globally #623
This commit is contained in:
parent
fb22b500d0
commit
151c31e142
13 changed files with 140 additions and 38 deletions
static/js
|
@ -987,7 +987,7 @@ function initSwipeHandler(){
|
|||
}
|
||||
|
||||
function initImage(){
|
||||
document.querySelectorAll( '.lightbox' ).forEach( function(e){ e.addEventListener("keydown", imageEscapeHandler); }, false);
|
||||
document.querySelectorAll( '.lightbox-back' ).forEach( function(e){ e.addEventListener("keydown", imageEscapeHandler); }, false);
|
||||
}
|
||||
|
||||
function clearHistory() {
|
||||
|
@ -1098,7 +1098,7 @@ function mark() {
|
|||
topbarLinks[i].classList.add( 'highlight' );
|
||||
}
|
||||
|
||||
var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox)' );
|
||||
var bodyInnerLinks = document.querySelectorAll( '#body-inner a:not(.lightbox-link):not(.btn):not(.lightbox-back)' );
|
||||
for( var i = 0; i < bodyInnerLinks.length; i++ ){
|
||||
bodyInnerLinks[i].classList.add( 'highlight' );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue