comment traduire ce javascript en jquery ???
(function(){ let onglet = document.querySelectorAll('.nav li'); let aside = document.querySelector('#as1 aside'); for (var i = 0 ; i < onglet.length; i++) { onglet[i].addEventListener('click' , listener ) ; } for(element of onglet){ element.addEventListener('click' , listener ) ; } aside.addEventListener('mouseenter', histoire); aside.addEventListener('mouseleave', nohistoire); disappear(); function listener(event){ reset(); fontColor(event.target.id); var prefix = event.target.id.substring(0,2); let cible = prefix + '_div'; appear(cible); } function fontColor(e){ document.getElementById(e).classList.add('aclick'); //document.querySelector('#'+ event.target.id).classList.add('aclick'); } function disappear(){ let div_section = document.querySelectorAll('section'); console.log(div_section); for(let element of div_section){ console.log(element.parentNode); element.parentNode.style.display='none'; } } function appear(cible){ disappear(); document.getElementById(cible).style.display='block'; } function reset(){ let ok =false; for (var i = 0 ; i < onglet.length; i++) { ok =onglet[i].children[0].classList.contains('aclick'); if(ok){ onglet[i].children[0].classList.remove('aclick'); } } } function histoire(){ let his = document.createElement('p'); his.innerText='CicĂ©ron (en latin Marcus Tullius Cicero), nĂ© le 3 janvier 106 av. J.-C. Ă Arpinum en Italie et assassinĂ© le 7 dĂ©cembre 43 av. J.-C. (calendrier julien) Ă Formies, est un homme d\'Ătat romain, un avocat et un Ă©crivain latin.'; aside.append(his); } function nohistoire(){ let chapter= document.querySelector('#as1 aside p'); chapter.remove(); } })();