livellosegreto.it is one of the many independent Mastodon servers you can use to participate in the fediverse.
Livello Segreto è il social etico che ha rispetto di te e del tuo tempo.

Administered by:

Server stats:

1.3K
active users

#webdev

202 posts143 participants21 posts today

Is there any way in HTML / JavaScript to configure the language of native form validation messages?

The browser (at least my Firefox) seems to display the labels in the preferred language that I configured in the settings, but on some website I might have configured another language at the website level (different from my Accept-Language header), and it looks super weird to have a webpage in French but form validation messages in English.

#webdev#html#js

Just created a simple #FastAPI project to showcase how #Python server-side rendered apps with an #htmx frontend could look like, using a React-like, async, type-checked rendering engine.

The app *does not* use Jinja/Chameleon, or any similar templating engine, ugly custom syntax in #HTML -like files, etc.

Interestingly, even #ai coding assistants can pick up the patterns and offer decent completions.

You can check out the project here: github.com/volfpeter/lipsum-ch

Boost appreciated #webdev #ssr

Technology demonstration for server-side rendering with Python, FastAPI, and htmx - volfpeter/lipsum-chat
GitHubGitHub - volfpeter/lipsum-chat: Technology demonstration for server-side rendering with Python, FastAPI, and htmxTechnology demonstration for server-side rendering with Python, FastAPI, and htmx - volfpeter/lipsum-chat

Flexy flex layout for any number n of items such that we have:

👉 at most 3 items on a row
👉 at least 2 items on a row IF we have at least 2 items in total

In only 5 (display, flex-wrap, gap, flex and flex-basis override) CSS declarations, working for any number n of items! 🎇

Because someone asked for this on reddit reddit.com/r/css/comments/1jay

Here is the @codepen demo codepen.io/thebabydino/pen/OPJ

#CSS#flexbox#layout