This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let entries = document.querySelectorAll('.entries_list > li'); | |
function s(a,b) { | |
const av = Number(a.querySelector('.vote_counter').innerText); | |
const bv = Number(b.querySelector('.vote_counter').innerText); | |
if(av < bv) { | |
return -1; | |
} else if(bv < av){ | |
return 1; | |
} else { | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lat = 36.527061; | |
const lng = -6.288596; | |
const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lng}¤t=temperature_2m,wind_speed_10m&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m`; | |
function mostrar(tiempo) { | |
//console.log(tiempo.current.temperature_2m) | |
//console.log(tiempo.hourly.time[68]) | |
//console.log(tiempo.hourly.temperature_2m[68]) | |
calcularTemperaturaMedia(tiempo, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lat = 36.527061; | |
const lng = -6.288596; | |
const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lng}¤t=temperature_2m,wind_speed_10m&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m`; | |
function mostrar(tiempo) { | |
//console.log(tiempo.current.temperature_2m) | |
//console.log(tiempo.hourly.time[68]) | |
//console.log(tiempo.hourly.temperature_2m[68]) | |
calcularTemperaturaMedia(tiempo, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = { | |
animals: [ | |
{ | |
id: '0938aa23-f153-4937-9f88-4858b24d6bce', | |
name: 'lions', | |
popularity: 4, | |
location: 'NE', | |
residents: [ | |
{ | |
name: 'Zena', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="no-js" lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>anim</title> | |
<link href="css/ws10.css" rel="stylesheet"/> | |
<style> | |
.playground{ | |
display: flex; |