A Web App generating QR Code for texts and URL
Frontend , API
HTML, CSS, Javascript, JSON, API
- User has to input text or URL in the Input box
- Clicking the button "Generate QR" generates the QR Code
- The QR image is fetched from
QR code API
url ->https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Example
- The QR code is generated for the value passed for the
data
property in the url - To remove the QR code generated, either
Refresh
the browser orremove
the text from Input box
- If entered text = 0 or "" : QR is not generated and
QR not fetched
displays on the button - If the API sends unwanted response , then also
QR not fetched
displays on the button
CSS Flexbox, Transition, Fetch API, Promise, then() method, DOM manipulation, DOM style manipulation with JS
height
and width
attributes can be over-ridden by new class attached to the same element
- QR Code downloading feature
- QR Code Screenshot and scanning feature