ui/update: Bug fixes, Added Coin Price Lookup Table (Offer new page) + Update github readme header GFX.

This commit is contained in:
gerlofvanek
2023-04-07 14:26:59 +02:00
parent 5536c82ded
commit e67ca94dfb
9 changed files with 272 additions and 179 deletions

View File

@@ -14,7 +14,7 @@ function updateSelectCache(select) {
function setSelectData(select) {
const selectedOption = select.options[select.selectedIndex];
const image = selectedOption.getAttribute('data-image') || 'https://dummyimage.com/20x20/000/fff'; // set a default image URL
const image = selectedOption.getAttribute('data-image') || '/static/images/other/coin.png'; // set a default image URL
const name = selectedOption.textContent.trim();
if (image) {
select.style.backgroundImage = `url(${image})`;