01 September 2018

Bitcoin QR Code | Javascript

Bitcoin QR Code
JS 2018
$(document).ready(function() {
    var qrcode = new QRCode("qrcode"); //id= qrcode

    function makeCode() {
        var address = "1MX9C2CsuobgGHRtn7WMuZ2CX82fDKMe4n";
        var amount = 0.5;
        var elText = "bitcoin:" + address + "?amount=" + amount;
        qrcode.makeCode(elText);
    }

    makeCode();
})
<!-- import qrcode -->
<script src="http://davidshimjs.github.io/qrcodejs/qrcode.min.js"></script>
<!-- Display -->
<div id="qrcode"></div>

0 nhận xét:

Post a Comment

 

BACK TO TOP

Xuống cuối trang