mrsudarshanrai / QR-code-generator

This is a simple web code to generate QR code,powered by chart.apis.google
https://mrsudarshanrai.github.io/QR-code-generator/
MIT License
8 stars 8 forks source link

Final loader & QR error solved app.js #21

Open ayansiddiqui007 opened 1 year ago

ayansiddiqui007 commented 1 year ago

In the provided JavaScript file, the issue seems to be with the Google Chart API not supporting large dimensions for QR codes. When the dimension value exceeds a certain limit, the QR code does not generate as expected. To resolve this issue, we can switch to a different QR code generation library that supports larger dimensions. One of the popular libraries for generating QR codes is qrcode.js. Below is the updated JavaScript file (app.js) using the qrcode.js library

Based on the provided files, an additional improvement can be made to enhance the user experience by adding a loading indicator while the QR code is being generated. To achieve this, you can add a simple loading spinner to indicate that the QR code is being processed. Here is the updated code to include the loading indicator:

14