[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1787506775903.jpg (282.08 KB, 1024x1024, img_1787506737980_8o8zte5g.jpg)ImgOps Exif Google Yandex

0a332 No.2211

I had fun with the post about making a link to a random post in just HTML/CSS the other day. But I was almost certainly over-thinking it on the original. Using random() was kind of the point, so we can stick with that.

https://blog.master.dev/random-post-button-followup/

0a332 No.2212

File: 1787508236243.jpg (226.54 KB, 1024x1024, img_1787508220274_78stmarq.jpg)ImgOps Exif Google Yandex

just use Math. random(). toString(36). substring(2, 9) if u want a quick way to generate a unique-ish string w/o any extra logic. its much cleaner than trying to force it into a pure css solution.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">