From 9e2a1518cf823d2542d62442f61f33346b214311 Mon Sep 17 00:00:00 2001 From: Anastasiya Shamray Date: Fri, 26 May 2023 20:16:25 +0300 Subject: [PATCH] [#9] Update table of contents function --- assets/js/script.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index d377d56..b642fdf 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -130,13 +130,7 @@ // table of contents $('h3, h4, h5', '.content').each(function () { - $(this).append(' #'); - - $(this).hover(function(){ - $(this).find('a').addClass('active'); - }, function(){ - $(this).find('a').removeClass('active'); - }); + $(this).append('#'); });