Mat “Wilto” Marquis on Nostr: > ... it wasn't unheard of for some oh-so-clever young dork with `$` in his eyes to ...
> ... it wasn't unheard of for some oh-so-clever young dork with `$` in his eyes to write `$el[ ( $el.hasClass( "open" ) ? "remove" : "add" ) + "Class" ]( "open" );` to access either the `addClass` or `removeClass` methods of a jQuery-wrapped element, depending.
what a time to have been alive
Published at
2025-07-24 18:04:48 UTCEvent JSON
{
"id": "02084dad190eaea858dfabe9eadc1ff553b86f5a941c6c56a10833b8c795706b",
"pubkey": "9bac75fd5b3722cf8f6944383a84f506de5bc399434945cabcd06248dda8e16c",
"created_at": 1753380288,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/@Wilto/114909530607074433",
"web"
],
[
"proxy",
"https://front-end.social/users/Wilto/statuses/114909530607074433",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://front-end.social/users/Wilto/statuses/114909530607074433",
"pink.momostr"
],
[
"-"
]
],
"content": "\u003e ... it wasn't unheard of for some oh-so-clever young dork with `$` in his eyes to write `$el[ ( $el.hasClass( \"open\" ) ? \"remove\" : \"add\" ) + \"Class\" ]( \"open\" );` to access either the `addClass` or `removeClass` methods of a jQuery-wrapped element, depending.\n\nwhat a time to have been alive",
"sig": "ab13442d6e8d419a6f642b7afb789e95fc134b5bfc4de9771eb6f9c2cc5cf4163ceb115e0cb80d0f8633b32fcf00791d0e3d168ddbf88646657c2cf81c3a34f4"
}