This commit is contained in:
julliechaumard
2023-02-28 01:15:30 +01:00
parent e09ebe2d92
commit dd49ba357b
151 changed files with 17859 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
//// AFFICHER DANS LA CONSOLE LE FICHIER APPELÉ
//console.log("NOUS SOMMES DANS LE FICHIER :",__filename);
// Get the modal
var modal = document.getElementById("prelude");
// Get the button that opens the modal
var btn = document.getElementById("open_modal");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("prelude_close")[0];
// When the user clicks the button, open the modal
btn.onclick = function() {
console.log("modal = ",modal)
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}

View File

@@ -0,0 +1,148 @@
console.log("On est dans le fichier adhesion_prof.js (de PUBLIC)");
function prof_diplome() {
console.log("On est dans function prof_diplome");
console.log("check_prof_diplome");
// Get the checkbox
var check_prof_diplome = document.getElementById("check_prof_diplome");
// Get the output text
var prof_diplome = document.getElementById("prof_diplome");
console.log("check_prof_diplome", check_prof_diplome);
for (let cssClass of prof_diplome.classList) {
console.log("cssClass: ",cssClass);
};
// If the checkbox is checked, display the output text
if (check_prof_diplome.checked == true){
console.log("if (check_prof_diplome.checked == true)");
console.log("prof_diplome", prof_diplome);
prof_diplome.style.display = "block";
} else {
console.log("ELSE if (check_prof_diplome.checked == true)");
prof_diplome.style.display = "none";
}
}
function prof_formation() {
console.log("On est dans function prof_formation");
// Get the checkbox
var check_prof_formation = document.getElementById("check_prof_formation");
// Get the output text
var prof_formation = document.getElementById("prof_formation");
console.log("check_prof_formation", check_prof_formation);
for (let cssClass of prof_formation.classList) {
console.log("cssClass: ",cssClass);
};
// If the checkbox is checked, display the output text
if (check_prof_formation.checked == true){
console.log("if (check_prof_formation.checked == true)");
console.log("prof_formation", prof_formation);
prof_formation.style.display = "block";
} else {
console.log("ELSE if (check_prof_diplome.checked == true)");
prof_formation.style.display = "none";
}
}
function prof_eleve() {
console.log("On est dans function prof_eleve");
// Get the checkbox
var check_prof_eleve = document.getElementById("check_prof_eleve");
// Get the output text
var eleve = document.getElementById("eleve");
console.log("check_prof_eleve", check_prof_eleve);
for (let cssClass of eleve.classList) {
console.log("cssClass: ",cssClass);
};
// If the checkbox is checked, display the output text
if (check_prof_eleve.checked == true){
console.log("if (check_prof_eleve.checked == true)");
console.log("eleve", eleve);
eleve.style.display = "block";
} else {
console.log("ELSE if (check_prof_eleve.checked == true)");
eleve.style.display = "none";
}
}
function ajout_eleve2() {
console.log("On est dans function ajout_eleve2");
// Get the checkbox
var check_eleve2 = document.getElementById("check_eleve2");
// Get the output text
var eleve2 = document.getElementById("eleve2");
// If the checkbox is checked, display the output text
if (check_eleve2.checked == true){
eleve2.style.display = "block";
} else {
eleve2.style.display = "none";
}
}
function ajout_eleve3() {
console.log("On est dans function ajout_eleve3");
// Get the checkbox
var check_eleve3 = document.getElementById("check_eleve3");
// Get the output text
var eleve3 = document.getElementById("eleve3");
// If the checkbox is checked, display the output text
if (check_eleve3.checked == true){
eleve3.style.display = "block";
} else {
eleve3.style.display = "none";
}
}
function ajout_eleve4() {
// Get the checkbox
var check_eleve4 = document.getElementById("check_eleve4");
// Get the output text
var eleve4 = document.getElementById("eleve4");
// If the checkbox is checked, display the output text
if (check_eleve4.checked == true){
eleve4.style.display = "block";
} else {
eleve4.style.display = "none";
}
}
function ajout_eleve5() {
// Get the checkbox
var check_eleve5 = document.getElementById("check_eleve5");
// Get the output text
var eleve5 = document.getElementById("eleve5");
// If the checkbox is checked, display the output text
if (check_eleve5.checked == true){
eleve5.style.display = "block";
} else {
eleve5.style.display = "none";
}
}

