diff --git a/wp-content/themes/hantico/assets/js/scripts.js b/wp-content/themes/hantico/assets/js/scripts.js index a348e4c..c49d34d 100644 --- a/wp-content/themes/hantico/assets/js/scripts.js +++ b/wp-content/themes/hantico/assets/js/scripts.js @@ -600,23 +600,6 @@ document.addEventListener('DOMContentLoaded', () => { }); - // Скролл длинного содержания статей - function initScrollableToc() { - const list = document.querySelector('.article-toc__list'); - if (!list) return; - function updateScrollableState() { - const isScrollable = list.scrollHeight > list.clientHeight; - list.classList.toggle('is-scrollable', isScrollable); - } - updateScrollableState(); - window.addEventListener('resize', updateScrollableState); - if (document.fonts) { - document.fonts.ready.then(updateScrollableState); - } - } - initScrollableToc(); - - // AJAX-фильтр статей function initArticlesFilter() { const filter = document.querySelector('.articles-filter'); diff --git a/wp-content/themes/hantico/single-article.php b/wp-content/themes/hantico/single-article.php index c7f6f7f..5d75153 100644 --- a/wp-content/themes/hantico/single-article.php +++ b/wp-content/themes/hantico/single-article.php @@ -134,7 +134,7 @@