view sat_templates/templates/bulma/_browser/__init__.py @ 393:772e73148132

browser (meta): fix the version of Bulma: Bulma version is fixed to 0.9.4 as we are not yet compatible with the new 1.0 version.
author Goffi <goffi@goffi.org>
date Sat, 06 Apr 2024 13:07:26 +0200
parents 0e69b5843c2f
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')