View File

@@ -0,0 +1,73 @@
// test
// authetification banque
console.log("On est dans function choix_cb");
// Get the checkbox
var check_cb = document.getElementById("check_cb");
// Get the output text
var paiement_cb = document.getElementById("paiement_cb");
// Get the checkbox
var check_nocb = document.getElementById("check_nocb");
// Get the output text
var paiement_nocb = document.getElementById("paiement_nocb");
// Get the checkbox
var check_virement = document.getElementById("check_virement");
// Get the output text
var paiement_virement = document.getElementById("paiement_virement");
// Get the checkbox
var check_cheque = document.getElementById("check_cheque");
// Get the output text
var paiement_cheque = document.getElementById("paiement_cheque");
check_cb.onclick = function() {
console.log("check_cb.checked = ", check_cb.checked);
if (check_cb.checked == true){
console.log("check_cb.checked == true");
check_nocb.checked = false;
check_virement.checked = false;
check_cheque.checked = false;
paiement_cb.style.display = "block";
paiement_nocb.style.display = "none";
paiement_cheque.style.display = "none";
paiement_virement.style.display = "none";
} else {
console.log("check_cb.checked == true / ELSE");
paiement_cb.style.display = "none";
}
}
check_nocb.onclick = function() {
if (check_nocb.checked == true){
check_cb.checked = false;
paiement_nocb.style.display = "block";
paiement_cb.style.display = "none";
} else {
paiement_nocb.style.display = "none";
}
}
check_virement.onclick = function() {
if (check_virement.checked == true){
check_cheque.checked = false;
paiement_virement.style.display = "block";
paiement_cheque.style.display = "none";
} else {
paiement_virement.style.display = "none";
}
}
check_cheque.onclick = function() {
if (check_cheque.checked == true){
check_virement.checked = false;
paiement_cheque.style.display = "block";
paiement_virement.style.display = "none";
} else {
paiement_cheque.style.display = "none";
}
}

View File

@@ -0,0 +1,41 @@
// AFFICHER OU CACHER DES ÉLÉMENTS
var savoirplus_button = document.getElementById("savoirplus_button");
// si savoirplus_button est bien présent dans la page
if (savoirplus_button) {
savoirplus_button.onclick = function() {
savoirplus_content = document.getElementById("savoirplus_content");
savoirplus_content.classList.remove('hidden');
}
}
// si ajout_ecole2 est bien présent dans la page
var ajout_ecole2 = document.getElementById("ajout_ecole2");
if (ajout_ecole2) {
ajout_ecole2.onclick = function() {
ajout_ecole2_content = document.getElementById("ajout_ecole2_content");
ajout_ecole2_content.classList.remove('hidden');
}
}
// si ajout_ecole3 est bien présent dans la page
var ajout_ecole3 = document.getElementById("ajout_ecole3");
if (ajout_ecole3) {
ajout_ecole3.onclick = function() {
ajout_ecole3_content = document.getElementById("ajout_ecole3_content");
ajout_ecole3_content.classList.remove('hidden');
}
}
// BOUTON TOGGLE FORMULAIRE D'INSCRIPTION STAGE
var savoirplus_heberg_toggle = document.getElementById("savoirplus_heberg_toggle");
if (savoirplus_heberg_toggle) {
savoirplus_heberg_toggle.onclick = function() {
savoirplus_heberg_content = document.getElementById("savoirplus_heberg_content");
savoirplus_heberg_content.classList.remove('hidden');
}
}

File diff suppressed because it is too large Load Diff