Difference between revisions of "Template:Main2019"

Line 1,187: Line 1,187:
 
if ($("#HQ_info").length){
 
if ($("#HQ_info").length){
 
hide_HQ_info();
 
hide_HQ_info();
}
 
 
//if image_slider exists, activate the automatic rotation slider and functionality
 
if ($("#image_carrousel").length){
 
image_slider_rotation();
 
 
}
 
}
  
Line 1,199: Line 1,194:
 
});
 
});
  
 
$(".collapsible_accordion_access").click(function(){
 
$(this).toggleClass("displaying_content");
 
$(this).parent().next().toggleClass("hide_content");
 
});
 
  
 
if( $(".igem_mobile_menu_bar").is(":visible") ){
 
if( $(".igem_mobile_menu_bar").is(":visible") ){
Line 1,210: Line 1,200:
 
});
 
});
 
}
 
}
 +
 +
 +
//expand collapse functionality
 +
$(".collapsible_accordion_access").click(function(){
 +
$(this).toggleClass("displaying_content");
 +
$(this).parent().next().toggleClass("hide_content");
 +
});
 +
 +
//read more functionality
 +
$(".read_more").click(function(){
 +
$(this).toggleClass("show_less");
 +
$(this).prev(".read_more_text").fadeToggle(400);
 +
});
 +
 +
//if image_slider exists, activate the automatic rotation slider and functionality
 +
if ($("#image_carrousel").length){
 +
image_slider_rotation();
 +
}
 +
  
  

Revision as of 19:24, 21 March 2019

Loading...