Difference between revisions of "Template:2016Demo bottom"

 
(9 intermediate revisions by the same user not shown)
Line 245: Line 245:
 
$(".click_open").click(function() {
 
$(".click_open").click(function() {
  
 +
//if the content is hidden, show it
 
if ( $('.click_content:visible').length == 0) {
 
if ( $('.click_content:visible').length == 0) {
$(".click_content").show();
+
$(".click_content").show();
 +
$(".click_icon").html("▶");
 +
$(".click_open").css("background-color", "#ffffff");
 
}
 
}
 
  
 
else {
 
else {
$(".click_content").hide();
+
$(".click_content").hide();
 +
$(".click_icon").html("▼");
 +
$(".click_open").css("background-color", "#f2f2f2");
 
}
 
}
  

Latest revision as of 17:40, 30 November 2015