1//Traduction for dropdownlist Gender 2document.addEventListener('DOMContentLoaded', function () { 3 const sexeCheckboxes = document.querySelectorAll('input[name="sexe"]'); 4 const labelField = document.querySelector('input[name="sexe_nl"]'); 5 6 7 if (sexeCheckboxes.length && labelField) { 8 sexeCheckboxes.forEach(function (checkbox) { 9 checkbox.addEventListener('change', function () { 10 if (this.checked) { 11 // Récupère le texte à lâintérieur du label 12 const spanLabel = this.closest('label')?.querySelector('.wpcf7-list-item-label'); 13 labelField.value = spanLabel ? spanLabel.textContent.trim() : this.value; 14 } 15 }); 16 }); 17 18 // Déclenche une mise à jour si un champ est déjà coché 19 const checked = Array.from(sexeCheckboxes).find(cb => cb.checked); 20 if (checked) { 21 checked.dispatchEvent(new Event('change')); 22 } 23 } 24}); 25
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.