Difference between revisions of "Template:2016Bottom"

(Debugged click_open so that you can have more than one on a page)
(Previous edit was incomplete. NOW click_open can handle more than one on a page.)
Line 202: Line 202:
  
 
if ( my_content.is(':visible')) {
 
if ( my_content.is(':visible')) {
$(".click_content").hide();
+
my_content.hide();
$(".click_icon").html("▼");
+
my_icon.html("▼");
$(".click_open").css("background-color", "#f2f2f2");
+
myself.css("background-color", "#f2f2f2");
 
}
 
}
  
 
else {
 
else {
$(".click_content").show();
+
my_content.show();
$(".click_icon").html("▶");
+
my_icon.html("▶");
$(".click_open").css("background-color", "#ffffff");
+
myself.css("background-color", "#ffffff");
 
}
 
}
 
});
 
});

Revision as of 16:04, 13 May 2016