(value)
| 130 | } |
| 131 | |
| 132 | function formatValue(value) { |
| 133 | if (!value) { |
| 134 | return '-' |
| 135 | } |
| 136 | let lastDigit = '⁹' |
| 137 | let price = value.toString().slice(0, -1) |
| 138 | return price + lastDigit + "€" |
| 139 | } |
| 140 | |
| 141 | async function createWidget(data) { |
| 142 | const attr = data.stations[0] |