1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
svg{
visibility: hidden;
}
</style>
</head>
<body>
<fieldset class="question">
<legend class="premiere">
A quoi sert la fonction va_arg ?
</legend>
<div class="choix">
<svg fill="red" height="15px" width="15px" version="1.1" id="faux" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 208.891 208.891" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M0,170l65.555-65.555L0,38.891L38.891,0l65.555,65.555L170,0l38.891,38.891l-65.555,65.555L208.891,170L170,208.891 l-65.555-65.555l-65.555,65.555L0,170z"></path> </g></svg>
<input type="radio" id="first" name="champ"/>
<label for="first"> A valoriser un argument passé en parametre du main.</label>
</div>
<div class="choix">
<svg fill="green" height="15px" width="15px" version="1.1" id="vrai" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 236.988 236.988" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <polygon points="198.098,24.326 87.543,134.881 38.891,86.229 0,125.121 87.543,212.662 236.988,63.217 "></polygon> </g></svg>
<input type="radio" id="first2" name="champ"/>
<label for="first2"> A récuperer la la valeur d'un parametre sur une fonction a nombre variable de parametres.</label>
</div>
</fieldset>
<script>
const first=document.querySelector('#first');
const first2=document.querySelector('#first2');
const faux=document.querySelector('#faux');
const vrai=document.querySelector('#vrai');
first.addEventListener('click',()=> {
faux.style.visibility="visible";
document.querySelector('label[for="first"]').style.color="red";
});
</script>
</body>
</html> |
Partager