From f62719625acd9566a277e014bb0b79e4c369c62e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 16 Jan 2015 12:24:41 -0500 Subject: [PATCH] App.js updated --- js/app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 8f0d401..255fb40 100755 --- a/js/app.js +++ b/js/app.js @@ -16,4 +16,14 @@ e.breakpoint()&&(e.rtl?(g.css({right:"0%"}),a(">.name",g).css({right:"100%"})):( jQuery(this).attr("href",jQuery(this).children("img").attr("title")); }); }); - \ No newline at end of file + ;$(document).foundation(); +$(document).ready(function () { + $('ul.children').each(function () { + $(this).before(''); + }); + $('a.toggle').click('click', function () { + console.log('clicked me!'); + $(this).toggleClass('open'); + $(this).siblings('ul').toggleClass('open'); + }); +}); \ No newline at end of file -- 2.17.1