ubowang commited on
Commit
35757fe
·
verified ·
1 Parent(s): f73c337

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +17 -3
index.html CHANGED
@@ -1,12 +1,26 @@
1
  <!DOCTYPE html>
2
- <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Scholar Copilot</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  <script>
8
  document.addEventListener("DOMContentLoaded", function() {
9
- var gradioURL = "https://7e1d3effc5920c180f.gradio.live"; // Your variable URL
10
  var iframe = document.getElementById("gradioIframe");
11
  var link = document.getElementById("gradioLink");
12
  if (iframe) iframe.src = gradioURL;
@@ -15,7 +29,7 @@
15
  </script>
16
  </head>
17
  <body>
18
- <iframe id="gradioIframe" width="100%" height="100%" style="border:none;">
19
  Your browser does not support iframes. Please click this <a id="gradioLink">url</a>.
20
  </iframe>
21
  </body>
 
1
  <!DOCTYPE html>
2
+ <html lang="en" style="height: 100%; margin: 0;">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Scholar Copilot</title>
7
+ <style>
8
+ body {
9
+ height: 100%;
10
+ margin: 0;
11
+ padding: 0;
12
+ overflow: hidden;
13
+ }
14
+ #gradioIframe {
15
+ width: 100%;
16
+ height: 100%;
17
+ border: none;
18
+ display: block;
19
+ }
20
+ </style>
21
  <script>
22
  document.addEventListener("DOMContentLoaded", function() {
23
+ var gradioURL = "https://7e1d3effc5920c180f.gradio.live";
24
  var iframe = document.getElementById("gradioIframe");
25
  var link = document.getElementById("gradioLink");
26
  if (iframe) iframe.src = gradioURL;
 
29
  </script>
30
  </head>
31
  <body>
32
+ <iframe id="gradioIframe">
33
  Your browser does not support iframes. Please click this <a id="gradioLink">url</a>.
34
  </iframe>
35
  </body>