-
Notifications
You must be signed in to change notification settings - Fork 0
/
tarefas.html
43 lines (35 loc) · 1.23 KB
/
tarefas.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<title>Teste Planilha</title>
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.21/jquery.csv.min.js" integrity="sha512-Y8iWYJDo6HiTo5xtml1g4QqHtl/PO1w+dmUpQfQSOTqKNsMhExfyPN2ncNAe9JuJUSKzwK/b6oaNPop4MXzkwg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<style type="text/css">
</style>
</head>
<body>
<script>
let url = "https://docs.google.com/spreadsheets/d/10R1UNCp4w_kGlHgJiFsizjUJYGNEI2ovp6HTPt7c63Y/export?format=csv";
function loadData(text) {
let table = $.csv.toObjects(text);
console.log(table)
// let records = lines.slice(1);
// let result = {};
// for (let ri in records) {
// let record = records[ri].split(',');
// let countryName = record[1];
// if (record[0].length > 0) {
// countryName += ` (${record[0]})`;
// }
// cases = record.slice(4).map(parseFloat);
// result[countryName] = cases;
// }
// return result;
}
fetch(url).then(response => response.text()).then(text => {
loadData(text);
});
</script>
</body>
</html>