mirror of
https://github.com/tiennm99/exchange-rate-export.git
synced 2026-10-03 07:12:37 +00:00
feat(tcb): add tcb (WIP)
This commit is contained in:
1 parent
72b7aa9351
commit
7fdef5ca5c
4 files changed
+528
-6
No files matched your search
+13
@@ -78,6 +78,11 @@
|
||||
<input type="date" id="end-date">
|
||||
<button id="fetch-btn">Fetch</button>
|
||||
<button id="export-btn" disabled>Export CSV</button>
|
||||
<label for="bank-select">Bank:</label>
|
||||
<select id="bank-select">
|
||||
<option value="bidv">BIDV</option>
|
||||
<option value="tcb">Techcombank</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="status"></div>
|
||||
<table id="result-table" style="display:none;">
|
||||
@@ -261,6 +266,14 @@
|
||||
exportBtn.onclick = () => {
|
||||
if (results.length) exportCSV(results);
|
||||
};
|
||||
|
||||
document.getElementById('bank-select').onchange = function() {
|
||||
if (this.value === 'bidv') {
|
||||
window.location.href = 'bidv.html';
|
||||
} else if (this.value === 'tcb') {
|
||||
window.location.href = 'tcb.html';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user