1
0
mirror of https://github.com/actix/actix-website synced 2025-07-01 17:15:08 +02:00

update cobalt v0.11.1

This commit is contained in:
krircc
2018-01-13 13:44:38 +08:00
parent d4ec642600
commit 157da7ade7
31 changed files with 1106 additions and 62 deletions

14
_site/public/js/nav.js Normal file
View 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);