From 336fabf740cc1b02bf3e47e43b6dac8301175f57 Mon Sep 17 00:00:00 2001 From: Orlando Echevarria Date: Tue, 2 Apr 2024 14:45:45 -0400 Subject: [PATCH] Delete grandchild-scripts.js --- grandchild-scripts.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 grandchild-scripts.js diff --git a/grandchild-scripts.js b/grandchild-scripts.js deleted file mode 100644 index 0bc88b5..0000000 --- a/grandchild-scripts.js +++ /dev/null @@ -1,30 +0,0 @@ -jQuery.noConflict()(function ($) { // this was missing for me - $(document).ready(function() { - function close_accordion_section() { - $('.accordion .accordion-section-title').removeClass('active'); - $('.accordion .accordion-section-content').slideUp(300).removeClass('open'); - } - - $('.accordion-section-title').click(function(e) { - // Grab current anchor value - var currentAttrValue = $(this).attr('href'); - - if($(e.target).is('.active')) { - close_accordion_section(); - } - else if ($(e.target).is('.active img')) { - close_accordion_section(); - } - else { - close_accordion_section(); - - // Add active class to section title - $(this).addClass('active'); - // Open up the hidden content panel - $('.accordion ' + currentAttrValue).slideDown(300).addClass('open'); - } - - e.preventDefault(); - }); - }); -}); \ No newline at end of file