diff --git a/Calendar/Calendar.js b/Calendar/Calendar.js index cbce685..84b3c5c 100644 --- a/Calendar/Calendar.js +++ b/Calendar/Calendar.js @@ -2225,8 +2225,85 @@ function showCalendar(month, year) { updateLinkAndImage(); // Initially update link and image fadeInOut(image); // Start fade-in/out animation // Start cycling events + // Pissmas 5 Day 1, 3 + } else if ((month === 10 && date === 29) ||(month === 11 && date === 1) && year === 2024) { + let link = document.createElement("a"); + link.href = "https://www.start.gg/tournament/pissmas-5/details"; + link.target = "_blank"; + + let image = document.createElement("img"); + image.src = "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F711199%2Fimage-13f747fdf4949ee152c280b5ad6213dc-optimized.png&ehk=B4KLu7um2O7wIzURoDP%2F1L8VLvwVop4KB47typTJpaQ%3D&w=280&h=280&r=0"; + + image.classList.add("calendarImg"); + + + link.appendChild(image); + cell.appendChild(link); + + // Pissmas Day 2 + WOL 9 + } else if(month === 10 && date === 30 && year === 2024) { + + const events = [ + { + link: "https://www.start.gg/tournament/pissmas-5/details", + imageSrc: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F711199%2Fimage-13f747fdf4949ee152c280b5ad6213dc-optimized.png&ehk=B4KLu7um2O7wIzURoDP%2F1L8VLvwVop4KB47typTJpaQ%3D&w=280&h=280&r=0" + + }, + { + link: "hhttps://www.start.gg/tournament/who-s-on-ledge-9/details", + imageSrc: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F724863%2Fimage-1e4b69c6abcfa56933f95f14b99a699d-optimized.png&ehk=1uODmbXgfa8XVKQ1Pb%2Be4ot%2Bz2sAYA0RCua9wWZcflI%3D&w=280&h=280&r=0" + } + + ]; + let currentIndex = 0; // Initialize current index + + let link = document.createElement("a"); + link.target = "_blank"; + + let image = document.createElement("img"); + + image.classList.add("calendarImg"); + + link.appendChild(image); + cell.appendChild(link); + + // Function to fade in/out the image and link + function fadeInOut(element) { + let opacity = 0; + let increasing = true; + let interval = setInterval(function() { + if (increasing) { + opacity += 0.05; + } else { + opacity -= 0.05; + } + element.style.opacity = opacity; + if (opacity >= 1) { + increasing = false; + setTimeout(() => { + increasing = true; + updateLinkAndImage(); // Update link and image after fully visible + }, 2000); // Image and link will be fully visible for 2 seconds before fading out + } else if (opacity <= 0) { + clearInterval(interval); + fadeInOut(element); // Restart the fading animation + } + }, 100); // Adjust the timing as needed + } + + // Function to update the link and image + function updateLinkAndImage() { + link.href = events[currentIndex].link; + image.src = events[currentIndex].imageSrc; + currentIndex = (currentIndex + 1) % events.length; // Move to the next event, looping back to the beginning if necessary + } + + updateLinkAndImage(); // Initially update link and image + fadeInOut(image); // Start fade-in/out animation // Start cycling events + + // CoB 2 + LL's HS } else if(month === 11 && date === 14 && year === 2024) { @@ -2287,10 +2364,25 @@ function showCalendar(month, year) { updateLinkAndImage(); // Initially update link and image fadeInOut(image); // Start fade-in/out animation // Start cycling events - + + // BTBBC2: LA + } else if (month === 11 && (date === 22) && year === 2024) { + // Example link with image + let link = document.createElement("a"); + link.href = "https://www.start.gg/tournament/bristol-s-the-basement-before-christmas-2-love-actually/details"; + link.target = "_blank"; - //Tennessee Summit - } else if (month === 0 && (date === 10 || date === 12) && year === 2025) { + let image = document.createElement("img"); + image.src = "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F734148%2Fimage-00d0282df9b5c493f4821289575651f5-optimized.png&ehk=M88s%2F4c%2FFI%2FoB6PWsQc4Mht2x1PACX6g6dJpnaoHlc4%3D&w=280&h=280&r=0"; + + image.classList.add("calendarImg"); + + + link.appendChild(image); + cell.appendChild(link); + + // TN Summit 2025 + } else if (month === 0 && (date === 10 || date === 12) && year === 2025) { // Example link with image let link = document.createElement("a"); link.href = "https://www.start.gg/tournament/tennessee-p-summit-2025/details"; @@ -2401,10 +2493,27 @@ function showCalendar(month, year) { link.appendChild(image); cell.appendChild(link); + + + // Winter is Crouching + } else if (month === 2 && (date === 1 || date === 2) && year === 2025) { + // Example link with image + let link = document.createElement("a"); + link.href = "https://www.start.gg/tournament/lust-50-a-louisiana-regional/details"; + link.target = "_blank"; + + let image = document.createElement("img"); + image.src = "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F687306%2Fimage-5618485cca829ee70b7125791593c3e2-optimized.png&ehk=qQc4jLdbvBzwuFG7iw%2BIaofHMDeQPOdtUyGDqI7HPDE%3D&w=280&h=280&r=0"; + + image.classList.add("calendarImg"); + + + link.appendChild(image); + cell.appendChild(link); - // Full Bloom -} else if (month === 3 && (date === 5 || date === 6) && year === 2025) { + // Full Bloom 2025 + } else if (month === 3 && (date === 5 || date === 6) && year === 2025) { // Example link with image let link = document.createElement("a"); link.href = "https://www.start.gg/tournament/full-bloom-2025/details"; @@ -2416,6 +2525,22 @@ function showCalendar(month, year) { image.classList.add("calendarImg"); + link.appendChild(image); + cell.appendChild(link); + + // Project D + } else if (month === 4 && (date === 17) && year === 2025) { + // Example link with image + let link = document.createElement("a"); + link.href = "https://www.start.gg/tournament/project-d/details"; + link.target = "_blank"; + + let image = document.createElement("img"); + image.src = "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F734216%2Fimage-ee3ee05c35dba007a95866d0be0d48da-optimized.png&ehk=yWRBbth3w%2BRzWsSxGEGuUudXJ15ui28vMkBOBEMevio%3D&w=280&h=280&r=0"; + + image.classList.add("calendarImg"); + + link.appendChild(image); cell.appendChild(link); diff --git a/index js/indexEventsList.js b/index js/indexEventsList.js index 1adc67d..9b317e4 100644 --- a/index js/indexEventsList.js +++ b/index js/indexEventsList.js @@ -118,28 +118,6 @@ eventName.appendChild(location); const eventsData = [ - { - name: "We Tech Those 23", - date: "11/23/24", - location: "Atlanta, GA, USA", - description: "Doors open @ 12pm $200 Pot Bonus for Melee Singles $100 Pot Bonus for Melee Doubles $50 Pot Bonus for P+ Bring a WORKING set up to get venue fee waived", - imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F730468%2Fimage-5042759ed1e0c6396e950c941292325f-optimized.png&ehk=t8cxrvEXSD%2BitLwqYlhgv%2BM5cAeHzhKRUPQbBQRF7AQ%3D&w=280&h=280&r=0", - link: "https://www.start.gg/tournament/we-tech-those-23-3/details", - rankImg: false, - trailer: "", - stream: "" - }, - { - name: "Game 5 In The D #6", - date: "11/23/24", - location: "Detroit, MI, USA", - description: "We welcome all valiant competitors to our local P+ scene's return-to-form! Featuring a professional stream, custom tournament badges, your favorite players, and much, much more, this will be an event you won't want to miss!", - imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F724520%2Fimage-4669a409e8ba16bc8416de03e4131603-optimized.jpg&ehk=Xw944yGxRrU5OozpQQLIyIMXO%2FrpdwImxM1DKXrGLak%3D&w=280&h=280&r=0", - link: "https://www.start.gg/tournament/game-5-in-the-d-6/details", - rankImg: false, - trailer: "", - stream: "" - }, { name: "Pissmas 5", date: "11/29/24 - 12/1/24", @@ -151,6 +129,17 @@ const eventsData = [ trailer: "", stream: "" }, + { + name: "Who's On Ledge? 9", + date: "11/30/24", + location: "Des Moines, IA, USA", + description: "DMGC presents Who's on Ledge? Our monthly tournament series featuring Super Smash Bros. Melee, Ultimate, Project+, and Rivals of Aether II at RezBlue Arena!", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F724863%2Fimage-1e4b69c6abcfa56933f95f14b99a699d-optimized.png&ehk=1uODmbXgfa8XVKQ1Pb%2Be4ot%2Bz2sAYA0RCua9wWZcflI%3D&w=280&h=280&r=0", + link: "https://www.start.gg/tournament/who-s-on-ledge-9/details", + rankImg: false, + trailer: "", + stream: "" + }, { name: "Condo of Blood 2", date: "12/14/24", @@ -173,6 +162,17 @@ const eventsData = [ trailer: "", stream: "" }, + { + name: "Bristol's The Basement Before Christmas 2: love actually", + date: "12/22/24", + location: "Bristol, UK", + description: "Bristol's premier Melee monthly is back for another very special event! We decided the last Sunday of this month would be inconvenient for most people, as it falls between Christmas and New Years and we know most people will be with family, so we're running a more laid back, side-event focused tournament.", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F734148%2Fimage-00d0282df9b5c493f4821289575651f5-optimized.png&ehk=M88s%2F4c%2FFI%2FoB6PWsQc4Mht2x1PACX6g6dJpnaoHlc4%3D&w=280&h=280&r=0", + link: "https://www.start.gg/tournament/bristol-s-the-basement-before-christmas-2-love-actually/details", + rankImg: false, + trailer: "", + stream: "" + }, { name: "Tennessee P+ Summit 2025", date: "1/10/25 - 1/12/25", @@ -216,6 +216,17 @@ const eventsData = [ rankImg: true, trailer: "", stream: "" + }, + { + name: "Winter is Crouching", + date: "3/1/25 - 3/2/25", + location: "Le Kremlin-Bicêtre, Paris, France", + description: "Muahahaha! Are you ready for winter? Winter is crouching ❄️❄️❄️ On the program: Project+ of course, we love illegal games 😈, but also Melee and Rivals of Aether 2 hehe", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F687306%2Fimage-5618485cca829ee70b7125791593c3e2-optimized.png&ehk=qQc4jLdbvBzwuFG7iw%2BIaofHMDeQPOdtUyGDqI7HPDE%3D&w=280&h=280&r=0", + link: "https://www.start.gg/tournament/lust-50-a-louisiana-regional/details", + rankImg: true, + trailer: "", + stream: "" }, { name: "Full Bloom 2025", @@ -228,6 +239,17 @@ const eventsData = [ trailer: "https://www.youtube.com/watch?v=oCO0FoZf6VU", stream: "" }, + { + name: "Project D", + date: "5/17/25", + location: "Birmingham, UK", + description: "It's time for the biggest P+ tournament in the UK since Not Fête back in 2023! This is an 18+ event", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F734216%2Fimage-ee3ee05c35dba007a95866d0be0d48da-optimized.png&ehk=yWRBbth3w%2BRzWsSxGEGuUudXJ15ui28vMkBOBEMevio%3D&w=280&h=280&r=0", + link: "https://www.start.gg/tournament/project-d/details", + rankImg: false, + trailer: "", + stream: "" + }, { name: "Blacklisted 9", date: "TBA", diff --git a/past-events/pastEvents2024.js b/past-events/pastEvents2024.js index 2611a1e..cff50ba 100644 --- a/past-events/pastEvents2024.js +++ b/past-events/pastEvents2024.js @@ -110,6 +110,32 @@ function createPastEventElement(eventData) { // Sample data for past event const eventData = [ + { + eventTitle: "Game 5 In The D #6", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F724520%2Fimage-4669a409e8ba16bc8416de03e4131603-optimized.jpg&ehk=Xw944yGxRrU5OozpQQLIyIMXO%2FrpdwImxM1DKXrGLak%3D&w=280&h=280&r=0", + eventUrl: "https://www.start.gg/tournament/game-5-in-the-d-6/details", + date: "November 23 2024", + location: "Michigan", + entrants: 14, + first: "Dirtboy", + second: "Lordy", + third: "Lord Wavy", + vodsUrl: "", + hideRankImage: true + }, + { + eventTitle: "We Tech Those 23", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F730468%2Fimage-5042759ed1e0c6396e950c941292325f-optimized.png&ehk=t8cxrvEXSD%2BitLwqYlhgv%2BM5cAeHzhKRUPQbBQRF7AQ%3D&w=280&h=280&r=0", + eventUrl: "https://www.start.gg/tournament/we-tech-those-23-3/details", + date: "November 23 2024", + location: "Georgia", + entrants: 7, + first: "moxi", + second: "natebug01", + third: "C$", + vodsUrl: "", + hideRankImage: true + }, { eventTitle: "CYBERSPACE", imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F728384%2Fimage-d4170301e00b22b265f653acb7ca56bc-optimized.png&ehk=zfmxmiR6oSlhYnUgnPXKVjv5Zn9LgOI7tUwTwES8QU8%3D&w=280&h=280&r=0",