Admin0805 commited on
Commit
687ac73
1 Parent(s): fe947ad

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +20 -18
index.html CHANGED
@@ -1,19 +1,21 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
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>