Srinivasulu kethanaboina commited on
Commit
1b38fad
·
verified ·
1 Parent(s): 38ea696

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +21 -1
index.html CHANGED
@@ -13,15 +13,35 @@
13
  align-items: center;
14
  height: 100vh;
15
  background-color: #f0f0f0;
 
16
  }
17
  iframe {
18
  border: none;
19
  width: 100%;
20
- height:100%;
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
  </style>
23
  </head>
24
  <body>
 
25
  <iframe src="https://srinukethanaboina-srunu.hf.space" title="Embedded App"></iframe>
 
 
 
 
 
 
 
26
  </body>
27
  </html>
 
13
  align-items: center;
14
  height: 100vh;
15
  background-color: #f0f0f0;
16
+ position: relative;
17
  }
18
  iframe {
19
  border: none;
20
  width: 100%;
21
+ height: 100%;
22
+ }
23
+ .close-button {
24
+ position: absolute;
25
+ top: 10px;
26
+ right: 10px;
27
+ background-color: #ff0000;
28
+ color: white;
29
+ border: none;
30
+ padding: 10px;
31
+ cursor: pointer;
32
+ border-radius: 5px;
33
  }
34
  </style>
35
  </head>
36
  <body>
37
+ <button class="close-button" onclick="closeIframe()">Close</button>
38
  <iframe src="https://srinukethanaboina-srunu.hf.space" title="Embedded App"></iframe>
39
+
40
+ <script>
41
+ function closeIframe() {
42
+ document.querySelector('iframe').style.display = 'none';
43
+ document.querySelector('.close-button').style.display = 'none';
44
+ }
45
+ </script>
46
  </body>
47
  </html>