view sat_templates/templates/bulma/_browser/__init__.py @ 372:a603cf0fa5d1

bulma (call): add a button for screen sharing: - add a button for screen sharing, only on desktop - split `muted` state to `inactive` and `muted` where `muted` is only about the color - use the `inactive` state with an other color (in `screen-off` class) to indicate when screen is not shared rel 432
author Goffi <goffi@goffi.org>
date Mon, 14 Aug 2023 16:31:46 +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')