From 68bedd7cf0365fe4eaee67f85fd16ed54856d4d4 Mon Sep 17 00:00:00 2001 From: glitchwhostolexmas Date: Mon, 6 Oct 2025 00:33:10 -0400 Subject: [PATCH 01/12] first commit and looking to add more styling --- .DS_Store | Bin 0 -> 6148 bytes css/style.css | 4 + index.html | 221 ++++++++++++++++++++++++++++++++++++++++++++++++++ js/main.js | 88 ++++++++++++++++++++ 4 files changed, 313 insertions(+) create mode 100644 .DS_Store create mode 100644 css/style.css create mode 100644 index.html create mode 100644 js/main.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5ef1bd8230c8cbc11652a82b08023e5220651a65 GIT binary patch literal 6148 zcmeH~!A=`75Qgm}fKx!qp&+6Yg)AGv(#<-`Cgc!B+B-Z2 zZ^6A1Z@>faB+S@@5=h{JsA%Pp?BDiyyzwX5&M?M!r58Ai6&Paz3To~HR8tK7SSBn( zBMYD$*GSraqB5 zp?9kKUboThC6z|!C-!PeMgBv(;U9#}e!cMVtBSjgFm85qKo~S(%C8?`9H@Rp_2MAW zv7T{=yvWxJtAl~FQ*w%O`%8IPl!LNUF3Qhao5NvVEUm5Yey{(ITCut?{5V`U+7?M4 z?A|g*qRjYJSiL1MM?a#NHy-{3C1uuBpr_Zf=?seiw#V4>5{<;i1 zdk08MWkgzXUWrt1W(rU}K8|zw?2|`0$v1-e)HemCj(GwSSXz4%0(6MP{F|(97qtW| zfq$6*-VYKAs!N(0)mH~pIt2jD!LT-HV=jR)lGG(lje-Y^n@~^_$|=R*CLG2k&2vdp zqb8hjNtCmrbb}|%>EJ37;I$;{8a+? D(h;<9 literal 0 HcmV?d00001 diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..73daf7b --- /dev/null +++ b/css/style.css @@ -0,0 +1,4 @@ +*{ + box-sizing: border-box; + background-color: bisque; +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..801a164 --- /dev/null +++ b/index.html @@ -0,0 +1,221 @@ + + + + + + + Holday Photo Generator + + + + + + + + +

+ + + + + + + \ No newline at end of file diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..7c28bf4 --- /dev/null +++ b/js/main.js @@ -0,0 +1,88 @@ +// alert('You are not the father') + +document.querySelector('button').addEventListener('click', getHolidays) + + +// This reload page on second click function was found through Google +let clickCount = 0; +const reloadSearch = document.querySelector('button'); + +// reloadSearch.addEventListener ('click', () => { +// clickCount++; + + +// if (clickCount === 2) { +// window.location.reload(); +// clickCount = 0; +// } + +// }); + +// https://holidayapi.com/v1/holidays?country=US&year=2024&month=12&pretty=true&key= +// THIS IS WHAT WORKS: https://holidayapi.com/v1/holidays?key=8280133f-761d-4c81-b63e-8e115fbe7aa0&country=US&year=2024&month=10&day=15 +// THIS WORKS V2: https://holidayapi.com/v1/holidays?key=8280133f-761d-4c81-b63e-8e115fbe7aa0&country=${countryText}&year=2024&month=09 +// &day=4 - what I took out from Day = +/* + if (data === null || data === undefined || (Array.isArray(data) && data.length === 0) || (typeof data === 'object' && Object.keys(data).length === 0)) { + console.log("No data returned from the server."); - GET THIS TO WORK +*/ + +// Here I was trying to figure out what to do to get a random photo each time + +// Michael Kazin helped me debug the getPhotos function here. +function getPhotos (holiday) { + const clientID = `yFREYlIwVmbzWttWfptvltsVEVSyq2i3xDqcbe-PWyM` + const query = document.querySelector('div').innerText + ' ' + document.querySelector('option:checked').textContent.split(' ')[0] + fetch(`https://api.unsplash.com/search/photos?page=1&query=${query}&client_id=${clientID}&count=3`) + .then(res => res.json()) + .then(data => { + console.log(data) + document.querySelector('img').src = data.results[0].urls.regular + document.querySelector('img').src = data.results[1].urls.regular + document.querySelector('img').src = data.results[2].urls.regular + }) + + + } + +function getHolidays() { + const countryText = document.getElementById('country').value + const holyMonth = document.getElementById('monyear').value + const api_url = "https://holidayapi.com/v1/holidays" + const apiKeyParam = '?key=' + const myKey = `8280133f-761d-4c81-b63e-8e115fbe7aa0` + const countryParam = `&country=` + const countryValue = countryText + const prettyParam = '&pretty=' + const pretty = true + const yearParam = `&year=` + const yearValue = "2024" + const monthParam = `&month=` + const monthValue = String(holyMonth).substring(5, 7) + const dayParam = `&day=` + const dayValue = String(holyMonth).substring(8, 10) + const url = api_url + apiKeyParam + myKey + countryParam + countryValue + yearParam + yearValue + monthParam + monthValue + const proxxyURL = 'https://api.allorigins.win/raw?url='; + encodeURIComponent(url) + // Shawn Holmes showed me how to use the encodeURIcomponent + + document.querySelector('p').innerHTML = '' + + fetch(`https://holidayapi.com/v1/holidays?key=${myKey}&country=${countryValue}&year=${yearValue}&month=${monthValue}&day=${dayValue}`) + // Justin Joshi helped me fix my fetch from the original structure I had in const url above. Justin also helped me set up the forEach function below. + .then(res => res.json()) + .then(data => { + console.log(data.holidays) + data.holidays.forEach((x, i) => { + document.querySelector('p').innerHTML += `
${data.holidays[i].name}
` + getPhotos (data.holidays[i]) + }) + + }) + // .catch(error => { + // // console.log(`error ${error}`); + // }) + +} + + + From 6e61e79552689a275c9f232caeb5fac9cc0132cd Mon Sep 17 00:00:00 2001 From: glitchwhostolexmas Date: Tue, 7 Oct 2025 00:13:21 -0400 Subject: [PATCH 02/12] second commit --- .DS_Store | Bin 6148 -> 6148 bytes css/style.css | 103 +++++++++++++++++++++++++++++++++++++++++++++++++- index.html | 6 +++ js/main.js | 40 ++++++++++++-------- 4 files changed, 132 insertions(+), 17 deletions(-) diff --git a/.DS_Store b/.DS_Store index 5ef1bd8230c8cbc11652a82b08023e5220651a65..04954fbcb0e7d71431110c04cf0d8ac89ece6b96 100644 GIT binary patch delta 251 zcmZoMXfc@JFD$^oz`)4BAi$8HoRpKF1mp>97UWpTtPYZ3W=LizW+?W|K}Z5c9f4Ty zKNv7DOy*(f;xsZaFxOEqH8GhypXF#M7egjP9zzO4DnkW>9zzC02}3SJ4w@P3k<9?I znHaLr?O~KfRx>$~wF6|2G0+}kQ=mQelMUHwbU7J<7+iraa$)cV(t1FfQc!JT>_(U} Mv2gunc8 + Holday Photo Generator +

Holiday Photo Generator

+

Directions: Select a Country and Day to Search For Holidays

+
+
+

diff --git a/js/main.js b/js/main.js index 7c28bf4..7ed874c 100644 --- a/js/main.js +++ b/js/main.js @@ -7,16 +7,18 @@ document.querySelector('button').addEventListener('click', getHolidays) let clickCount = 0; const reloadSearch = document.querySelector('button'); -// reloadSearch.addEventListener ('click', () => { -// clickCount++; +reloadSearch.addEventListener ('click', () => { + clickCount++; -// if (clickCount === 2) { -// window.location.reload(); -// clickCount = 0; -// } +if (clickCount === 2) { + const directions = document.getElementById("directions") + directions.innerHTML = 'Please refresh the page before trying again'; + // window.location.reload(); + clickCount = 0; +} -// }); +}); // https://holidayapi.com/v1/holidays?country=US&year=2024&month=12&pretty=true&key= // THIS IS WHAT WORKS: https://holidayapi.com/v1/holidays?key=8280133f-761d-4c81-b63e-8e115fbe7aa0&country=US&year=2024&month=10&day=15 @@ -35,14 +37,20 @@ function getPhotos (holiday) { const query = document.querySelector('div').innerText + ' ' + document.querySelector('option:checked').textContent.split(' ')[0] fetch(`https://api.unsplash.com/search/photos?page=1&query=${query}&client_id=${clientID}&count=3`) .then(res => res.json()) - .then(data => { - console.log(data) - document.querySelector('img').src = data.results[0].urls.regular - document.querySelector('img').src = data.results[1].urls.regular - document.querySelector('img').src = data.results[2].urls.regular + .then(data => { + data.results.forEach (result => { + const img = document.createElement('img') + img.src = result.urls.regular + document.querySelector('div').appendChild(img) + // document.createElement('img').src += data.results[i].urls.regular + // document.querySelector('div').appendChild('img') + // document.querySelector('img').src = data.results[1].urls.regular + data.results[1].urls.regular + data.results[2].urls.regular + // document.querySelector('img').src = data.results[1].urls.regular + // document.querySelector('img').src = data.results[2].urls.regular }) - - + // Sarah Yu helped me debug the function above. + +}) } function getHolidays() { @@ -65,7 +73,7 @@ function getHolidays() { const proxxyURL = 'https://api.allorigins.win/raw?url='; + encodeURIComponent(url) // Shawn Holmes showed me how to use the encodeURIcomponent - document.querySelector('p').innerHTML = '' + // document.querySelector('p').innerHTML = '' fetch(`https://holidayapi.com/v1/holidays?key=${myKey}&country=${countryValue}&year=${yearValue}&month=${monthValue}&day=${dayValue}`) // Justin Joshi helped me fix my fetch from the original structure I had in const url above. Justin also helped me set up the forEach function below. @@ -73,7 +81,7 @@ function getHolidays() { .then(data => { console.log(data.holidays) data.holidays.forEach((x, i) => { - document.querySelector('p').innerHTML += `
${data.holidays[i].name}
` + document.querySelector('h2').innerHTML += `
${data.holidays[i].name}
` getPhotos (data.holidays[i]) }) From 7aa2fe7b3f4e68ecc07a6b60bbc4f1c3bda3dd3c Mon Sep 17 00:00:00 2001 From: glitchwhostolexmas Date: Tue, 7 Oct 2025 16:52:30 -0400 Subject: [PATCH 03/12] third commit with changes made for portfolio consideration --- css/style.css | 23 ++++++++--------- index.html | 4 +-- js/main.js | 68 +++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 64 insertions(+), 31 deletions(-) diff --git a/css/style.css b/css/style.css index 43db9d8..e01b0c7 100644 --- a/css/style.css +++ b/css/style.css @@ -30,7 +30,7 @@ section{ } -div{ +p{ overflow: auto; white-space: nowrap; padding: 10px; @@ -53,18 +53,14 @@ label{ font-size: 130%; } -div h2{ - /* float: left; - clear:both; */ - grid-row-start: 1; - transform: translate(-10%); -} -p{ - background-color: #333; +.holidayname { + color: red; + font-size: 2em; + text-align: center; } -div img { +p img { /* display: inline-flex; flex-direction: row; */ padding: 10px; @@ -97,9 +93,14 @@ div img { margin-top: 3%; } - div{ + p{ color: red; font-size: 1.5em; } + label{ + text-align: center; + margin-bottom: 2%; + } + } \ No newline at end of file diff --git a/index.html b/index.html index c765b79..14f68db 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - Holday Photo Generator + Holiday Photo Generator @@ -216,7 +216,7 @@

Directions: -

+

diff --git a/js/main.js b/js/main.js index 7ed874c..939d179 100644 --- a/js/main.js +++ b/js/main.js @@ -1,24 +1,49 @@ // alert('You are not the father') -document.querySelector('button').addEventListener('click', getHolidays) +// Gus Prevas helped me design the function below which in a future version I will use to get dates with holidays embedded into a calendar. +addEventListener('load', getAllDates) +document.getElementById('country').addEventListener('change', getAllDates) -// This reload page on second click function was found through Google -let clickCount = 0; -const reloadSearch = document.querySelector('button'); +function getAllDates () { + const countryText = document.getElementById('country').value + const api_url = "https://holidayapi.com/v1/holidays" + const apiKeyParam = '?key=' + const myKey = `8280133f-761d-4c81-b63e-8e115fbe7aa0` + const countryParam = `&country=` + const countryValue = countryText + const prettyParam = '&pretty=' + const pretty = true + const yearParam = `&year=` + const yearValue = "2024" -reloadSearch.addEventListener ('click', () => { - clickCount++; + fetch(`https://holidayapi.com/v1/holidays?key=${myKey}&country=${countryValue}&year=${yearValue}`) + .then(res => res.json()) + .then(data => { + console.log(data.holidays) + }) +} + +/* +On-Load Function +- Event Listener for Afgh. that takes in all of the holidays/holiday list +Dynamically integrate them into calendar +2nd Event Listener for changing of the country +Dynamically integrate selected country holiday list into calendar +Function can cover both instances at once + + + +*/ + + +document.querySelector('button').addEventListener('click', getHolidays) -if (clickCount === 2) { - const directions = document.getElementById("directions") - directions.innerHTML = 'Please refresh the page before trying again'; - // window.location.reload(); - clickCount = 0; -} -}); + +// This reload page on second click function was found through Google + // https://holidayapi.com/v1/holidays?country=US&year=2024&month=12&pretty=true&key= // THIS IS WHAT WORKS: https://holidayapi.com/v1/holidays?key=8280133f-761d-4c81-b63e-8e115fbe7aa0&country=US&year=2024&month=10&day=15 @@ -34,14 +59,17 @@ if (clickCount === 2) { // Michael Kazin helped me debug the getPhotos function here. function getPhotos (holiday) { const clientID = `yFREYlIwVmbzWttWfptvltsVEVSyq2i3xDqcbe-PWyM` - const query = document.querySelector('div').innerText + ' ' + document.querySelector('option:checked').textContent.split(' ')[0] + const query = holiday.name + ' ' + document.querySelector('option:checked').textContent.split(' ')[0] + + // document.querySelector('p').innerHTML = '' + fetch(`https://api.unsplash.com/search/photos?page=1&query=${query}&client_id=${clientID}&count=3`) .then(res => res.json()) .then(data => { data.results.forEach (result => { const img = document.createElement('img') img.src = result.urls.regular - document.querySelector('div').appendChild(img) + document.querySelector('p').appendChild(img) // document.createElement('img').src += data.results[i].urls.regular // document.querySelector('div').appendChild('img') // document.querySelector('img').src = data.results[1].urls.regular + data.results[1].urls.regular + data.results[2].urls.regular @@ -73,7 +101,8 @@ function getHolidays() { const proxxyURL = 'https://api.allorigins.win/raw?url='; + encodeURIComponent(url) // Shawn Holmes showed me how to use the encodeURIcomponent - // document.querySelector('p').innerHTML = '' + document.querySelector('p').innerHTML = '' +// Gus Prevas also helped me debug a couple small issues in this function including making it so that you can enter search items consistently without manually having to refresh. fetch(`https://holidayapi.com/v1/holidays?key=${myKey}&country=${countryValue}&year=${yearValue}&month=${monthValue}&day=${dayValue}`) // Justin Joshi helped me fix my fetch from the original structure I had in const url above. Justin also helped me set up the forEach function below. @@ -81,9 +110,13 @@ function getHolidays() { .then(data => { console.log(data.holidays) data.holidays.forEach((x, i) => { - document.querySelector('h2').innerHTML += `
${data.holidays[i].name}
` + document.getElementById('holidayname').innerHTML = data.holidays[i].name getPhotos (data.holidays[i]) }) + if (data.holidays.length === 0) { + console.log("No data returned from the server."); + document.getElementById('holidayname').innerHTML = 'No Holiday On This Date' + } }) // .catch(error => { @@ -93,4 +126,3 @@ function getHolidays() { } - From 7bd1a55c16b2a0de2a3088292c3956c379b98dfa Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:16:13 -0500 Subject: [PATCH 04/12] Update README.md --- README.md | 73 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index d8d6388..3ecd1d6 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,63 @@ -# 📊 Project: Complex API +# Compilr -### Goal: Use data returned from one api to make a request to another api and display the data returned +A full-stack Node.js and Express web application that allows users to compile their content they would like to see later into one sleek social feed. -### How to submit your code for review: +## [Live Demo](https://compilr-draft.onrender.com) -- Fork and clone this repo -- Create a new branch called answer -- Checkout answer branch -- Push to your fork -- Issue a pull request -- Your pull request description should contain the following: - - (1 to 5 no 3) I completed the challenge - - (1 to 5 no 3) I feel good about my code - - Anything specific on which you want feedback! +## Table of Contents +1. [Project Overview](#project-overview) +2. [Features](#features) +3. [Technologies Used](#technologies-used) +4. [Installation](#installation) +5. [Usage](#usage) -Example: +## Project Overview + +Compiler is a full-stack web application where users can send content from their social media applications to view in one media feed entirely curated by them. +Compilr + +## Features + +-Add items from any link and parse information. +-View logged items in user-friendly display and use it to access links. +-Organize items in custom feeds. +-Update/delete informaton within items. + +## Technologies Used + + VS Code JavaScript HTML5 CSS3 NodeJS ExpressJS MongoDBGit + +## Installation + +1. Clone the repository: + +```bash +git clone https://github.com/yourusername/Compilr-Draft.git +```` + +2. Navigate to the project directory: + +```bash +cd demo-day-draft +``` + +3. Install Dependencies: +```bash +npm install ``` -I completed the challenge: 5 -I feel good about my code: 4 -I'm not sure if my constructors are setup cleanly... +4. Start the server: +```bash +npm run dev ``` +5. Open your browser and go to: +```bash +http://localhost:6001 +``` + +## Usage + +1. Add a new submission by entering a link of your choice. +2. Submit the item and watch as it is added to the feed. +3. Use custom feeds to sort items to the feed of your choice. +4. Click the 🗑️ trash icon to delete items. + From d5a97909d00ff807fc83c8e0d83088368b7538ce Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:26:41 -0500 Subject: [PATCH 05/12] Update README.md --- README.md | 48 +++++++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 3ecd1d6..6ad9359 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A full-stack Node.js and Express web application that allows users to compile their content they would like to see later into one sleek social feed. -## [Live Demo](https://compilr-draft.onrender.com) +## [Live Demo](https://jj-javascript.github.io/Holiday-Photo-Generator/) ## Table of Contents 1. [Project Overview](#project-overview) @@ -13,51 +13,45 @@ A full-stack Node.js and Express web application that allows users to compile th ## Project Overview -Compiler is a full-stack web application where users can send content from their social media applications to view in one media feed entirely curated by them. -Compilr +The Holiday Photo Generator is an application that uses APIs to show users photos of holidays around the world. +Holiday Photo Generator ## Features --Add items from any link and parse information. --View logged items in user-friendly display and use it to access links. --Organize items in custom feeds. --Update/delete informaton within items. - +- Input date and country +- Receive photos of that holiday + ## Technologies Used - VS Code JavaScript HTML5 CSS3 NodeJS ExpressJS MongoDBGit +VS Code +JavaScript +HTML5 +CSS3 +NodeJS +ExpressJS +MongoDB +Git ## Installation 1. Clone the repository: ```bash -git clone https://github.com/yourusername/Compilr-Draft.git +git clone https://github.com/yourusername/Holiday-Photo-Generator.git ```` 2. Navigate to the project directory: ```bash -cd demo-day-draft +cd holiday-photo-generator ``` -3. Install Dependencies: -```bash -npm install -``` -4. Start the server: -```bash -npm run dev -``` -5. Open your browser and go to: -```bash -http://localhost:6001 -``` +3. Open Project File +4. Use in browser ## Usage -1. Add a new submission by entering a link of your choice. -2. Submit the item and watch as it is added to the feed. -3. Use custom feeds to sort items to the feed of your choice. -4. Click the 🗑️ trash icon to delete items. +1. Add a new submission by entering country and date. +2. If there is a holiday on that day, receive photos of the holiday. +3. Repeat as many times as desired. From 2bbe825e409dfd76c9cc22b4c69dcd242e412c1b Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:27:33 -0500 Subject: [PATCH 06/12] Update README.md --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6ad9359..851c915 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,8 @@ The Holiday Photo Generator is an application that uses APIs to show users photo ## Technologies Used -VS Code -JavaScript -HTML5 -CSS3 -NodeJS -ExpressJS -MongoDB -Git +VS Code JavaScript HTML5 CSS3 +a href="https://git-scm.com/" target="_blank" rel="noreferrer">Git ## Installation From 1819756879f19a71dbed5ec8828b9f6cc06682d1 Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:27:47 -0500 Subject: [PATCH 07/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 851c915..7958514 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The Holiday Photo Generator is an application that uses APIs to show users photo ## Technologies Used -VS Code JavaScript HTML5 CSS3 +VS Code JavaScript HTML5 CSS3 a href="https://git-scm.com/" target="_blank" rel="noreferrer">Git ## Installation From 4abb86889797b912966449ccc04ed1a7b4ab615e Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:28:36 -0500 Subject: [PATCH 08/12] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7958514..994cf39 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ The Holiday Photo Generator is an application that uses APIs to show users photo ## Technologies Used -VS Code JavaScript HTML5 CSS3 -a href="https://git-scm.com/" target="_blank" rel="noreferrer">Git +VS Code JavaScript HTML5 CSS3 Git ## Installation From db8c3cb03515b250d334862d905e2a607438b351 Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Mon, 10 Nov 2025 21:54:37 -0500 Subject: [PATCH 09/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 994cf39..5375799 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Compilr +# Holiday Photo Generator -A full-stack Node.js and Express web application that allows users to compile their content they would like to see later into one sleek social feed. +An application compiling APIs to show users photos of holidays around the world. ## [Live Demo](https://jj-javascript.github.io/Holiday-Photo-Generator/) From e513e92a531464427bcd7c95bcfe7282637b6ff0 Mon Sep 17 00:00:00 2001 From: glitchwhostolexmas Date: Fri, 23 Jan 2026 14:42:13 -0500 Subject: [PATCH 10/12] changing year --- .DS_Store | Bin 6148 -> 0 bytes index.html | 2 +- js/main.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 04954fbcb0e7d71431110c04cf0d8ac89ece6b96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK!EVz)5S>i|by^|i02Lf6S>hUnq)COUUfkeH<-nz`-~cGZan!ij-Y9kmQWVK| z_zHf2Gj}BZfDhnDU}krsCTYqAscO-VwEK2h+(ZP%PcKyJ2luTh?1|ASYhd&BkfFJ92AILv}*6QTC=J>-EZty?N)PlHY-~X z9zQua>Aa8PM1In&3w$XlyT>?(&)DGQL}v}JC*$GVb>WGn>+(XaFTXmc-;aL~C7c(_ z;4j|c;Hp_ac%vke$r;W>PqzsnBoII!K0*x!kUOVQt-#=QWRM7%&W69|QD$u(1$2jJZbj>cC1}0T4?#tPI=g;~&wc0Yrx}*N7u% zLZ>3?RKZsa!FLCt)6ws6e6CTagHXSW^YAYVzM%-ddI(#EgK#vO+Av@kSZ1K8yA?YB zkFLJ|FDIFvVZbo(Uojv`uIILKNqn|mS{$9VHkNl-$S5w?s8X=v<5)H5D1L}V8TxE$ WAUce>MjSyi9|DR7QyB)Xm4QF9{Nly{ diff --git a/index.html b/index.html index 14f68db..f454c1f 100644 --- a/index.html +++ b/index.html @@ -213,7 +213,7 @@

Directions: - +

diff --git a/js/main.js b/js/main.js index 939d179..e3377eb 100644 --- a/js/main.js +++ b/js/main.js @@ -15,7 +15,7 @@ function getAllDates () { const prettyParam = '&pretty=' const pretty = true const yearParam = `&year=` - const yearValue = "2024" + const yearValue = "2025" fetch(`https://holidayapi.com/v1/holidays?key=${myKey}&country=${countryValue}&year=${yearValue}`) .then(res => res.json()) @@ -92,7 +92,7 @@ function getHolidays() { const prettyParam = '&pretty=' const pretty = true const yearParam = `&year=` - const yearValue = "2024" + const yearValue = "2025" const monthParam = `&month=` const monthValue = String(holyMonth).substring(5, 7) const dayParam = `&day=` From 5c9d9fb5ccc87ba3286f0094c7694712d9d5082a Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Fri, 23 Jan 2026 15:01:35 -0500 Subject: [PATCH 11/12] Add GitHub Actions workflow for Jekyll deployment This workflow automates the build and deployment of a Jekyll site to GitHub Pages, triggered on pushes to the 'answer' branch. --- .github/workflows/jekyll-gh-pages.yml | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/jekyll-gh-pages.yml diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml new file mode 100644 index 0000000..1706832 --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,51 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: ["answer"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 02248933a64ddc0bd071f4ffeeec754127cc56ae Mon Sep 17 00:00:00 2001 From: Justin Jimenez Date: Fri, 23 Jan 2026 15:06:26 -0500 Subject: [PATCH 12/12] Update README.md