Curieux (ou pas) :

En #javascript, une fenêtre parente peut donner le #focus à une fenêtre fille :

const child = window.open('child.html');
child.focus();

Par contre, si vous essayer de faire l'opération inverse depuis la fenêtre fille, ça ne marche pas 🤔

// Dans la fenêtre fille
window.opener.focus(); // Ne donne rien

Je ne sais pas si c'est le cas dans tous les navigateurs web.

Et on parle de deux pages (mère et fille) de même origine, donc pas de restriction de sécurité.

Question to #Symfony folks. How do you test your #Stimulus controllers with #AssetMapper? I really, really don't want to go WebPack route and install Node and half of the Internet just for testing. Any help is appreciated. #PHP #JavaScript

How to Use Queue With shift and push

FIFO. shift for dequeue. push for enqueue.

#javascript #queue #shift #howto

https://www.youtube.com/watch?v=nh93kO66gJc

How to Use Queue With shift and push #shift

YouTube
Ah, yes, the legendary "Version Control Future" that requires a dance with #JavaScript and cookie monsters just to read the intro. 🎪 Truly #groundbreaking stuff—who needs coherent vision when you can just reinstall your browser instead? 😂🔧
https://bramcohen.com/p/manyana #VersionControlFuture #CookieMonsters #Tech #Humor #HackerNews #ngated
Manyana

A Coherent Vision for the Future of Version Control

Bram’s Thoughts

Discover Dialog via HTMHell —
great stuff, but if the dialog element is native to the browser now, then why is Javascript required to open and close it? Fail.

https://www.htmhell.dev/adventcalendar/2025/9/

#dialog #webdev #html #webdevelopment #javascript #browsers

Discover Dialog - HTMHell

A collection of bad practices in HTML, copied from real websites.

Discover Dialog - HTMHell
🍪🔄 Ah, the zen-like wisdom of modern web design: "Convincing Is Not Persuading." Indeed, step one in #persuasion is apparently to make sure your audience can actually **see** the content, but hey, let's not rush into trivialities like enabling #JavaScript and cookies—those are optional, right? 🙃
https://blog.alaindichiappari.dev/p/convincing-is-not-persuading #webdesign #cookies #modernwisdom #userexperience #HackerNews #ngated
Convincing Is Not Persuading

Many engineers (me included) I met have a drawer full of proposals that never went anywhere.

Weekend Engineering

https://nemin.hu/perlin.html

I wrote a small #tutorial about generating Perlin-noise. The code uses #TypeScript but it doesn't really use any exclusive features.

Back when I was first learning about noise, I found that most tutorials delve deep into the math / science (which is excellent, just was a little overwhelming), which ultimately hindered me in understanding how the algorithm itself works.

So I'm hoping this might help those who similarly learn better from code.

#javascript #graphics

GrobPaint

GrobPaint is a lightweight cross-platform bitmap editor that sits somewhere between MS Paint and Paint.NET, offering layers, blend modes, selection tools, sprite-sheet helpers, and(...)

#apps #bitmap #crossplatform #graphics #imageeditor #javascript #paint #python

https://taoofmac.com/space/apps/grobpaint?utm_content=atom&utm_source=mastodon&utm_medium=social

×

https://nemin.hu/perlin.html

I wrote a small #tutorial about generating Perlin-noise. The code uses #TypeScript but it doesn't really use any exclusive features.

Back when I was first learning about noise, I found that most tutorials delve deep into the math / science (which is excellent, just was a little overwhelming), which ultimately hindered me in understanding how the algorithm itself works.

So I'm hoping this might help those who similarly learn better from code.

#javascript #graphics