matthiasott, My son asked for a little web dev challenge, so I tasked him with filtering a list with a few selects.
First of all: he solved it! 🥳
But when I looked at the code, I noticed that he had used HTML data attributes and was accessing them in JS via the dataset property. When I asked him about it, he replied: “Yes, I read that in a post by @chriscoyier on CSS-Tricks.” 🤘😁
warnoir, #Myanmar (#Burma) 🇲🇲: "#Arakan Rohingya Salvation Army" (#ARSA) carried out an attack against "Arakan Army" (#AA) fighters in #Rakhine State.
ARSA also captured MA-3 Mk 2 rifle, Wa-81 rifles, M79-pattern grenade launcher, MA-5 Mk 2 pistol, MG-1 hand grenades, 40mm MG-4 HEDP grenades and MG-2 rifle grenades.
oatmeal, #GazaFamine / Gaza reports: Head of aid distribution organization killed in Gaza City
Reports coming from Gaza say the head of the emergency committee in charge of aid distribution and assistance was killed near an aid distribution site in Gaza City.
The official Amjad Hathat, is the fourth person linked to police or aid activity to be killed in Gaza over the last 48 hours.
Sources: Haaretz and #AA https://www.aa.com.tr/en/middle-east/palestinian-aid-official-killed-in-israeli-airstrike-in-gaza-city/3169523
faab64, @oatmeal
The bastards used the food delivery to identify and locate those who were helping with distribution of food so they can once again use the actions of desperate and starving Palestinians as an excuse to justify their inhumanity and barbarism.They kill doctors.
They kill reporters.
They kill civil servants.All in the name of self defense, but with only one goal, to starve and murder as many Palestinians as possible.
CAAP, French Pour tous des #AA #ArtistesAuteurices :
Connaitre la différence entre les modes de déclaration #fiscale #BNC et #TS
CAAP, French L’ADAGP prend des mesures pour protéger ses membres face à la menace des intelligences artificielles génératives
« L’ADAGP publie ce jour une déclaration générale d’opposition à l’utilisation des œuvres de son répertoire par les systèmes d’intelligence artificielle dans le cadre de l’exception de fouille de données, complétée d’un résumé technique au format xml lisible par les machines. »
CAAP, French
CAAP, French Les bonnes résolutions pour les #AA #artistes & #auteurices cette année : #syndiquez-vous !
apodoxus, Have you ever thought about how Alcoholics Anonymous #AA and Narcotics Anonymous #NA are probably the most successful* living #anarchist organizations? It's proof that the bottom-up decentralized confederated model works on a global scale.
If you're an anarchist and unfamiliar, I recommend checking out The Twelve Traditions (https://en.wikipedia.org/wiki/Twelve_Traditions).
#anarchism #socialism #recovery #politics
- Yes it's actually bigger than the population of #Rojava in case you were going to bring that up.
apodoxus, @KevinCarson1 Ah, that's a minority and nothing to do with the organization itself; very far from my experience.
apodoxus, @SocialistStan It was certainly partly an attempt at that but I would say it's very far from that today. Where I go, such behavior is hard banned at a more local level and wasn't very popular in California either.
CAAP, French La force du nombre !
CAAP, French Quels sont les cas d’exclusion du régime social des #AA ? - CAAP http://caap.asso.fr/spip.php?article1079
La Sécurité sociale des AA vous exclura du régime :• à la suite d’un contrôle ;
• Si, vous n’avez encaissé aucune recette artistique pendant 5 années consécutives ;
• Si vous n’avez pas déclaré vos recettes pendant 3 années consécutives ;
• Si vous déclarez avoir cessé votre activité d’ #ArtisteAuteurice.
CAAP, French Un bon résumé
AAGuy, I’m celebrating four years of sobriety today. My life isn’t perfect but my worst day sober is still way better than my best day drinking. #sober #sobriety #soberversary #AA
billyjoebowers, Congratulations. Hi five.
SoberStill,
mikemathia,
cdarwin, Fitch downgrades US credit rating from AAA to AA+ - BBC News
#Fitch, one of three major independent agencies that assess #creditworthiness, downgraded it from the top rating of AAA to #AA+.
Fitch said it had noted a "steady deterioration" in governance over the last 20 years.
Treasury Secretary Janet Yellen called the downgrade "arbitrary".
It was based on "outdated data" from the ( Trump ) period 2018 to 2020, she said.
br00t4c, AA: The good, the bad, and the sober
https://qz.com/emails/quartz-obsession/1851269507/aa-the-good-the-bad-and-the-sober
br00t4c, Quiz of the week: Who led the Vikings in Shetland's Up Helly Aa fire festival?
https://www.bbc.co.uk/news/world-68168938?at_medium=RSS&at_campaign=KARANGA
br00t4c, Fuel forecourt prices in 2023 second highest on record, says AA
https://www.theguardian.com/money/2023/dec/22/fuel-petrol-diesel-prices-2023-aa
br00t4c, Raw deal? Judge quotes Winnie-the-Pooh in UK honey-labelling ruling
br00t4c, 60th time lucky: learner driver breaks UK record for sitting theory test
br00t4c, Potholes: AA advises drivers to avoid puddles to limit vehicle damage
https://www.bbc.co.uk/news/uk-67540985?at_medium=RSS&at_campaign=KARANGA
oatmeal, #GazaFamine / Gaza reports: Head of aid distribution organization killed in Gaza City
Reports coming from Gaza say the head of the emergency committee in charge of aid distribution and assistance was killed near an aid distribution site in Gaza City.
The official Amjad Hathat, is the fourth person linked to police or aid activity to be killed in Gaza over the last 48 hours.
#AA https://www.aa.com.tr/en/middle-east/palestinian-aid-official-killed-in-israeli-airstrike-in-gaza-city/3169523
br00t4c, How AA Flight Attendants Scored A Huge Strike Vote
https://popularresistance.org/how-aa-flight-attendants-scored-a-huge-strike-vote/
blog, (edited ) I can't use my number pad for 2FA codes
https://shkspr.mobi/blog/2024/04/i-cant-use-my-number-pad-for-2fa-codes/This has to be the most infuriating bug report I've ever submitted.
I went to type in my 2FA code on a website - but no numbers appeared on screen. Obviously, I was an idiot and had forgotten to press the NumLock button. D'oh! I toggled it on and typed again. No numbers appeared. I switched to another tab, my numbers appeared when I typed them. So I was reasonably confident that my keyboard was working.
I swapped back to the 2FA entry and tried again. Still nothing. Then I tried typing the numbers using the number row on my keyboard. My 2FA code appeared.
WHAT IN THE SAINTED NAME OF ALPHONSE CHAPANIS IS GOING ON?!?!?
Developers often use JavaScript to "improve" the standard features of HTML. For example, using
<input type="number">
has some accessibility concerns and using https://css-tricks.com/everything-you-ever-wanted-to-know-about-inputmode/#aa-numeric is great for showing a number key board on mobile, but not much else.So a developer wants a reliable way to make sure a user can only type numbers. Fair enough.
There are two ways to do this - a right way and a wrong way - using https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.
One way is to listen for the character being sent from the keyboard - known as the
key
.The other is to listen for the - known as the
code
.A good demo of this is at keyjs.dev - play around with it to see what keyboard buttons your browser can detect.
When I press 7 on the top row of my keyboard, the key is 7 and the code is
Digit7
.But when I press 7 on my number pad, the key is 7 but the code is
Numpad7
.The JavaScript on the website was rejecting any key code which wasn't a "Digit"!
Perhaps I am a weirdo for insisting on both having and using my numpad? Perhaps developers need to test on something other than MacBooks? Perhaps JavaScript was a mistake and the Web would be better without it?
Either way, don't be like that website. Let users type in using whatever keys they like.
https://shkspr.mobi/blog/2024/04/i-cant-use-my-number-pad-for-2fa-codes/
br00t4c, UK potholes and road defects have led to surge in callouts
br00t4c, Trump claims he was never really gonna "lock her up"
https://nationalzero.com/2024/04/25/trump-claims-he-was-never-really-gonna-lock-her-up/