Skip to content

Commit a66acb1

Browse files
committed
Added explanatory text
1 parent c9027ba commit a66acb1

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

File renamed without changes.

csv/converter.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ <h1>Simple Mapcode CSV Converter</h1>
4949
-28.700225,28.602905,ZAF QNW2.Y72,8KYVG.4C8Y<br/>
5050
-28.433676,19.986191,ZAF 6MQP.506,8K70Z.7PB4
5151
</p>
52-
<p>The output is automatically saved to <b>mapcodes.csv</b> in your Downloads folder.</p>
52+
<p>
53+
In some browsers the output will automatically be saved to <b>mapcodes.csv</b> in your Downloads folder.
54+
However, not all browsers support this functionality and will shows the CSV file instead on your screen.
55+
(Note: We've tried this with Google Chrome and it seems to work fine.)
56+
</p>
57+
<p>
58+
Troubleshooting: If you select a file and nothing happens, check the format of the file. It should contain exactly
59+
3 columns, separated by comma's and the latitude/longitudes must use decimal points.
60+
</p>
5361

5462
<div id="inputs" class="clearfix">
5563
<input type="file" id="files" name="files[]" multiple/>
@@ -63,7 +71,7 @@ <h1>Simple Mapcode CSV Converter</h1>
6371

6472
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
6573
<script src="jquery.csv.js"></script>
66-
<script src="FileSave.js"></script>
74+
<script src="FileSaver.js"></script>
6775
<script src="../ndata.js" type="text/javascript"></script>
6876
<script src="../mapcode.js" type="text/javascript"></script>
6977
<script>
@@ -152,7 +160,7 @@ <h1>Simple Mapcode CSV Converter</h1>
152160
$('#contents').html(html);
153161

154162
var blob = new Blob([csv], {
155-
type: "text/plain;charset=utf-8;",
163+
type: "text/csv;charset=utf-8;",
156164
});
157165
saveAs(blob, "mapcodes.csv");
158166
};

0 commit comments

Comments
 (0)