scroll on expanding actionfooter for js use

merge-requests/208/head
fatchan 5 years ago
parent 2c81037cb3
commit c53d760350
  1. 7
      gulp/res/js/expand.js

@ -3,6 +3,13 @@ setDefaultLocalStorage('volume', 100);
window.addEventListener('DOMContentLoaded', (event) => {
const actionFooter = document.querySelector('summary.toggle-summary');
if (actionFooter) {
actionFooter.onclick = () => {
actionFooter.scrollIntoView();
}
}
const isCatalog = window.location.pathname.endsWith('catalog.html');
if (!isCatalog) {

Loading…
Cancel
Save