Mercurial > libervia-web
view libervia/web/pages/_browser/tools.py @ 1624:fd421f1be8f5 default tip
browser (blog): blog redesign first draft:
Redesign the blog in the same spirit as the chat, with a left panel to search/open new
blogs, so there is no "selection" page anymore.
Reactions are now managed.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 21 May 2025 15:58:56 +0200 |
parents | 3a60bf3762ef |
children |
line wrap: on
line source
"""Common useful tools""" from browser import window def is_touch_device(): return hasattr(window, 'ontouchstart') def remove_ids(element): """Recursively remove "id" attribute of element and all its descendants.""" element.removeAttribute('id') for child in element.children: remove_ids(child)