diff options
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,7 +1,7 @@ $(function(){ - $('div.d').click(function (e) { + $('div.d, div.f').click(function (e) { if (e.target !== this) return; $(this).toggleClass('hide'); e.preventDefault(); @@ -18,4 +18,15 @@ $(function(){ $('#internal').change(function(){ $('div.i').toggle(); }); + + $('span.name').click(function(e){ + if (e.target !== this) return; + + var $fn = $(this); + var name = $(this).text(); + $("span.name:contains('"+name+"')").closest('div.f').toggleClass('hide'); + + e.preventDefault(); + e.stopPropagation(); + }); });
\ No newline at end of file |