mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02:00
make mobile Responsive right
This commit is contained in:
14
public/js/nav.js
Normal file
14
public/js/nav.js
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
Reference in New Issue
Block a user