Mercurial > libervia-website
diff templates/default/_browser/__init__.py @ 8:dc880664a8ec
modernisation of the theme using Bulma
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Apr 2021 18:51:12 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/default/_browser/__init__.py Fri Apr 16 18:51:12 2021 +0200 @@ -0,0 +1,7 @@ +from browser import bind, document + + +@bind("#main_menu_burger", "click") +def burger_click(ev): + document["main_menu"].classList.toggle('is-active') + document["main_menu_burger"].classList.toggle('is-active')