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.
Comment: Reverted from v. 102


HTML
<script<link rel="stylesheet" type="text/javascriptcss" srchref="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/jsstylesheets/ewcEWC/eventsDashboardScript.js?v=5"></script>
HTML
<link rel="stylesheet"eventsDashboardStylesheet.css" />

<script type="text/cssjavascript" hrefsrc="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheetsjs/EWCewc/eventsDashboardStylesheeteventsDashboardScriptV2.cssjs" ></>script>

<style>
.countryFilterContainer #country-placeholder {
    height: 45px;
    min-height: 45px;
    margin: 0px;
    text-align: left;
    width: calc(100% - 40px);
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.69);
    padding: 0px 20px;
    cursor: text;
    position: relative;
    align-items: center;
    background: #1f1f1f;
    border: none;
}
.countryFilterContainer {
	justify-content: center !important;
}
.countryFilterContainer #country-clear-button {
    position: absolute;
    right: 0px;
}

@media screen and (max-width: 640px) {
.filtersContainer {
	justify-content: center;
}
}
</style>

...

HTML
<style>
.wiki-content .ev-cards-outer-container {
    background-image: url("https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/images/EWCESG+2020/gradient-verticaldashboardBackground.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}
#announcements-wrapper > span.conf-macro {
	height: 100%;
}

#additional-filters-button {
	width: 280px;
}

.zran-event {
	display: none;
}

@media only screen and (max-width: 480px) {
  .events-search-main {
    flex-direction: column;
    align-items: center;
    height: 75px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0px;
    overflow: hidden;
  }
  .wiki-content .ev-search-container {
    padding-bottom: 45px;
  }
  .countryFilterContainer {
	height: 49px !important;
	min-height: 49px;
  }
  .countryFilterContainer #country-placeholder {
	font-size: 14px;
  }
}
</style>

