QR code for FFS contribute

This commit is contained in:
m2049r 2018-09-23 09:17:29 +02:00
parent 4977bcfaf4
commit 161b68d757
No known key found for this signature in database
GPG key ID: 4386E69AF260078D
4 changed files with 31 additions and 3 deletions

View file

@ -11,6 +11,10 @@
url: # url: #
summary: This is for the best ideas ever! summary: This is for the best ideas ever!
author: rehrar author: rehrar
- name: QR Codes for Funding Required
url: /forum-funding-system/proposals/qr-code-for-fr.html
summary: The title says it all!
author: m2049r
- stage: Funding Required - stage: Funding Required
proposals: proposals:

View file

@ -5,7 +5,7 @@ layout: base
<div class="site-wrap"> <div class="site-wrap">
<div class="container ffs-breadcrumbs"> <div class="container ffs-breadcrumbs">
<p><a href="/forum-funding-system/">Forum Funding System</a> > <a href="/forum-funding-system/funding-required/">Funding Required</a> > {{page.title}}</p> <p><a href="/forum-funding-system/">Forum Funding System</a> <a href="/forum-funding-system/funding-required/">Funding Required</a> > {{page.title}}</p>
</div> </div>
<!-- FULL WIDTH BLOCK --> <!-- FULL WIDTH BLOCK -->
@ -40,6 +40,19 @@ layout: base
<p>Have a valid Monero address. If you don't have one, you can read on getting started!</p> <p>Have a valid Monero address. If you don't have one, you can read on getting started!</p>
<p>Send the amount of XMR that you wish to contribute to the address: <strong>{{page.address}}</strong></p> <p>Send the amount of XMR that you wish to contribute to the address: <strong>{{page.address}}</strong></p>
<p>Make sure that you enter a payment ID of <strong>{{page.paymentid}}</strong> in order for us to be able to assign your contribution to this specific project!</p> <p>Make sure that you enter a payment ID of <strong>{{page.paymentid}}</strong> in order for us to be able to assign your contribution to this specific project!</p>
<p><div id="qrcode"></div></p>
<script src="{{ base.url | prepend: site.url }}/js/qrcode.min.js"></script>
<script type="text/javascript">
var qr_description = encodeURIComponent("{{page.title}}");
new QRCode(document.getElementById("qrcode"), {
text: "monero:{{page.address}}?tx_payment_id={{page.paymentid}}&tx_description="+qr_description,
width: 150,
height: 150,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.M
});
</script>
</div> </div>
</div> </div>
</div> </div>

View file

@ -0,0 +1,10 @@
---
layout: ffs-fr
title: QR Codes for Funding Required
summary: The title says it all!
author: m2049r
address: 45ttEikQEZWN1m7VxaVN9rjQkpSdmpGZ82GwUps66neQ1PqbQMno4wMY8F5jiDt2GoHzCtMwa7PDPJUJYb1GYrMP4CwAwNp
paymentid: 6d32303439722e2e6d32303439722e2e6d32303439722e2e6d32303439722e2e
---
We need QR Codes for the Contribute-Button for "Funding Required" proposals.

1
js/qrcode.min.js vendored Normal file

File diff suppressed because one or more lines are too long