0.0.05 form poster

This commit is contained in:
SBD
2025-01-10 20:58:13 +03:00
parent 72f04e0d48
commit 0ac84ed6e0
11 changed files with 220 additions and 15 deletions

View File

@@ -7,8 +7,11 @@ function chooseRadioInput(el, callback){
$radios.forEach(radio => {
radio.classList.remove('checked')
})
el.classList.toggle("checked");
let checked_state = el.classList.contains("checked");
$parent = el.closest('.cw_w_radio_inputs_radio_input');
let $radio = $parent.querySelector('.radio');
$radio.classList.toggle("checked");
let checked_state = $radio.classList.contains("checked");
if (callback) callback(checked_state)
}