primer commit
This commit is contained in:
parent
56c5811350
commit
08094a3c96
|
|
@ -136,7 +136,7 @@ async function santoDelDia() {
|
||||||
const fechaISO = new Date(hoy - offset).toISOString().split('T')[0];
|
const fechaISO = new Date(hoy - offset).toISOString().split('T')[0];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch('../data/santos.json');
|
const res = await fetch('data/santos.json');
|
||||||
const listaSantos = await res.json();
|
const listaSantos = await res.json();
|
||||||
|
|
||||||
// Buscamos el santo usando el campo "fecha" de tu JSON
|
// Buscamos el santo usando el campo "fecha" de tu JSON
|
||||||
|
|
@ -163,7 +163,7 @@ async function visualizarSalmo() {
|
||||||
const salmoElem = document.getElementById('__salmo');
|
const salmoElem = document.getElementById('__salmo');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch('../data/salmos.json');
|
const res = await fetch('data/salmos.json');
|
||||||
if (!res.ok) throw new Error("No se pudo cargar el salmo");
|
if (!res.ok) throw new Error("No se pudo cargar el salmo");
|
||||||
|
|
||||||
const listaSalmos = await res.json();
|
const listaSalmos = await res.json();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue