llamameta commited on
Commit
8cea517
1 Parent(s): efdb990

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +35 -18
index.html CHANGED
@@ -1,24 +1,41 @@
1
  <!DOCTYPE html>
2
- <html>
3
  <head>
4
- <title>Black Forest Labs</title>
5
- <style>
6
- html, body {
7
- margin: 0;
8
- padding: 0;
9
- width: 100%;
10
- height: 100%;
11
- }
12
- iframe {
13
- width: 100%;
14
- height: 100vh;
15
- border: none;
16
- }
17
- </style>
 
 
18
  </head>
19
  <body>
20
- <iframe
21
- src="https://square-disk-5955.ploomberapp.io/?embed=true"
22
- ></iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  </body>
24
  </html>
 
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>Black Forest Labs</title>
7
+ <style>
8
+ html, body {
9
+ margin: 0;
10
+ padding: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+ iframe {
15
+ width: 100%;
16
+ height: 100vh;
17
+ border: none;
18
+ }
19
+ </style>
20
  </head>
21
  <body>
22
+ <iframe id="streamlit-frame"></iframe>
23
+
24
+ <script>
25
+ const urls = [
26
+ "https://share.streamlit.io/?embed=true",
27
+ "https://square-disk-5955.ploomberapp.io/?embed=true"
28
+ ];
29
+
30
+ function loadBalancedUrl() {
31
+ const randomIndex = Math.floor(Math.random() * urls.length);
32
+ return urls[randomIndex];
33
+ }
34
+
35
+ window.onload = function() {
36
+ const iframe = document.getElementById('streamlit-frame');
37
+ iframe.src = loadBalancedUrl();
38
+ };
39
+ </script>
40
  </body>
41
  </html>