File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 101101 < a class ="navbar-item has-text-weight-semibold " href ="#top ">
102102 Shodan2DB
103103 </ a >
104- < div class ="navbar-burger burger " data-target ="navMenu " onclick =" document.getElementById('navMenu').classList.toggle('is-active'); ">
104+ < button class ="navbar-burger burger " type =" button " data-target ="navMenu " aria-label =" Ouvrir le menu " aria-expanded =" false ">
105105 < span > </ span >
106106 < span > </ span >
107107 < span > </ span >
108- </ div >
108+ </ button >
109109 </ div >
110110 < div id ="navMenu " class ="navbar-menu ">
111111 < div class ="navbar-start ">
492492 const targetId = el . dataset . target ;
493493 const targetMenu = document . getElementById ( targetId ) ;
494494 if ( targetMenu ) {
495- el . classList . toggle ( 'is-active' ) ;
496- targetMenu . classList . toggle ( 'is-active' ) ;
495+ const isActive = el . classList . toggle ( 'is-active' ) ;
496+ targetMenu . classList . toggle ( 'is-active' , isActive ) ;
497+ el . setAttribute ( 'aria-expanded' , String ( isActive ) ) ;
497498 }
498499 } ) ;
499500 } ) ;
You can’t perform that action at this time.
0 commit comments