Difference between revisions of "Template:Northeastern Boston/Javascript"
Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | <script> | ||
− | $('.tab-container'). | + | $(document).ready(function() { |
− | + | $('.tab-container').on("click", function() { | |
− | + | $(this).toggleClass('tab-show'); | |
+ | $(this).toggleClass('tab-hide'); | ||
− | + | var arrow = $(this).find('.tab-container__arrow')[0]; | |
− | + | $(arrow).toggleClass('flip-vertical'); | |
− | }); | + | }); |
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 04:27, 30 August 2015