diff --git a/src/main.css b/src/main.css index 0b66530..14b977e 100644 --- a/src/main.css +++ b/src/main.css @@ -121,7 +121,10 @@ body { font-family: Arial; background-image: url('images/diamonds.png'); } .banner { font-size: 46px; text-shadow: 1px 1px 3px #000; color: #FF9547; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); text-align: left; } -#donatearea { text-align: left; padding: 15px; } +#donateqrcode { padding: 8px; position: absolute; left: 550px; margin: 25px; border: black solid 1px; } +#donatelist { padding: 20px; } + +#donatearea { text-align: left; padding: 15px 15px 120px 15px; position: relative; } #donatearea .address { font-family: 'Courier New', Courier, monospace; } /* IE8 */ diff --git a/src/ninja.donatetab.js b/src/ninja.donatetab.js index b8db6ca..0ed5fdd 100644 --- a/src/ninja.donatetab.js +++ b/src/ninja.donatetab.js @@ -7,9 +7,10 @@ ninja.wallets.donate = { document.getElementById("donatearea").style.display = "none"; }, - displayQrCode: function (currencyid) { + displayQrCode: function (currencyid, e) { var keyValuePair = {}; keyValuePair["donateqrcode"] = janin.currencies[currencyid].donate; ninja.qrCode.showQrCode(keyValuePair, 4); + document.getElementById("donateqrcode").style.top = (e.offsetTop+15) + 'px'; } }; \ No newline at end of file diff --git a/src/ninja.onload.js b/src/ninja.onload.js index 104b110..03db396 100644 --- a/src/ninja.onload.js +++ b/src/ninja.onload.js @@ -25,7 +25,7 @@ select.innerHTML = options; var donatelist = document.getElementById("donatelist"); var list = "
"+janin.currencies[i].name+" | " +"" +janin.currencies[i].donate+" |