1744760
results for "*"
-
wouldn’t it sound weird when read out loud by narrators
thatoddshade
at
2026-07-03 17:59
-
I meant like
thatoddshade
at
2026-07-03 17:59
-
No, links around images are valid
gRegor
at
2026-07-03 17:59
-
but wouldn’t the link mess with semantics
thatoddshade
at
2026-07-03 17:58
-
oh ok
thatoddshade
at
2026-07-03 17:58
-
wrapping it in a link means they can always click and see the full size
gRegor
at
2026-07-03 17:58
-
non-js people would only see the thumbnail is what I meant
gRegor
at
2026-07-03 17:58
-
I think it’s fine to implement a feature like that exclusively in JavaScript, as that fits into the purpose of JS—behaviour, interaction…—and JS-less browsers can still allow the user to access the image
thatoddshade
at
2026-07-03 17:57
-
gRegor: > You could write some JS to handle something on click of an img element, but the `a href` will be the most accessible. Personally I'd only suggest JS as a progressive enhancement, like that lightbox
thatoddshade
at
2026-07-03 17:57
-
Speaking of JS, TIL https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget I haven't done a lot with event listeners and ran into an issue where event.target was actually a child element, depending where you clicked. currentTarget should always return the element the listener is bound to. Neat
gRegor
at
2026-07-03 17:53
Sort by:
Filter results by:
Tag
Query took 0.09s.
Search tips
- Exclusion
- +foo -bar
- Logical OR
- foo OR bar
- Exact phrase
- "foo bar"
- Partial words
- foo*
- Particular fields only
- title:foo
- domain:example.org
- nick:somebody
- after:2016-11-23
- before:2016-11-23
- date:2016-11-23