Edit with some styling to see what it looks like
Browse files- index.html +29 -4
index.html
CHANGED
@@ -3,25 +3,50 @@
|
|
3 |
<head>
|
4 |
<title>Nomic Atlas</title>
|
5 |
<link rel="stylesheet" href="styles.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<script>
|
7 |
// Define the function to change the source of the iframe
|
8 |
function changeIframeSrc() {
|
9 |
// Get the dropdown element
|
10 |
var dropdown = document.getElementById('urlDropdown');
|
11 |
-
|
12 |
// Get the selected URL
|
13 |
var selectedUrl = dropdown.options[dropdown.selectedIndex].value;
|
14 |
-
|
15 |
// Get the iframe element
|
16 |
var iframe = document.getElementById('urlIframe');
|
17 |
-
|
18 |
// Set the iframe source to the selected URL
|
19 |
iframe.src = selectedUrl;
|
20 |
}
|
21 |
</script>
|
22 |
</head>
|
23 |
<body>
|
24 |
-
<
|
25 |
|
26 |
<select id="urlDropdown" onchange="changeIframeSrc()">
|
27 |
<option value="https://atlas.nomic.ai/map/6105b12f-1f45-4a29-9956-0cd0e157056c/3af6b843-bef6-4d3e-8ef5-dc76fd34b6a2">Quora Questions</option>
|
|
|
3 |
<head>
|
4 |
<title>Nomic Atlas</title>
|
5 |
<link rel="stylesheet" href="styles.css">
|
6 |
+
<style>
|
7 |
+
/* Add CSS styles to position the select element at the top */
|
8 |
+
body {
|
9 |
+
display: flex;
|
10 |
+
flex-direction: column;
|
11 |
+
align-items: center;
|
12 |
+
justify-content: flex-start;
|
13 |
+
min-height: 100vh;
|
14 |
+
margin: 0;
|
15 |
+
padding: 0;
|
16 |
+
}
|
17 |
+
|
18 |
+
h2 {
|
19 |
+
margin-top: 20px;
|
20 |
+
}
|
21 |
+
|
22 |
+
select {
|
23 |
+
margin-top: 20px;
|
24 |
+
width: 300px;
|
25 |
+
}
|
26 |
+
|
27 |
+
iframe {
|
28 |
+
margin-top: 20px;
|
29 |
+
}
|
30 |
+
</style>
|
31 |
<script>
|
32 |
// Define the function to change the source of the iframe
|
33 |
function changeIframeSrc() {
|
34 |
// Get the dropdown element
|
35 |
var dropdown = document.getElementById('urlDropdown');
|
36 |
+
|
37 |
// Get the selected URL
|
38 |
var selectedUrl = dropdown.options[dropdown.selectedIndex].value;
|
39 |
+
|
40 |
// Get the iframe element
|
41 |
var iframe = document.getElementById('urlIframe');
|
42 |
+
|
43 |
// Set the iframe source to the selected URL
|
44 |
iframe.src = selectedUrl;
|
45 |
}
|
46 |
</script>
|
47 |
</head>
|
48 |
<body>
|
49 |
+
<h2>Nomic Atlas</h2>
|
50 |
|
51 |
<select id="urlDropdown" onchange="changeIframeSrc()">
|
52 |
<option value="https://atlas.nomic.ai/map/6105b12f-1f45-4a29-9956-0cd0e157056c/3af6b843-bef6-4d3e-8ef5-dc76fd34b6a2">Quora Questions</option>
|