Just spruced up 👩🦰 Superdeb's itch page!
🎮 👉 Play https://scott222.itch.io/superdeb
🖼️ 👇 Screenshot of new page
Just a bit of fun, wondered which of these people like best for checking if an array is empty in #php? There's (debatably :D) no right answer...
#1 is short
#2 and #3 are very readable
Leaning towards #2 myself!
Hopefully I typed the example code properly lol. xD
In the process of making my site as privacy friendly as possible:
✅ Started swapping YT embeds for an image which turns INTO the iframe ONLY if clicked
✅ Removed goat stats (which is considered privacy friendly anyway)
✅ Working on session_start() only when needed. So passive browsing = no cookies
On YouTube embeds, the overlay can get in the way of "important" visual elements.
This JS uses your own thumb, and as a bonus is responsive+more privacy-friendly - doesn't create the iframe unless visitor clicks!
Figure'd some of y'all might appreciate!
https://scott.itsasite.uk/website-building-tutorials/tryout/?docid=better-youtube-embeds
How many divs? If you thought 5 (banner, columns container, 2x columns, footer), you might be interested to learn it's possible with 4! Demo/code link below. Learnt this today, thought it was interesting xD. Also stacks on mobile - no JS!
https://scott.itsasite.uk/website-building-tutorials/tryout/?docid=flex-divs