Skip to content

Instantly share code, notes, and snippets.

@olabamipetaiwo
Created April 22, 2023 02:31
Show Gist options
  • Save olabamipetaiwo/32fec998ebc528ec3cc20bb9faf395db to your computer and use it in GitHub Desktop.
Save olabamipetaiwo/32fec998ebc528ec3cc20bb9faf395db to your computer and use it in GitHub Desktop.
var volumeSetup = function () {
// setup volume unit interface
var volumeUnit = window.APP.util.getSettings("ticker_vol_unit").toUpperCase();
let element = null;
switch (volumeUnit) {
case "FIRSTCCY":
element = $("#tickervolccy_0");
break;
case "USD":
element = $("#tickervolccy_USD");
break;
case "BTC":
element = $("#tickervolccy_BTC");
break;
case "ETH":
element = $("#tickervolccy_ETH");
break;
default:
element = null;
}
element && element.prop("checked", true);
// override currencies list
var result = window.APP.util.initCurrenciesList();
return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment