view templates/default/_browser/__init__.py @ 13:b8bf3cd79a9a

tempalte: settings to use `bulma` theme as basis
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 11:58:07 +0200
parents dc880664a8ec
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')