From b548fbf7eb6bfc0ac3d0354ce299e29cddc0fd6e Mon Sep 17 00:00:00 2001 From: Neil Chauhan <31568159+neilchauhan2@users.noreply.github.com> Date: Sat, 5 Oct 2019 17:40:56 +0530 Subject: [PATCH] Update script.js --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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( `