Skriverier då och då, på webben sedan 1994.
Posted 2022-05-16 22:11. Tagged web, meta, javascript, css, r4s.
I’ve had a light and a dark theme on this site since I switch from python
to rust.
But until now I have only used css @media selection to enable the
dark theme, so it hasn’t been very discoverable.
If you have a browser that supports the prefers-color-scheme query and
you have found that setting and enabled dark mode, you have seen this site
in the dark theme (and may not know that it had a light theme), otherwise you have
seen the site in the light theme (and not known about the dark).
Read whole Light or dark?
.
Posted 2019-07-26 19:12. Tagged rust, fractal, wasm, demo, javascript.
I like to write programs to render fractals, and especially Julia set
fractals.
I also like the Rust programming language.
Among other advantages it happens to be great for compiling to wasm,
the new format for executing code in a web browser.
And I like to code stuff for the webb.
So how come I haven’t written a wasm Julia renderer in Rust yet?
Well, now I have.
WebAssembly seems to be all the rage currently.
While I certainly wouldn’t mind replacing all javascript code with
rust, that seems impractical for things
running in the browser, as everything about the DOM and event handling
still have to go through javascript bindings.
As it is a good thing to keep javascript minimal for progressive
enhancement, that makes the code contain very little more than event
bindings anyway.
Read whole Julia fractals in Rust wasm
with 2 comments.
Posted 2012-01-13 20:50. Tagged meta, javascript, css, html5, jquery, kratsbox, lightbox.
I have written a new jQuery plugin.
It is a lightbox with focus on simplicity and usability.
I call it kratsbox, and it’s availiable on
github.
Instructions for use are in the readme at the github page.
Read whole A simple and usable lightbox
with 1 comments.