x x x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<!-- REBRAND STYLING -->
<style>
.wiki-content #announcementcontainer {
  background-color: #d7b8f7#f3f1eb !important;
}

.wiki-content #announcementcontainer .announcementcard .card-subtitle {
  color: black !important;
}

.wiki-content #announcementcontainer .announcementcard .card-description {
  color: black !important;
}

.wiki-content .ev-cards-section .ev-cards-section-title#announcementcontainer .announcementcard a {
  color: black !important;
}

.wiki-content #announcementcontainer .announcementcard a {
  color border: blacknone !important;
  border-bottom: 1px solid black !important;
}

.change-slide-button {
  borderpadding: none0 !important;
}

div#my-watchlist-container {
  backgroundwidth: #f2b006auto !important;
}

div#all-events.wiki-content .ev-cards-section .ev-cards-section-title {
  backgroundcolor: #006920black !important;
}

h2#CopyofDashboardRebrand-AllEvents.change-slide-button {
  colorborder: whitenone !important;
}

.active, .cdot:hover div#my-watchlist-container {
  background-color: #1c662e#f2b006 !important;
}

.wikidiv#all-content .ev-search-container events {
  background-color: #6797f3#006920 !important;
}

.wikih2#CopyofDashboardRebrand-content #events-searchbar {AllEvents {
  backgroundcolor: #113867white !important;
  border: 1px solid #113867 !important;
}

.countryFilterContainer.active, .cdot:hover {
  borderbackground-color: 1px solid #113867#1c662e !important;
}

.countryFilterContainer #country-placeholderwiki-content .ev-search-container {
  background-color: #113867#6797f3 !important;
}

#startdate, #enddate.wiki-content #events-searchbar {
  background: #113867 !important;
  border: 1px solid #113867 !important;
}

.dateFiltercountryFilterContainer {
  colorborder: #1138671px solid #113867 !important;
}

.wiki-content .ev-cards-outer-containercountryFilterContainer #country-placeholder {
  paddingbackground: 0px#113867 !important;
}

.eventcard#startdate, #enddate {
  background: #113867 !important;
  border: 1px solid #113867 !important;
}

div#my-watchlist-container.dateFilter {
  backgroundcolor: #f2b006#113867 !important;
}

div#all-events.wiki-content .ev-cards-outer-container {
  backgroundpadding: #0069200px !important;
}

h2#CopyofDashboardRebrand-AllEvents.eventcard {
  color: border: 1px solid #113867 !important;
}

div#my-watchlist-container {
  background: #f2b006 !important;
}

div#all-events {
  background: #006920 !important;
}

h2#CopyofDashboardRebrand-AllEvents {
  color: white !important;
}

#my-watchlist-container #no-watchlist-yet-message {
  background-color: #113867 !important;
}
</style>

...

HTML
 <script>

  const getMinutesUntilEventStart = (startDate) => {
    let nowDate = new Date();
    let eventStartDate = new Date(startDate);

    let diffMilliseconds = eventStartDate.getTime() - nowDate.getTime();
    let diffMinutes =  (diffMilliseconds / 60000);

    return diffMinutes;
  }

  const getMinutesUntilEventEnd = (endDate) => {
    let nowDate = new Date();
    let eventEndDate = new Date(endDate);

    let diffMilliseconds = eventEndDate.getTime() - nowDate.getTime();
    let diffMinutes =  (diffMilliseconds / 60000);

    return diffMinutes;
  }

  const showPastWatchIndicators = () => {
	let pastEvents = document.getElementById('scroll-section-3');
    let pastCards = Array.from(pastEvents.getElementsByClassName('eventcard'));

	for (let i = 0; i < pastCards.length; i++) {
      let currCard = pastCards[i];
	
	  // Check if event was offline 
	  if (currCard.dataset.offline == "true") {
		continue
	  }

      let liveEl = document.createElement("div");
      liveEl.classList.add('watch-indicator');
      liveEl.innerHTML = "<img class='watch-indicator-icon' src='/download/attachments/81517767/playicon.png?api=v2' /> RECORDED";
      currCard.insertAdjacentElement('afterbegin', liveEl);
    }

	let allEvents = document.getElementById('all-events');
	let allCards = Array.from(allEvents.getElementsByClassName('eventcard'));

	for (let i = 0; i < allCards.length; i++) {
	  let currCard = allCards[i];
      let currCardEnd = currCard.dataset.enddate;
      let minsTilEnd = getMinutesUntilEventEnd(currCardEnd);
	  if (minsTilEnd < 0) {
		// Check if event was offline 
	    if (currCard.dataset.offline == "true") {
		  continue
	    }
		let liveEl = document.createElement("div");
		liveEl.classList.add('watch-indicator');
		liveEl.innerHTML = "<img class='watch-indicator-icon' src='/download/attachments/81517767/playicon.png?api=v2' /> RECORDED";
		currCard.insertAdjacentElement('afterbegin', liveEl);
	  } else {
		// Live now or upcoming (show live indicator if minsTilStart <= 0)
		let currCardStart = currCard.dataset.startdate;
		let minsTilStart = getMinutesUntilEventStart(currCardStart);
		if (minsTilStart <= 0) {
			// Check if event is offline 
	    	if (currCard.dataset.offline == "true") {
		  		continue;
	    	}
			let liveEl = document.createElement("div");
        	liveEl.classList.add('live-circle');
        	liveEl.innerText = "LIVE";
        	currCard.insertAdjacentElement('afterbegin', liveEl);
		}
	  }
	}
  }

  window.addEventListener('load', () => {
    let upcomingEvents = document.getElementById('upcoming-events-section');
    let upcomingCards = Array.from(upcomingEvents.getElementsByClassName('eventcard'));

    for (let i = 0; i < upcomingCards.length; i++) {
      let currCard = upcomingCards[i];
      let currCardStart = currCard.dataset.startdate;
      let minsTilStart = getMinutesUntilEventStart(currCardStart);

      if (minsTilStart <= 0) {
		// Check if event is offline 
	    if (currCard.dataset.offline == "true") {
		  	continue;
	    }
        let liveEl = document.createElement("div");
        liveEl.classList.add('live-circle');
        liveEl.innerText = "LIVE";
        currCard.insertAdjacentElement('afterbegin', liveEl);
      }  
    }
	
	//if (AJS.params.remoteUser == "alex@gsvlabs.com") {
		showPastWatchIndicators()
	//}
  });
</script>
<style>
  .live-circle {
    font-size: 13px;
    padding: 3px 18px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #cc1f1f;
    color: white;
    position: absolute;
    z-index: 2;
    margin: 8px 8px;
    box-shadow: 1px 1px 5px #00000054;
  }
</style>

<style>
  .watch-indicator {
    font-size: 12px;
    padding: 3px 10px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #036bc4;
    color: white;
    position: absolute;
    z-index: 2;
    margin: 8px 8px;
    box-shadow: 1px 1px 5px #00000054;
	border-radius: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  .watch-indicator-icon {
	display: block;
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px;
    padding-bottom: 2px;
  }
</style>


HTML
<style>

.wiki-content #announcementcontainer .announcementcard a {
  color: black !important;
  border: none;
  border-bottom: 1px solid black !important;
  padding: 0;
  width: auto;
}

</style>