<script>
// New Version of Format Date (Asynchronous)
async function formatDate2(d) {
  const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  var hh = d.getHours(); 
  var m = d.getMinutes();
  var s = d.getSeconds();
  var dd = "am";
  var h = hh;
  if (h >= 12) {
    h = hh-12;
    dd = "pm";
  }
  if (h == 0) {
    h = 12;
  }
  m = m<10?"0"+m:m;
  s = s<10?"0"+s:s;

  var strTime = h+":"+m+" "+dd
  return strTime + " on " + monthNames[d.getMonth()] + " " + d.getDate();
  // return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}
</script>

...

Custom section
Classev-search-container


HTML
<div class="filtersContainer events-search-main">
    <div id="events-search-container">
		<img src="/download/attachments/81517767/searchicon.png?api=v2" />
		<input id="events-searchbar" type="text" autocomplete="off" placeholder="SEARCH FOR A SPECIFIC EVENT" />
	</div>

    <div class="countryFilterContainer">  
		<input type='text' disabled id='country-placeholder' placeholder='Country' onkeyup='handleCountrySearch(this, event)' />
        <ul id="countryFilter">
        </ul>
		<div id='country-clear-button' style="display:none;"><img src="/download/attachments/81517767/closeicon.png?api=v2" onclick="event.stopPropagation();clearFilter('countryFilter')" /></div>
    </div>

	<div class="dateFilterContainer">
        <div class="dateFilter">
			<p class="dateInputContainer"><input type="text" placeholder="Start Date" id="startdate"></p>      <span>↔</span>      <p class="dateInputContainer"><input type="text" placeholder="End Date" id="enddate"></p>
		</div>
    </div>

	<div class="resetFilterContainer">
    	<a id="resetFilter">Clear All Filters</a>
	</div>
</div>

<div id="additional-filters-button" style="display: none;">
	<img src="/download/attachments/81517767/addfilters.png?api=v2" />
	<span>Additional Filters</span>
</div>
HTML
<script>
window.addEventListener('load', () => {
	document.getElementById("country-placeholder").disabled = false;
});
</script>



Custom section
CustomCSS
Custom section
CustomCSSflex-direction: column;
ContainerIDevent-search-result-cards
Classev-cards-section


HTML
<h2 class="ev-cards-section-title">Search Results</h2>


Custom section
Classevents-container



...

Custom section
CustomCSSdisplay:none;
ContainerIDmy-events-scrolly
Classev-cards-section ev-cards-section-scrollable


HTML
<h2 class="ev-cards-section-title">My Events</h2>


Custom section
Classscrolling-ev-cards-wrapper


ConfiForms CleanView
filterownedBy:[entry._user]
pageTitleCreate Event
formNamecreateEvent
sortstartDate asc






upcoming-events-container
Custom section
CustomCSSdisplay: none;
ContainerID
Classev-cards-section ev-cards-section-scrollable


HTML
<h2 class="ev-cards-section-title">Upcoming Events</h2>


Custom section
Classscrolling-ev-cards-wrapper


ConfiForms CleanView
filterendDate:>=[now] AND publish:true
pageTitleCreate Event
formNamecreateEvent
sortstartDate asc






Custom section
ClassContainerIDevmy-watchlist-container
Classev-cards-cards-section ev-cards-section-scrollable


HTML
<h2 class="ev-cards-section-title">Highlighted>My Events<Watchlist</h2>


margin-bottom: 40px;alex@gsvlabs.com
Custom section
CustomCSS
Classscrolling-ev-cards-wrapper


HTML
<div id="highlighted-events" class="conf-macro output-block fullSite" data-hasbody="true" data-macro-name="confiform-cleanview"></div>
Show If
user




HTML
</div>


my-watchlist-container
Custom section
ContainerID
Classev-cards-section ev-cards-section-scrollable


HTML
<h2 class="ev-cards-section-title">My>Past Watchlist<Events</h2>


Custom section
Classscrolling-ev-cards-wrapper


ConfiForms CleanView
HTML
<div class="conf-macro output-block fullSite" data-hasbody="true" data-macro-name="confiform-cleanview"></div>
HTML
</div>
filterendDate:<[now] AND publish:true
pageTitleCreate Event
formNamecreateEvent
sortstartDate desc






Custom section
CustomCSSflex-direction: column;
ContainerIDall
Custom section
ContainerIDpopular-events
Classev-cards-section ev-cards-section-scrollable


scrolling-ev-cards-wrapper
HTML
<h2 class="ev-cards-section-title">Popular Events</h2>
Custom section
Class
 style="margin-bottom: 60px;">All Events</h2>


pageViewCount DESC
ConfiForms CleanView
filterpublish:true
pageTitleCreate Event
formNamecreateEvent
sort
limit15
sort
startDate ASC





all
Show If
groupconfluence-administrators,judging-administrators


Custom section
CustomCSSflex-direction: column;
ContainerID
true DESC
unpublished-events
Classev-cards-section


HTML
<h2 class="ev-cards-section-title" style="margin-bottom: 60px;"
>All
>Unpublished Events</h2>


ConfiForms CleanView
filterpublish:
false
pageTitleCreate Event
formNamecreateEvent
sortstartDate
ASC







HTML
	</div>
</div>


HTML
<style>
.eventcard .dates {
    color: white;
}
.eventcard .attendees {
	color: #3ddeed;
}
</style>
Show If
groupconfluence-administrators,judging-administrators
Custom section
CustomCSSflex-direction: column;
ContainerIDunpublished-events
Classev-cards-section
HTML
<h2 class="ev-cards-section-title" style="margin-bottom: 60px;">Unpublished Events</h2>
ConfiForms CleanView
filterpublish:false
pageTitleCreate Event
formNamecreateEvent
sortstartDate ASC
HTML
	</div>
</div>
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 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) =>#unpublished-events .conf-macro.output-block[data-macro-name=confiform-cleanview] {
    letpadding: nowDate = new Date()0px 35px;
    let eventEndDate = new Date(endDate)display: grid;

    let diffMilliseconds = eventEndDate.getTime() - nowDate.getTime(grid-template-columns: repeat(auto-fill, 280px);
    let diffMinutes =  (diffMilliseconds / 60000);

grid-gap: 20px;
    height: auto !important;
    justify-content: space-evenly;
}
</style>


HTML
 <script>

  const getMinutesUntilEventStartreturn diffMinutes;
  }

const showPopularRecordedTags = (startDate) => {
    let popularEventsnowDate = =new document.getElementById("popular-events"Date();
    let popularCardseventStartDate = popularEvents.getElementsByClassName("eventcard"new Date(startDate);

   for (let idiffMilliseconds = 0; i < popularCards.length; i++) {eventStartDate.getTime() - nowDate.getTime();
    let currCarddiffMinutes = popularCards[i];
    // Check if event was offline 
    if (currCard.dataset.offline == "true") (diffMilliseconds / 60000);

    return diffMinutes;
  }

  const getMinutesUntilEventEnd = (endDate) => {
    let nowDate continue
=    }new Date();
    let liveEleventEndDate = new document.createElement("div"Date(endDate);

    liveEl.classList.add('watch-indicator'let diffMilliseconds = eventEndDate.getTime() - nowDate.getTime();
    let liveEl.innerHTMLdiffMinutes = "<img class='watch-indicator-icon' src='/download/attachments/81517767/playicon.png?api=v2' /> RECORDED";
    currCard.insertAdjacentElement('afterbegin', liveEl) (diffMilliseconds / 60000);

    return diffMinutes;
  }
}

  const showPastWatchIndicators = () => {

	showPopularRecordedTags();

	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('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) {
		// 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>

...