show low and high in separate alert
parent
029be51473
commit
fb0d08f260
|
|
@ -57,7 +57,7 @@ var layout = new Layout({
|
||||||
c: [
|
c: [
|
||||||
{type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1},
|
{type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1},
|
||||||
{type:"btn", label:"..", halign:1, cb: d=>showDetails()},
|
{type:"btn", label:"..", halign:1, cb: d=>showDetails()},
|
||||||
{type:"btn", label:"LH", halign:1, cb: d=>showDetails()}
|
{type:"btn", label:"LH", halign:1, cb: d=>showLowHigh()}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{type:"txt", id:"loadMsg", font:"6x8", label:"", fillx:1 },
|
{type:"txt", id:"loadMsg", font:"6x8", label:"", fillx:1 },
|
||||||
|
|
@ -127,9 +127,25 @@ function getChart(period) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
function setLoadMsg(x) {
|
function showLowHigh() {
|
||||||
timePeriod = x;
|
const title = `L/H ${tokenInfo.symbol}`;
|
||||||
currLoadMsg = `Load... ${x}`;
|
const first = ciLib.formatPriceString(optSpacing.first);
|
||||||
|
const last = ciLib.formatPriceString(optSpacing.last);
|
||||||
|
const low = ciLib.formatPriceString(optSpacing.low);
|
||||||
|
const high = ciLib.formatPriceString(optSpacing.high);
|
||||||
|
const msg = `
|
||||||
|
First: ${first}
|
||||||
|
Last: ${last}
|
||||||
|
Low: ${low}
|
||||||
|
High: ${high}
|
||||||
|
`;
|
||||||
|
E.showAlert(msg, title).then(function() {
|
||||||
|
// print("Ok pressed");
|
||||||
|
g.clear();
|
||||||
|
layout.forgetLazyState();
|
||||||
|
layout.render();
|
||||||
|
layout.setUI();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function showDetails() {
|
function showDetails() {
|
||||||
const token = csTokens[ticker];
|
const token = csTokens[ticker];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.07.00",
|
"version": "0.07.01",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue