1
0
Fork 1
mirror of https://github.com/wezm/wezm.net.git synced 2024-12-21 11:49:54 +00:00

Actually fix forex JavaScript

This commit is contained in:
Wesley Moore 2024-07-16 10:32:42 +10:00
parent bb2536a61b
commit 6cd8297ecf
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions
v2
static/js
templates

View file

@ -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}

View file

@ -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%;