ghj / index.html
Srinivasulu kethanaboina
Update index.html
1b38fad verified
raw
history blame
1.27 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Embedded App</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
position: relative;
}
iframe {
border: none;
width: 100%;
height: 100%;
}
.close-button {
position: absolute;
top: 10px;
right: 10px;
background-color: #ff0000;
color: white;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 5px;
}
</style>
</head>
<body>
<button class="close-button" onclick="closeIframe()">Close</button>
<iframe src="https://srinukethanaboina-srunu.hf.space" title="Embedded App"></iframe>
<script>
function closeIframe() {
document.querySelector('iframe').style.display = 'none';
document.querySelector('.close-button').style.display = 'none';
}
</script>
</body>
</html>