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

Line 1: Line 1:
 
<html>
 
<html>
 
<script>
 
<script>
$('.tab-container').click(function() {
+
$(document).ready(function() {
$(this).toggleClass('tab-show');
+
$('.tab-container').on("click", function() {
$(this).toggleClass('tab-hide');
+
$(this).toggleClass('tab-show');
 +
$(this).toggleClass('tab-hide');
  
var arrow = $(this).find('.tab-container__arrow')[0];
+
var arrow = $(this).find('.tab-container__arrow')[0];
$(arrow).toggleClass('flip-vertical');
+
$(arrow).toggleClass('flip-vertical');
});
+
});
  
 +
});
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 04:27, 30 August 2015