mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Actually fix forex JavaScript
This commit is contained in:
parent
bb2536a61b
commit
6cd8297ecf
2 changed files with 5 additions and 7 deletions
|
@ -1,9 +1,7 @@
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
const select = document.getElementById('forex');
|
||||||
const select = document.getElementById('forex');
|
select.addEventListener('change', updatePrices);
|
||||||
select.addEventListener('change', updatePrices);
|
// Trigger initial conversion (Firefox preserves selected option across refresh
|
||||||
// Trigger initial conversion (Firefox preserves selected option across refresh
|
updatePrices.call(select);
|
||||||
updatePrices.call(select);
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @this {HTMLSelectElement}
|
* @this {HTMLSelectElement}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "page.html" %}
|
{% extends "page.html" %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<script src="{{ config.base_url }}/js/forex.js" type="module" async></script>
|
<script src="{{ config.base_url }}/js/forex.js?v=2" type="text/javascript" defer async></script>
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in a new issue