coyotte508 HF Staff commited on
Commit
199b99a
·
verified ·
1 Parent(s): 7a25093

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -0
index.html CHANGED
@@ -5,6 +5,13 @@
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">
@@ -14,6 +21,7 @@
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>
 
5
  <meta name="viewport" content="width=device-width" />
6
  <title>My static Space</title>
7
  <link rel="stylesheet" href="style.css" />
8
+ <script>
9
+ window.addEventListener("message", event => {
10
+ console.log("event", event);
11
+ document.querySelector("#plan").text = JSON.stringify(event.data.plan, null, 2);
12
+ })
13
+ postMessage({type: "USER_PLAN_REQUEST"}, "*");
14
+ </script>
15
  </head>
16
  <body>
17
  <div class="card">
 
21
  Also don't forget to check the
22
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
23
  </p>
24
+ <pre id="plan"></pre>
25
  </div>
26
  </body>
27
  </html>