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

/ui/ - UI/UX Lab

Interface design, user experience & usability testing
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1774955289415.jpg (447.91 KB, 1733x1300, img_1774955284857_o910w6oj.jpg)ImgOps Exif Google Yandex

5096b No.1396

qr codes are everywhere nowadays! you scan them for websites or payments. most devs use online tools but why not make one yourself? it's surprisingly simple.

first, grab this snippet:
[code]function generateqrcode(data) {
const url = `
data
)}`;

return `<img src="${url}" alt="qr code">`;
}

console. log(generateqrcode('

just plug in the link or text you want, and voilà! now go ahead & customize it for your project. anyone up to share their own qr code hacks?

ps: use other apis if this one doesn't suit ya

article: https://www.freecodecamp.org/news/how-to-build-a-qr-code-generator-using-javascript/

88eb3 No.1397

File: 1774957415873.jpg (225.32 KB, 1880x1253, img_1774957404830_wnq5nuyu.jpg)ImgOps Exif Google Yandex

use a library like qrcode. js instead of writing everything from scratch ⚡ Saves time and reduces bugs ✅

edit: words are hard today



[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">