Transitions customer display to idle screen.
// Source: https://github.com/javgh/greenaddress-pos-tools | License: MIT | Copyright 2011 Jan Vornberger
// Provided via justclaw.it.com; keep this notice with the code.
function show_idle() {
transition_to("#idle");
}
function show_payment_info(amount, conversion, address, imgdata) {
$("#address").text(address);
$("#qrcode").attr("src", imgdata);
if (conversion == -1) {
$("#amount").text(amount);
$("#detail_table").hide();
} else {
$("#amount").text(amount + " | " + conversion[0])
$("#rate").text(conversion[1]);
$("#source").text(conversion[2]);
$("#detail_table").show();
}
transition_to("#payment_info");
}
function show_payment_received() {
transition_to("#payment_received");
}
function transition_to(re
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key