rguo123 commited on
Commit
9f9b03a
·
1 Parent(s): 91b1382

iframe atlas

Browse files
Files changed (1) hide show
  1. index.html +32 -17
index.html CHANGED
@@ -1,19 +1,34 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <title>Embed URL in Iframe</title>
5
+ <script>
6
+ // Define the function to change the source of the iframe
7
+ function changeIframeSrc() {
8
+ // Get the dropdown element
9
+ var dropdown = document.getElementById('urlDropdown');
10
+
11
+ // Get the selected URL
12
+ var selectedUrl = dropdown.options[dropdown.selectedIndex].value;
13
+
14
+ // Get the iframe element
15
+ var iframe = document.getElementById('urlIframe');
16
+
17
+ // Set the iframe source to the selected URL
18
+ iframe.src = selectedUrl;
19
+ }
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <h1>Embed URL in Iframe</h1>
24
+
25
+ <select id="urlDropdown" onchange="changeIframeSrc()">
26
+ <option value="https://atlas.nomic.ai/map/6105b12f-1f45-4a29-9956-0cd0e157056c/3af6b843-bef6-4d3e-8ef5-dc76fd34b6a2">Quora Questions</option>
27
+ <option value="https://atlas.nomic.ai/map/2a222eb6-8f5a-405b-9ab8-f5ab23b71cfd/1dae224b-0284-49f7-b7c9-5f80d9ef8b32">MNIST Logits</option>
28
+ <option value="https://atlas.nomic.ai/map/neurips">NeurIPS Proceedings</option>
29
+ <!-- Add more options as needed -->
30
+ </select>
31
+
32
+ <iframe id="urlIframe" src="https://atlas.nomic.ai/map/6105b12f-1f45-4a29-9956-0cd0e157056c/3af6b843-bef6-4d3e-8ef5-dc76fd34b6a2" width="800" height="600"></iframe>
33
+ </body>
34
+ </html>