Skip to content

Commit

Permalink
Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed Jun 29, 2024
1 parent b3f440d commit f4850bc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mon Application Streamlit</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
iframe {
border: none;
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<iframe></iframe>
<script>
// Récupérer l'URL de l'application à partir de l'environnement Netlify
var streamlitAppUrl = '<%= process.env.STREAMLIT_APP_URL %>';

// Mettre à jour l'URL de l'iframe
var iframe = document.querySelector('iframe');
if (iframe) {
iframe.src = streamlitAppUrl;
} else {
console.error('L\'élément iframe est introuvable dans le document.');
}
</script>
</body>
</html>

0 comments on commit f4850bc

Please sign in to comment.