I've been fighting with some code snippets to handle ad-hoc switching of a page's color scheme (light/dark) via a toggle button.
The behavior that I wanted is to default to the system preferred color scheme if no value is present in the site's local storage.
When the button is clicked, it stores the preference in local storage and that takes precendence over the system preferred color scheme. Thus, this allows you to continue to browse the site based on the selected color scheme.
The problem I ran into was that the state between the system preferred color scheme and the "default" would conflict and using the toggle button would sort of re-sync things. Well, at least until you reload the page and it breaks again.
The issue? The code snippet does not fetch the value set in local storage and sets the color scheme on init.
I wonder how the media now feels after ripping Princess Kate about her photos for the last couple days? They should feel pretty ashamed right now if they had any humanity at all.
Now some poor dope posted on ND that he got arrested for pointing a pet laser at the dumb cop airplanes that so often fly low over us at all hours, all day long except for fuel refills.
I keep wondering when they’ll come by to ask about a middle finger or two being up while I’m doing other shit outside when they fly over, saving the city from cattle rustlers or drunks in balloon chairs or whatever stupid line they’re giving to intrude and annoy.🖕😇🖕
"Moon Armor Index" - Typical fun/useless question from @XKCD comic: How deep would it be if you scattered moons on the surface of their planet? In the biggest cases, they'd return where they originated from a huge impact. https://xkcd.com/2908/#Moon#astronomy#geology#WTF
Die Verantwortlichen in #Oberhausen & #Innsbruck müssen richtig stolz sein: Auch DANK #Eventim 🤬 veranstaltet einer der perfidesten #Covid19 Schwurbler in ihren Städten sein blaubraunes Volksfest für Impfgegner, Querdenker, Bhakdisten & VerschwörungsErotiker.
#WTF ℹ️ Nur #Wendler Posts der letzten Monate 🥶👀👇 1/2
Beim Weg in die Arbeit allerdings diese Glanzleistung entdeckt.
Es wurde ein Hydrant in der Mitte des Radweges eingebaut. #wtf
Sollte sowas nicht erst gemacht werden, wenn der Radverkehr bereits auf seine zukünftige Route umgeleitet wurde und dies sich unter den Radfahrys etabliert hat?
The commonality of this thinking, that a #ChocolateFountain “…would rewrite the ‘must-see’ list for every visitor…”, with the Goverment’s proposed #Stadium is glaringly obvious.
Sur la même chaîne qui possède également des tutos très bon de crochet par ailleurs, j'ai vu aussi un étui en filet comme ça pour un très long bâton de bois, du genre le rouleau à pâtisserie pour les pâtes italiennes, 2x50cm. Et là aussi l'étui est fermé avec un anneau de transport.
Je viens de voir la vidéo de feldup sur les crypto kinks notamment sur les pieds dans les vidéos de five minutes craft, mais là je vois pas xD #crochet#tutoriel#YouTube#WTF#ampoule#kink
When an #EU user installs a third-party app store with #iOS 17.4 and travel outside the EU "for a longer period of time", that app store will stop working.
So they will stop getting updates. From the oh-we're-so-secure phone company. Seriously #WTF Apple.
It’s quiet something that it’s 2024 and I want to demonstrate making a basic counter web app accessible but I can’t do it on my state of the art Linux machine running today’s Fedora Silverblue because Fedora (and any other Linux distribution that ships with Wayland by default) doesn’t have a functional screen reader and, having just tried it on macOS, I see that VoiceOver reads negative values in text nodes as positive values.