Coding in Cursive
useEffect(fetchDetailArticle()) let info = new URL(window.location.href); const data = await getNewsInfoById(info.pathname.split('/')[3]); setData(data); useEffect(() => { // Get the HTMLCollection that holds each picture currently const imgArrays = document .getElementsByClassName('article__content')[0] .getElementsByTagName('img'); // Loop over the collection elements for (const item of imgArrays) { imgArray.push(item.src); } // Create the button element let button = document.createElement('button'); button.classList.add('lightboxButton'); button .setAttribute('src', item.src); .setLightboxDisplay(true); } // Insert button before img in article item.parentNode.insertBefore(button, item); }, [data]);
A dark screenshot shows JavaScript code written in an ornate cursive font, making ordinary programming syntax look like handwritten calligraphy. The joke is that code becomes nearly impossible to read when presented in an overly decorative style, so it is useful as a reaction to confusing code or unreadable programming. EN: A dark screenshot shows JavaScript code written in an ornate cursive font, making ordinary programming syntax look like handwritten calligraphy. The joke is that code becomes nearly impossible to read when presented in an overly decorative style, so it is useful as a reaction to confusing code or unreadable programming.
- @ithueti / 5662 2022-02-07
- @gentoomemes / 194 2022-03-31
- Type
- image
- Size
- 760×800 · 100.2 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added