mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 10:19:54 +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');
|
||||
select.addEventListener('change', updatePrices);
|
||||
// Trigger initial conversion (Firefox preserves selected option across refresh
|
||||
updatePrices.call(select);
|
||||
})
|
||||
const select = document.getElementById('forex');
|
||||
select.addEventListener('change', updatePrices);
|
||||
// Trigger initial conversion (Firefox preserves selected option across refresh
|
||||
updatePrices.call(select);
|
||||
|
||||
/**
|
||||
* @this {HTMLSelectElement}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "page.html" %}
|
||||
|
||||
{% 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>
|
||||
table {
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in a new issue