mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
14 lines
485 B
JavaScript
14 lines
485 B
JavaScript
var menu = document.getElementById('menu');
|
|
menu.addEventListener('click', function() {
|
|
var nav = document.getElementById('rnav');
|
|
if (nav.style.height == 'auto') {
|
|
nav.style.height = '0';
|
|
}else{
|
|
nav.style.height = 'auto';
|
|
}
|
|
|
|
// they are same
|
|
// manv.style.height = 'auto';
|
|
// manv.setAttribute('style', 'height: auto !important');
|
|
// manv.style.setProperty( 'height',' auto', 'important');
|
|
}, false); |