view 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 source

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')