From 9aa562a9a5498d0ccecb7346351713aea79b8f87 Mon Sep 17 00:00:00 2001 From: pkzstar Date: Fri, 27 Dec 2024 14:59:49 -0600 Subject: [PATCH] updates --- Calendar/Calendar.js | 16 ++++++++++++++++ index js/indexEventsList.js | 34 ++++++++++++---------------------- past-events/pastEvents2024.js | 28 +++++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 23 deletions(-) diff --git a/Calendar/Calendar.js b/Calendar/Calendar.js index cd038fe..f7948c6 100644 --- a/Calendar/Calendar.js +++ b/Calendar/Calendar.js @@ -2394,6 +2394,22 @@ function showCalendar(month, year) { image.classList.add("calendarImg"); + link.appendChild(image); + cell.appendChild(link); + + //SC invitational + } else if (month === 11 && (date === 28) && year === 2024) { + // Example link with image + let link = document.createElement("a"); + link.href = "https://www.start.gg/tournament/sc-p-2024-invitational/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%2F736576%2Fimage-599c24fd151b15cdce529dab4230ea4c-optimized.jpg&ehk=oRZ8IldqhidgsE7yWmkb4%2BHk8zw1SxjNiS4fSA4dWqI%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 acce199..7c70e87 100644 --- a/index js/indexEventsList.js +++ b/index js/indexEventsList.js @@ -117,28 +117,18 @@ eventName.appendChild(location); // Sample event data (replace this with actual event data) const eventsData = [ - { - name: "Gecko Cavern 8 - The Holiday Special", - date: "12/21/24", - location: "Burwood, NSW, Australia", - description: "Happy Holidays everyone! Gecko Cavern 8 is on its way! Hosted at Club Burwood along Burwood Road on the top floor of the venue, Gecko Cavern is the tournament series for Project Plus in Sydney! We also feature other games such as Melee, Rivals, and more! ", - imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F738073%2Fimage-420abd763db6b7810c89ef2065605ff1-optimized.png&ehk=MBjOzveFlZdIUDxVuNGUBFEAHrLZfXPCBfF%2BBWQWTeA%3D&w=280&h=280&r=0", - link: "https://www.start.gg/tournament/gecko-cavern-8-the-holiday-special/details", - rankImg: false, - 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: "" - }, + //needs moving + // { + // 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", diff --git a/past-events/pastEvents2024.js b/past-events/pastEvents2024.js index 150502e..4fc1fd9 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: "SC P+ 2024 Invitational", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F736576%2Fimage-599c24fd151b15cdce529dab4230ea4c-optimized.jpg&ehk=oRZ8IldqhidgsE7yWmkb4%2BHk8zw1SxjNiS4fSA4dWqI%3D&w=280&h=280&r=0", + eventUrl: "https://www.start.gg/tournament/sc-p-2024-invitational/details", + date: "December 28 2024", + location: "South Carolina", + entrants: 16, + first: "", + second: "", + third: "", + vodsUrl: "", + hideRankImage: true + }, + { + eventTitle: "Gecko Cavern 8", + imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F738073%2Fimage-420abd763db6b7810c89ef2065605ff1-optimized.png&ehk=MBjOzveFlZdIUDxVuNGUBFEAHrLZfXPCBfF%2BBWQWTeA%3D&w=280&h=280&r=0", + eventUrl: "https://www.start.gg/tournament/gecko-cavern-8-the-holiday-special/details", + date: "December 21 2024", + location: "Australia", + entrants: 21, + first: "RNGReallyNotGood", + second: "Michael", + third: "Goodie", + vodsUrl: "", + hideRankImage: true + }, { eventTitle: "Lexyloo's Holiday Special", imageUrl: "https://www.bing.com/th?pid=Sgg&qlt=100&u=https%3A%2F%2Fimages.start.gg%2Fimages%2Ftournament%2F729400%2Fimage-a51ee329476a3535bce01532c7bbdde5-optimized.png&ehk=kCVMsgzq6I6yWzQWkHp%2BxLUp5%2FIdtr2Van9ixAciDm8%3D&w=280&h=280&r=0", @@ -133,7 +159,7 @@ const eventData = [ first: "Dirtboy", second: "Blitz", third: "Krumpberry", - vodsUrl: "", + vodsUrl: "https://www.youtube.com/playlist?list=PLdxdm5Mb0WctwDLsN49Z6SpeZnOWZqSAo", hideRankImage: false }, {