You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
781 B
25 lines
781 B
$(document).ready(function(){
|
|
$(".div-collapse").click(function () {
|
|
//open up the content needed - toggle the slide- if visible, slide up, if not slidedown.
|
|
$(".caixa-collapse").slideToggle(2, function () {
|
|
//execute this after slideToggle is done
|
|
//change text of header based on visibility of content div
|
|
|
|
|
|
});
|
|
|
|
if ($("#img_click").attr("src") == "../../theme/ilb/pix/smarts/bg_saiba_mais_header2_curso.png") {
|
|
$('#img_click').attr('src','../../theme/ilb/pix/smarts/bg_saiba_mais_fechado2.png');
|
|
}
|
|
else{
|
|
$('#img_click').attr('src','../../theme/ilb/pix/smarts/bg_saiba_mais_header2_curso.png');
|
|
$(".caixa-collapse").css("margin-top", "0");
|
|
|
|
}
|
|
|
|
$header = $(this);
|
|
//getting the next element
|
|
|
|
|
|
});
|
|
});
|