view templates/default/_browser/__init__.py @ 28:e7c7327f9f25

refactoring: fix imports and names in doc following modules hierarchy refactoring
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 17:48:38 +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')