Spaces:
Running
Running
Update index.html
Browse files- index.html +20 -18
index.html
CHANGED
@@ -1,19 +1,21 @@
|
|
1 |
-
<!doctype html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
1 |
<html>
|
2 |
+
<head>
|
3 |
+
<script src="https://unpkg.com/@flatfile/javascript@^0.3.1/dist/index.js"></script>
|
4 |
+
<script src="./blueprint.js"></script>
|
5 |
+
<script>
|
6 |
+
window.onload = function() {
|
7 |
+
FlatFileJavaScript.startFlatfile({
|
8 |
+
publishableKey: "pk_98a7c9bd2ab84a68a6575ae4e5ddd30c",
|
9 |
+
sheet: blueprint,
|
10 |
+
onSubmit: async ({ sheet }) => {
|
11 |
+
const data = await sheet.allData()
|
12 |
+
console.log('onSubmit', data)
|
13 |
+
},
|
14 |
+
spaceBody: {
|
15 |
+
namespace: "portal",
|
16 |
+
},
|
17 |
+
})
|
18 |
+
}
|
19 |
+
</script>
|
20 |
+
</head>
|
21 |
+
</html>
|