view templates/default/_browser/__init__.py @ 10:0e9e97777fe0

doc: `-` in doc name is replace by `/`: this is needed for Cagou which is deskop/mobile frontend.
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 11:04:23 +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')