Last active
September 8, 2023 03:45
-
-
Save JohnRDOrazio/983f5bc715ba81b8e624cbf200e6f1b8 to your computer and use it in GitHub Desktop.
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 liturgyToday = {}; | |
$.getJSON('https://www.johnromanodorazio.com/LiturgicalCalendar/LitCalEngine.php?diocesanpreset=DIOCESIDIROMA',function(data){ | |
for(const [key,entry] of Object.entries(data.LitCal)){ | |
let entryDate = new Date(entry.date * 1000); | |
if(entryDate.getUTCMonth() == new Date().getMonth() && entryDate.getUTCDate() == new Date().getDate()){ | |
liturgyToday[key] = entry; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment