diff --git a/script.js b/script.js index 3483117..c49cc82 100644 --- a/script.js +++ b/script.js @@ -10,7 +10,7 @@ $(animatedClass).on(animationend, function(event) { $(this).removeClass(animateName); }); -function toggleActive(newActiveTab) { +const toggleActive = (newActiveTab) => { $(".navbar-nav > li > a").removeClass("active"); $(`#${newActiveTab}`).addClass("active"); $(".hero-body").hide(); @@ -18,7 +18,7 @@ function toggleActive(newActiveTab) { $(`#hero-${newActiveTab}`).show(); } -function getHome() { +const getHome = () => { $("#hero-home").append( `