iframe atlas
Browse files- index.html +32 -17
index.html
CHANGED
@@ -1,19 +1,34 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|