replaced 'Your invoice' with 'Your tip request'

This commit is contained in:
michael1011 2018-03-29 23:47:35 +02:00
parent 6a70a1a914
commit 95a893fe9c
No known key found for this signature in database
GPG Key ID: 84D249BA71685D46
3 changed files with 12 additions and 5 deletions

View File

@ -40,6 +40,12 @@
outline: none;
}
.lightningTipButton::-moz-focus-inner {
outline: none;
border: 0;
}
#lightningTip {
width: 12em;

View File

@ -17,7 +17,7 @@
<br>
<textarea class="lightningTipInput" id="lightningTipMessage" placeholder="A message you want to add" oninput="resizeInput(this)"></textarea>
<button class="lightningTipButton" id="lightningTipGetInvoice" onclick="getInvoice()">Get Invoice</button>
<button class="lightningTipButton" id="lightningTipGetInvoice" onclick="getInvoice()">Get request</button>
<div>
<a id="lightningTipError"></a>

View File

@ -14,10 +14,11 @@ var defaultGetInvoice;
window.onload = function () {
var button = document.getElementById("lightningTipGetInvoice");
button.style.height = button.clientHeight + "px";
button.style.width = button.clientWidth + "px";
button.style.height = (button.clientHeight + 1) + "px";
button.style.width = (button.clientWidth + 1) + "px";
};
// TODO: fix scaling on phones
// TODO: maybe don't show full invoice
// TODO: show price in dollar?
function getInvoice() {
@ -54,7 +55,7 @@ function getInvoice() {
var wrapper = document.getElementById("lightningTip");
wrapper.innerHTML = "<a>Your invoice</a>";
wrapper.innerHTML = "<a>Your tip request</a>";
wrapper.innerHTML += "<textarea class='lightningTipInput' id='lightningTipInvoice' onclick='copyToClipboard(this)' readonly>" + json.Invoice + "</textarea>";
wrapper.innerHTML += "<div id='lightningTipQR'></div>";
@ -207,7 +208,7 @@ function showExpired() {
var wrapper = document.getElementById("lightningTip");
wrapper.innerHTML = "<p id=\"lightningTipLogo\">⚡</p>";
wrapper.innerHTML += "<a id='lightningTipFinished'>Your invoice expired!</a>";
wrapper.innerHTML += "<a id='lightningTipFinished'>Your tip request expired!</a>";
}
function addLeadingZeros(value) {