Skip to content

Commit

Permalink
Add files
Browse files Browse the repository at this point in the history
  • Loading branch information
josejbocanegra committed Jul 9, 2024
1 parent c92b5a7 commit 26b442d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
48 changes: 27 additions & 21 deletions docs/colopendata/colopendata.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
function changeIframeSrc(newSrc) {
// Create a switch to change the iframe source
switch (newSrc) {
case 'datasets':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/climate';
break;
case 'divipola':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/divipola';
break;
case 'demograficos':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/download-demographic';
break;
case 'geoespaciales':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/download-geospatial';
break;
case 'clima':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/list-datasets';
break;
case 'proypoblacionales':
document.getElementById('myIframe').src = 'https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/population-projections';
break;
}
// Create a switch to change the iframe source
switch (newSrc) {
case "datasets":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/list-datasets";
break;
case "divipola":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/divipola";
break;
case "demograficos":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/download-demographic";
break;
case "geoespaciales":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/download-geospatial";
break;
case "clima":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/climate";
break;
case "proypoblacionales":
document.getElementById("myIframe").src =
"https://tracelac.uniandes.edu.co:3838/shiny-apps/colopendata/population-projections";
break;
}
}
5 changes: 3 additions & 2 deletions docs/epico/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@
</div>
</div>
<div class="column">
<button class="form-button">ENVIAR</button>
<button class="form-button" onclick="submit()">ENVIAR</button>
</div>
</div>
</div>
</div>
<div class="g-col-1"></div>
</div>

<!-- Seccion pasos -->
<div class="grid pasos-container">
<div class="g-col-1"></div>
Expand Down Expand Up @@ -295,5 +295,6 @@
<br />This work is part of the TRACE-LAC research project funded by the
International Research Centre (IDRC) Ottawa, Canada. [109848-001-].<br /><br />
</div>
<script src="main.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions docs/epico/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function submit() {
alert("Datos registrados correctamente.");
}

0 comments on commit 26b442d

Please sign in to comment.