is possible change saving size of generated code, i'm not sure limitation due api running this. code forum member gave me.
<html> <head> <title>testing qr code</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script type="text/javascript"> function generatebarcode() { var nric = $('#text').val(); var url = 'https://api.qrserver.com/v1/create-qr-code/?data=' + nric + '&size=50x50'; $('#barcode').attr('src', url); } </script> </head> <body> <input id="text" type="text" value="nric or work permit" style="width:20%" onblur='generatebarcode();' /> <img id='barcode' src="https://api.qrserver.com/v1/create-qr-code/?data=helloworld&size=200x200" alt="" title="hello" width="200" height="200" /> </body>
i want save @ 200pixel width , height giving me 50pixel
you need change size=50x50
on line 9 right size
Comments
Post a Comment