six-two / qr.html

A standalone offline HTML5 QR code generator
https://qr.15c.me
The Unlicense
108 stars 34 forks source link

Update qr.html #3

Closed d3xbot closed 1 year ago

d3xbot commented 1 year ago

Updated comments for ERROR CORRECTION LEVELs to show the MAX TEXT LENGTHs available.

Source: https://stackoverflow.com/a/11065449

six-two commented 1 year ago

Thanks for the numbers.

I guess I missed a couple bytes with the old maximum length 😅. The rounding down to 2950 was/is not intentional, so I will merge this and then update to the actual maximums. Tested all the numbers from the Stack Overflow table and they seem to be correct

d3xbot commented 1 year ago

Awesome! Glad that worked. I wasn't sure if the multiple of 10 max character number was a stylistic thing or byproduct of how the app parses text, so I figured I'd found to match.

six-two commented 1 year ago

Thanks to the numbers it is also really easy to automatically determine the maximum length. So changing the correction level is now easier than ever, since you do not need to manually modify the second variable anymore. 😁