-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
47 lines (33 loc) · 1.09 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
<html>
<head>
<title>Data Pipe JS</title>
<script src="./dist/data-pipe.min.js"></script>
</head>
<body>
<h4>Data Pipe testing page. Do not expect anything here! </h4>
<button onclick="onButtonClick()">++ Click ++ </button>
<input id="input" type="file" onchange="fileChange(this.files[0])" />
<script>
function onButtonClick() {
const data = [
{
"dt2": "2020-02-21T13:49:15.167Z",
"dt": "20-Aug-2019",
"dt1": "06-Aug-2019",
"value": "8=FIX.4.4^9=58^35=0^49=BuySide^56=SellSide^34=3^52=20190605-12:29:20.259^10=172^"
}
]
console.log('* fieldsInfo => ', dp.dataPipe(data).getFieldsInfo());
}
onButtonClick();
// fetch("https://raw.githubusercontent.com/FalconSoft/sample-data/master/CSV/sample-testing-data-100.csv")
// .then(r => {
// r.text().then(text => {
// const items = dp.dataPipe().fromCsv(text).toArray();
// console.log('==>', items, dp.dataPipe(items).getFieldDescriptions());
// });
// })
// onButtonClick();
</script>
</body>
</html>