Ok accordeon javascript upon header lines

This commit is contained in:
JC 2016-11-23 16:17:29 +01:00
parent 37b5e3fc48
commit df794b9c89
3 changed files with 15 additions and 3 deletions

View file

@ -41,4 +41,4 @@ function on_change_type_de_champ_select (){
} }
}) })
} }

View file

@ -1,5 +1,16 @@
$(document).on('page:load', the_terms); $(document).on('page:load', the_terms);
$(document).ready(the_terms); $(document).ready(the_terms);
$(document).on('page:load', init_collapse);
$(document).ready(init_collapse);
function init_collapse() {
$('.title').click(function() {
var section = $(this).parents().closest(".show-block").children(".body");
return section.slideToggle(500, function () {});
});
}
function the_terms() { function the_terms() {
var the_terms = $("#dossier_autorisation_donnees"); var the_terms = $("#dossier_autorisation_donnees");
@ -41,4 +52,4 @@ function reset_form_siret(){
function toggle_etape_1(){ function toggle_etape_1(){
$('.row.etape.etape_1 .etapes_menu #logos').toggle(100); $('.row.etape.etape_1 .etapes_menu #logos').toggle(100);
$('.row.etape.etape_1 .etapes_informations #description_procedure').toggle(100); $('.row.etape.etape_1 .etapes_informations #description_procedure').toggle(100);
} }

View file

@ -28,7 +28,6 @@
margin: 12px 12px 0 15px; margin: 12px 12px 0 15px;
} }
.header { .header {
cursor: pointer;
background-color: #003C92; background-color: #003C92;
height: 40px; height: 40px;
color: #FFFFFF; color: #FFFFFF;
@ -42,6 +41,7 @@
.action { .action {
background-color: #E45B51; background-color: #E45B51;
text-align: center; text-align: center;
float: right;
} }
.count { .count {
font-size: 16px; font-size: 16px;
@ -51,6 +51,7 @@
.body { .body {
background-color: #FFFFFF; background-color: #FFFFFF;
height: 100px; height: 100px;
display: none;
} }
#message { #message {
} }