Difference between revisions of "Template:Northeastern Boston/Javascript"

 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
// Toggle hiding of children nav elements
 
// Toggle hiding of children nav elements
 
var sibling = $(this).siblings()[0];
 
var sibling = $(this).siblings()[0];
$(sibling).toggleClass('hidden');
+
$(sibling).toggleClass('hidden');
 +
 
 +
var arrow = $(this).find('.nav-container__arrow')[0];
 +
$(arrow).toggleClass('flip-vertical');
 +
});
 +
 
 +
$('.minimal-dropdown__arrow').on("click", function() {
 +
$(this).toggleClass('fa-flipped-arrow');
 +
$(this).parent().parent().find('.minimal-dropdown__content').toggleClass('hidden');
 
});
 
});
  
 
});
 
});
 +
 +
 
</script>
 
</script>
 
</html>
 
</html>

Latest revision as of 00:46, 18 September 2015