Skip to content

Commit afb3118

Browse files
committed
Improve css and description text
1 parent d3c9c8e commit afb3118

File tree

2 files changed

+39
-25
lines changed

2 files changed

+39
-25
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# iso2ofx
2-
ISO20022 CAMT.053 to OFX - converting bank statements for Xero import
1+
# ISO20022 CAMT.053 to OFX bank statement XML convertor
32

4-
Secure - data are not submitted anywhere - conversion executed in the browser locally.
3+
This simple webpage loads the bank statement with account balance and all transactions - exported as an XML file from an European (esp. Swiss) online banking systems in [ISO20022](https://www.iso20022.org/) SEPA [camt.053 XML format](https://www.six-group.com/dam/download/banking-services/standardization/sps/ig-cash-management-delta-guide-sps2022-en.pdf), it transforms the data and generates [Open Financial Exchange (OFX)](https://financialdataexchange.org/ofx) format suitable for import into [Xero](https://www.xero.com/) and other accounting and financial systems.
4+
5+
Secure - your data are not submitted anywhere. Conversion happens directly in your web browser locally using in-browser XSLT transformation (camt2ofx.xsl) without any server.
6+
7+
Open-source code including the XSL transformation itself is available at https://github.com/maptiler/iso2ofx.
58

69
Available online at:
7-
https://labs.maptiler.com/iso2ofx/
10+
[https://labs.maptiler.com/iso2ofx/](https://labs.maptiler.com/iso2ofx/)

index.html

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,34 @@
44
<head>
55
<meta charset="utf-8">
66
<meta http-equiv="x-ua-compatible" content="ie=edge">
7-
<title>ISO 20022 XML Converter</title>
7+
<title>ISO 20022 CAMT053 to OFX XML Converter</title>
88
<meta name="description" content="ISO 20022 XML Converter">
99
<meta name="viewport" content="width=device-width, initial-scale=1">
10-
<style>
11-
12-
13-
</style>
10+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
1411
</head>
1512

1613
<body>
17-
<!--[if lte IE 9]>
18-
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
19-
<![endif]-->
20-
<header>
21-
<h1>ISO 20022 XML Converter</h1>
22-
</header>
23-
<main>
24-
<input type="file" id="input">
25-
<a id="download" disabled='disabled' href="">Download</a>
26-
</main>
27-
<script type="text/javascript">
14+
<main class="container">
15+
16+
<header class="headings">
17+
<h1>Bank statement XML convertor</h1>
18+
<h2>ISO 20022 CAMT.053 to OFX free online conversion</h2>
19+
</header>
20+
21+
<section>This simple webpage loads the bank statement with account balance and all transactions - exported as an XML file from an European (esp. Swiss) online banking systems in <a href="https://www.iso20022.org/">ISO20022</a> SEPA <a href="https://www.six-group.com/dam/download/banking-services/standardization/sps/ig-cash-management-delta-guide-sps2022-en.pdf">camt.053 XML format</a>, it transforms the data and generates <a href="https://financialdataexchange.org/ofx">Open Financial Exchange (OFX) format</a> suitable for import into <a href="https://www.xero.com/">Xero</a> and other accounting and financial systems.
22+
</section>
23+
24+
<input id="input" type="file" >
25+
<a id="download" role="button" onClick="return(buttonClick())" href="">Convert &amp; Download</a>
26+
27+
<blockquote>
28+
<b>Secure - your data are not submitted anywhere.</b> Conversion happens directly in your web browser locally using in-browser XSLT transformation (camt2ofx.xsl) without any server.
29+
Open-source code including the XSL transformation itself is available at <a href="https://github.com/maptiler/iso2ofx">https://github.com/maptiler/iso2ofx</a>.
30+
</blockquote>
31+
32+
</main>
33+
34+
<script type="text/javascript">
2835
function transform(xml_content, xslt_url, callback) {
2936
xslt = new XMLHttpRequest();
3037
xslt.onreadystatechange = function() {
@@ -47,7 +54,6 @@ <h1>ISO 20022 XML Converter</h1>
4754
type: 'text/xml'
4855
}));
4956
a.download = targetFilename();
50-
a.removeAttribute('disabled');
5157
}
5258

5359
function targetFilename() {
@@ -62,13 +68,18 @@ <h1>ISO 20022 XML Converter</h1>
6268
reader.onload = function(e) {
6369
transform(reader.result, 'camt2ofx.xsl', download);
6470
}
65-
6671
reader.readAsText(this.files[0]);
6772
}
6873

69-
</script>
74+
function buttonClick() {
75+
var i = document.getElementById("input");
76+
if (i.files.length == 0) {
77+
alert("Choose CAMT053 XML file exported from your online banking first"); return false;
78+
}
79+
}
80+
</script>
7081

71-
<script type="module">
82+
<script type="module">
7283
/* TODO - finish the MT940 support first
7384
import * as mt940 from './mt940-js/index.js';
7485
@@ -81,7 +92,7 @@ <h1>ISO 20022 XML Converter</h1>
8192
});
8293
});
8394
*/
84-
</script>
95+
</script>
8596
</body>
8697

8798
</html>

0 commit comments

Comments
 (0)