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
<style>
#unpublished-events .conf-macro.output-block[data-macro-name=confiform-cleanview] {
    padding: 0px 35px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    grid-gap: 20px;
    height: auto !important;
    justify-content: space-evenly;
}
</style>


HTML
 <script>
  
const getMinutesUntilEventStartshowPastWatchIndicators = (startDate) => {
    	let nowDatepastEvents = new Date(document.getElementById('scroll-section-3');
    let eventStartDatepastCards = new Date(startDateArray.from(pastEvents.getElementsByClassName('eventcard'));

	for (let i = let0; diffMillisecondsi =< eventStartDate.getTime() - nowDate.getTime();
pastCards.length; i++) {
      let diffMinutescurrCard =  (diffMilliseconds / 60000)pastCards[i];

    return diffMinutes;
 let }

liveEl = windowdocument.addEventListener('load', () => {
createElement("div");
      let upcomingEvents = document.getElementByIdliveEl.classList.add('scrollwatch-section-1indicator');
     let upcomingCardsliveEl.innerText = Array.from(upcomingEvents.getElementsByClassName('eventcard'));
"WATCH RECORDING";
      currCard.insertAdjacentElement('afterbegin', liveEl);
    for (let i = 0; i < upcomingCards.length; i++) }
}

  const getMinutesUntilEventStart = (startDate) => {
      let currCardnowDate = upcomingCards[i] new Date();
      let currCardStarteventStartDate = currCard.dataset.startdatenew Date(startDate);

    let diffMilliseconds let minsTilStart = getMinutesUntilEventStart(currCardStart= eventStartDate.getTime() - nowDate.getTime();

    let diffMinutes = if (minsTilStartdiffMilliseconds <=/ 060000);

 {
   return diffMinutes;
  }

  let liveElwindow.addEventListener('load', () = document.createElement("div");
        liveEl.classList.add('live-circle')> {
    let upcomingEvents = document.getElementById('scroll-section-1');
    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) {
        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 13px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #cc1f1f;
    color: white;
   liveEl.innerText = "LIVE"position: absolute;
    z-index: 2;
   currCard.insertAdjacentElement('afterbegin', liveEl) margin: 8px 8px;
    box-shadow: 1px }1px 5px #00000054;
  }
</style>
<script>

if  }
  });(AJS.params.remoteUser == "alex@gsvlabs.com") {

// #7ac1b6


}


</script>

<style>
  .livewatch-circleindicator {
    font-size: 13px;
    padding: 3px 13px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #cc1f1f#7ac1b6;
    color: white;
    position: absolute;
    z-index: 2;
    margin: 8px 8px;
    box-shadow: 1px 1px 5px #00000054;
  }
</style>

...