diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index 887d28442..9acbaa3a8 100644 --- a/apps/coin_info/app.js +++ b/apps/coin_info/app.js @@ -57,7 +57,7 @@ var layout = new Layout({ c: [ {type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1}, {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 }, @@ -127,9 +127,25 @@ function getChart(period) { } // -function setLoadMsg(x) { - timePeriod = x; - currLoadMsg = `Load... ${x}`; +function showLowHigh() { + const title = `L/H ${tokenInfo.symbol}`; + 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() { const token = csTokens[ticker]; diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index b51669147..57d9e4f85 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -1,7 +1,7 @@ { "id": "coin_info", "name": "Crypto-Coins Info", "shortName":"Coins Info", - "version": "0.07.00", + "version": "0.07.01", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",