bitcoinaddress.js
function(qrContainer) {

        var elem = qrContainer.parents(".bitcoin-address-container");
        var url;
        //var addr = elem.attr("data-bc-address");

        if(this.config.qrRawAddress) {
            url = elem.attr("data-bc-address");
        } else {
            url = this.buildBitcoinURI(elem.attr("data-bc-address"),
            elem.attr("data-bc-amount"),
            elem.attr("data-bc-label"));
        }

        var options = $.extend({}, this.config.qr, {
            text: url
        });
        var qrCode = new qrcode.QRCode(qrContainer.get(0), options);
    }
function(qrContainer) {

        var elem = qrContainer.parents(".bitcoin-address-container");
        var url;
        //var addr = elem.attr("data-bc-address");

        if(this.config.qrRawAddress) {
            url = elem.attr("data-bc-address");
        } else {
            url = this.buildBitcoinURI(elem.attr("data-bc-address"),
            elem.attr("data-bc-amount"),
            elem.attr("data-bc-label"));
        }

        var options = $.extend({}, this.config.qr, {
            text: url
        });
        var qrCode = new qrcode.QRCode(qrContainer.get(0), options);
    }
function ( qrContainer ) { var elem = qrContainer . parents ( ".bitcoin-address-container" ) ; var url ; //var addr = elem.attr("data-bc-address"); if ( this . config . qrRawAddress ) { url = elem . attr ( "data-bc-address" ) ; } else { url = this . buildBitcoinURI ( elem . attr ( "data-bc-address" ) , elem . attr ( "data-bc-amount" ) , elem . attr ( "data-bc-label" ) ) ; } var options = $ . extend ( { } , this . config . qr , { text : url } ) ; var qrCode = new qrcode . QRCode ( qrContainer . get ( 0 ) , options ) ; }
Generates QR code inside the target element.
Generates QR code inside the target element .