forked from thdoan/mr-data-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (150 loc) · 8.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
<title>Mr. Data Converter</title>
<meta name="description" content="Convert your spreadsheet data into one of several web-friendly formats, including JSON and XML.">
<meta name="google-site-verification" content="XyXgwlcIf2zzTHcUBbZYXChfZ1a2gNTej4wO-hfBVlE">
<link rel="stylesheet" href="css/converter.min.css">
<link rel="apple-touch-icon" sizes="57x57" href="/mr-data-converter/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/mr-data-converter/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/mr-data-converter/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/mr-data-converter/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/mr-data-converter/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/mr-data-converter/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/mr-data-converter/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/mr-data-converter/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/mr-data-converter/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/mr-data-converter/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/mr-data-converter/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/mr-data-converter/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/mr-data-converter/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/mr-data-converter/favicons/manifest.json">
<link rel="mask-icon" href="/mr-data-converter/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/mr-data-converter/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mr-data-converter/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="/mr-data-converter/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<div id="base" class="hbox">
<div id="header" class="panel">
<div id="description">
<h1>Mr. Data Converter</h1>
<p>I will convert your spreadsheet data into one of several web-friendly formats.</p>
<p>Fork me on <a href="https://github.com/thdoan/mr-data-converter">GitHub</a>.</p>
</div>
<hr>
<div id="settings">
<h3>Settings</h3>
<form id="settings-form">
<p>
Delimiter:
<label><input type="radio" id="delimiterAuto" name="delimiter" value="auto" class="settings-element" checked> Auto</label>
<label><input type="radio" id="delimiterComma" name="delimiter" value="comma" class="settings-element"> Comma</label>
<label><input type="radio" id="delimiterTab" name="delimiter" value="tab" class="settings-element"> Tab</label>
</p>
<p>
Decimal Sign:
<label><input type="radio" id="decimalDot" name="decimal" value="dot" class="settings-element" checked> Dot</label>
<label><input type="radio" id="decimalComma" name="decimal" value="comma" class="settings-element"> Comma</label>
</p>
<p>
<label><input type="checkbox" id="headersProvidedCB" class="settings-element" checked> First row is the header</label>
</p>
<div id="headerGroup" class="settings-group">
<p>
Safe header names:
<label><input type="radio" id="headersSafe" name="headerType" value="safe" class="settings-element" checked> Yes</label>
<label><input type="radio" id="headersUnsafe" name="headerType" value="unsafe" class="settings-element"> No</label>
</p>
<p>
Transform:
<label><input type="radio" id="headersNoTransform" name="headerModifications" value="none" class="settings-element" checked> None</label>
<label><input type="radio" id="headersDowncase" name="headerModifications" value="downcase" class="settings-element"> Lowercase</label>
<label><input type="radio" id="headersUpcase" name="headerModifications" value="upcase" class="settings-element"> Uppercase</label>
</p>
</div>
<p>
<label><input type="checkbox" id="includeWhiteSpaceCB" class="settings-element" checked> Include white space in output</label>
</p>
<div id="indentGroup" class="settings-group">
<p>
Indent with:
<label><input type="radio" id="includeWhiteSpaceSpaces" name="indentType" value="spaces" class="settings-element" checked> Spaces</label>
<label><input type="radio" id="includeWhiteSpaceTabs" name="indentType" value="tabs" class="settings-element"> Tabs</label>
</p>
</div>
<p>
<label><input type="checkbox" id="includeHtmlClassCB" class="settings-element" checked> Include <code>class</code> in HTML output</label>
</p>
</form>
</div>
</div>
<div id="converter" class="vbox panel">
<div class="wrapper">
<div id="input-header" class="group-header panel">
<p class="group-headline">
<label for="data-input">Input CSV or tab-delimited data.</label>
<span class="subhead">
Using Excel? Simply copy & paste. No data on hand?
<a href="javascript:;" id="insert-sample">Use sample</a>
</span>
</p>
</div>
<textarea id="data-input" class="text-input panel" autofocus></textarea>
<div id="output-header" class="group-header panel">
<p class="group-headline">
<label for="data-output">Output as</label>
<select id="data-selector">
<option value="asp">ASP/VBScript</option>
<option value="csharp">C#</option>
<option value="cfml">ColdFusion</option>
<option value="go">Go</option>
<option value="html">HTML</option>
<option value="json" selected>JSON - Properties</option>
<option value="jsonArrayCols">JSON - Column Arrays</option>
<option value="jsonArrayRows">JSON - Row Arrays</option>
<option value="jsonDict">JSON - Dictionary</option>
<option value="luaDict">Lua - Dictionary Table</option>
<option value="luaArray">Lua - Array Table</option>
<option value="markdown">Markdown</option>
<option value="mysql">MySQL</option>
<option value="perl">Perl</option>
<option value="php">PHP</option>
<option value="python">Python</option>
<option value="rtf">RTF</option>
<option value="ruby">Ruby</option>
<option value="trac">Trac</option>
<option value="wiki">Wiki</option>
<option value="xmlProperties">XML - Properties</option>
<option value="xml">XML - Nodes</option>
<option value="xmlIllustrator">XML - Illustrator</option>
<option value="yaml">YAML</option>
</select>
<!-- <span id="output-notes" class="subhead"></span> -->
</p>
</div>
<textarea id="data-output" class="text-input panel"></textarea>
</div>
</div>
</div>
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
<![endif]-->
<!--[if IE 9]><!-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
<!--<![endif]-->
<script src="js/app.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() {
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create','UA-2843793-6','auto');ga('send','pageview');
</script>
</body>
</html>