diff --git a/index.html b/index.html
index 4f1f82f..ee6c816 100644
--- a/index.html
+++ b/index.html
@@ -17,6 +17,7 @@
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous">
+
@@ -41,7 +42,10 @@
Índice
diff --git a/js/fondo.js b/js/fondo.js
index 73282e8..11e8ef5 100644
--- a/js/fondo.js
+++ b/js/fondo.js
@@ -4,4 +4,20 @@ class Fondo{
this.nombre_capital = nombre_capital;
this.coords = coords;
}
+
+ setFondo() {
+ var flickrAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
+ $.getJSON(flickrAPI,
+ {
+ tags: this.nombre_capital,
+ tagmode: "any",
+ format: "json"
+ })
+ .done(function(data) {
+ $.each(data.items, function(item) {
+ $("body").css("background-image", item);
+ return;
+ });
+ });
+ }
}
\ No newline at end of file
diff --git a/js/pais.js b/js/pais.js
index 9ccf656..a6601cb 100644
--- a/js/pais.js
+++ b/js/pais.js
@@ -33,6 +33,10 @@ class Pais {
return this.religion;
}
+ getCoords(){
+ return this.coords_capital;
+ }
+
getExtraInfo(){
return "" +
"- " + "Población: " + this.poblacion + "
" +
diff --git a/meteorologia.html b/meteorologia.html
index 5ef2b24..fd40013 100644
--- a/meteorologia.html
+++ b/meteorologia.html
@@ -38,7 +38,7 @@ Meteorología