annotate templates/default/_browser/__init__.py @ 19:608cec27bfea

i18n: Translated using Weblate (French) Currently translated at 100.0% (148 of 148 strings) Translation: Libervia/Website Translate-URL: https://salut-a-toi.org/weblate/projects/libervia/website/fr/
author Goffi <tmp-weblate_goffi.org@goffi.org>
date Wed, 16 Jun 2021 18:17:17 +0000
parents dc880664a8ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
1 from browser import bind, document
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
2
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
3
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
4 @bind("#main_menu_burger", "click")
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
5 def burger_click(ev):
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
6 document["main_menu"].classList.toggle('is-active')
dc880664a8ec modernisation of the theme using Bulma
Goffi <goffi@goffi.org>
parents:
diff changeset
7 document["main_menu_burger"].classList.toggle('is-active')