-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (28 loc) · 1.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="papaparse.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div id="container">
<a href="https://gapminder.org"><img src="gapminder_logo_transparent.png" height="50" id="logo" /></a>
<h1>Column translator tool</h1>
<h2>Input</h2>
<label for="input_selector">Source:</label><select id="input_selector"><option value="file_input">file upload</option><option value="url_input">url</option></select>
<input type="file" class="input" id="file_input" data-filetype="input" placeholder="Source file upload">
<span id="url_input" class="input"><input type="url" placeholder="Source file url"><input type="button" data-filetype="input" id="url_input_button" value="Fetch source file"></span><br><br>
<label for="column_selector">Column:</label><select id="column_selector"><option>-- no columns, choose a source file first</option></select><br>
<h2>Dictionary</h2>
<select id="dict_selector"><option value="gapminder_dict">Gapminder geo</option><option value="file_dict">file upload</option><option value="url_dict">url</option></select>
<a href="#" class="dict" id="gapminder_dict">download dictionary</a>
<input type="file" class="dict" id="file_dict" data-filetype="dict" placeholder="Dictionary file upload">
<span id="url_dict" class="dict"><input type="url" placeholder="Dictionary file url"><input type="button" id="url_dict_button" data-filetype="dict" value="Fetch dictionary file"></span><br>
<h2>Result</h2>
<input type="button" id="download_top" class="download" value="Download result">
<table id="table" class="tg">
</table>
<input type="button" id="download_bottom" class="download" value="Download result">
</div>
</body>
</html>