diff --git a/README.md b/README.md index 0f51e7e..9860bbd 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # exchange-rate-export -Get data from BIDV[https://bidv.com.vn/vn/ty-gia-ngoai-te] and export to Excel format. +Fetch data from BIDV or Techcombank and export to Excel format. Features: -- Allow select time range. -- Export to Excel. +- Choose BIDV or Techcombank. +- Select time range. +- View and export to Excel. -Use these api: -- https://bidv.com.vn/ServicesBIDV/ExchangeDetailSearchTimeServlet -- https://bidv.com.vn/ServicesBIDV/ExchangeDetailServlet \ No newline at end of file +Use data from : +- https://bidv.com.vn/vn/ty-gia-ngoai-te +- https://techcombank.com/cong-cu-tien-ich/ty-gia diff --git a/bidv.html b/bidv.html new file mode 100644 index 0000000..134926c --- /dev/null +++ b/bidv.html @@ -0,0 +1,266 @@ + + + + + + Exchange Rate Export + + + +
+

Exchange Rate Export (USD)

+
+ + + + + + +
+
+ + + + + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/index.html b/index.html index 743bfb9..bc6502b 100644 --- a/index.html +++ b/index.html @@ -78,6 +78,11 @@ + +
@@ -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'; + } + }; diff --git a/tcb.html b/tcb.html new file mode 100644 index 0000000..fdbe1e4 --- /dev/null +++ b/tcb.html @@ -0,0 +1,242 @@ + + + + + + Exchange Rate Export - Techcombank + + + +
+

Exchange Rate Export (USD, Techcombank)

+
+ + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file