lib/antelope/generator/templates/html/antelope.js in antelope-0.3.2 vs lib/antelope/generator/templates/html/antelope.js in antelope-0.4.0
- old
+ new
@@ -1,8 +1,16 @@
-js.ant
\ No newline at end of file
+$(function() {
+ $(".section").each(function(i, element) {
+ var $element = $(element);
+
+ $(element).children("h2, h3, h4, h5, h6").on("click", function() {
+ $(element).children(".section-data").toggleClass("display");
+ });
+ });
+});