summaryrefslogtreecommitdiffstats
path: root/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'script.js')
-rw-r--r--script.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/script.js b/script.js
index c143477..f45ab90 100644
--- a/script.js
+++ b/script.js
@@ -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