mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
theme: don't use jquery in new code
This commit is contained in:
parent
9732cc9aa9
commit
5f76f6ce27
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ function initSwipeHandler(){
|
||||||
else if( diffx > 30 ){
|
else if( diffx > 30 ){
|
||||||
startx = null;
|
startx = null;
|
||||||
starty = null;
|
starty = null;
|
||||||
jQuery(document.body).toggleClass('sidebar-flyout');
|
document.querySelector( 'body' ).classList.toggle( 'sidebar-flyout' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue