123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!--
Arlo Web Control Demo - Upcoming - Theme 2
Documentation: https://developer.arlo.co/doc/webcontrols/upcomingevents
-->


<!-- Target Elements -->
<div class="arlo arlo-upcoming">
  <div class="arlo-upcoming-description">
    <h1><a href="#widget-upcoming">Upcoming events</a></h1>
    <h2>Checkout what events are running at your location</h2>
    <p><a href="/upcoming-events/">View all upcoming events</a></p>
  </div>
  <div id="filters"></div>
  <div id="upcoming-events"></div>
</div>

<!-- Templates -->
<script type='text/template' id='filter-template'>
  <div class="arlo-filters arlo-font-primary">

    <div class="arlo-location-selectors arlo-clearfix">
      <%= showFilter({filterCode: "locname", displayStyle: "ul", callbacks: {onRender: "locationfiltertoggle"}}) %>
    </div>
  </div>
</script>

<script type='text/template' id='event-template-template'>
  <%= ContentFields %>
    <div class="templateId" data-templateid="<%= TemplateID %>"></div>
</script>

<script type='text/template' id='upcoming-events-template'>
  <div class="arlo-listitem arlo-clearfix">
    <div class="arlo-date arlo-font-special">
      <div class="arlo-date-container arlo-text-color-dark">       
        <div class="arlo-start-date arlo-text-color-lightest">
        	<%= formatDate(StartDateTime, 'DD') %>
        </div>
        <div class="arlo-start-month arlo-bg-color-primary">
          <%= formatDate(StartDateTime, 'MMMM') %>
        </div>
      </div>
    </div>

    <div class="arlo-details arlo-font-primary">
      <div class="arlo-title">
        <h3 class="arlo-name arlo-text-color-dark arlo-font-special arlo-h3">
          <a href="<%= ViewUri %>">
            <%- Name %>
          </a>
        </h3>
      </div>
      
      <div class="arlo-info">
      <% if (typeof(Location.IsOnline) !== "undefined" && Location.IsOnline === true && (typeof(Location.Name) !== "undefined" && Location.Name !== "")) { %>
        <span class="arlo-location arlo-online arlo-text-color-lightest arlo-font-size-larger"><i class="fa fa-desktop"></i><span class="arlo-text-color-normal"><%- Location.Name %></span></span></span>
        <% } else { %>

          <% if (typeof(Location.ViewUri) !== "undefined" && Location.ViewUri !== "") { %>
          <span class="arlo-location arlo-text-color-lightest">
          	<i class="fa fa-map-marker"></i>
            <a href="<%- Location.ViewUri %>" class="arlo-text-color-link arlo-font-size-larger">
              <%- Location.Name %>
            </a>
          </span>
            <% } else { %>
              <span class="arlo-location arlo-text-color-lightest arlo-font-size-larger"><i class="fa fa-map-marker"></i><span class="arlo-text-color-normal"><%- Location.Name %></span></span>
              <% } %>
                <% } %>

                  <span class="arlo-duration arlo-text-color-lightest">
                    <i class="fa fa-clock-o"></i>
                    <span class="arlo-text-color-normal arlo-font-size-larger"><%- DurationDescription %></span>
                  <% if (typeof(Location.IsOnline) !== "undefined" && Location.IsOnline === true) { %>
                    <span class="arlo-text-color-normal arlo-font-size-larger"><%- TimeZone %></span>
                    <% } %>
                      </span>

                      <% if (typeof(Notice) !== "undefined" && Notice !== "") { %>
                        <span class="arlo-notice arlo-text-color-lightest"><span class="arlo-text-color-primary arlo-font-size-larger"><i><%- Notice %></i></span></span>
                        <% } %>

                          <% if (Sessions.length > 1) { %>
                            <span class="arlo-sessions">
                    <span class="arlo-duration arlo-text-color-lightest">
                        <i class="fa fa-clock-o"></i>
                        <span class="arlo-session-info arlo-text-color-link arlo-font-size-larger" data-toggle="tooltip" data-placement="bottom" data-html="true" title="" style="display: inline;" data-original-title="">
                            Show sessions
                        </span>
                            <div class="tooltipcontent">
                              <h4>Session details</h4>
                              <%= formatSessionsInformation({ fieldsToDisplay: ['Name', 'Day', 'Date', 'TimeSpan'] }) %>
                            </div>
                            </span>
                            </span>
                            <% } %>
				</div>

                              <div class="arlo-summary arlo-text-color-light">
                                <%- Summary %>
                              </div>

                              <div class="arlo-offers">
                                <%= formatAdvertisedOffers({ 
                        showPriceWithTaxInclusive: false,
                        showCurrencyCode: true,
                     }) %>
                              </div>
	
                            <span class="arlo-loadEventTemplateHiddenButtonContainer">
                    <%= showEventTemplateInformation({message:"View Template Details",
                    template:"#event-template-template", showLoadButton: false, targetElement: "arlo-eventTemplatetarget", callbacks: {onShow: "eventTemplateLoaded" } }) %>
                </span>
    </div>
    
		<div class="arlo-register">

			<% if (PlacesRemaining !== "") { %>
				<span class="arlo-places-remaining arlo-text-color-primary arlo-font-size-larger"><%= PlacesRemaining %> Places Remaining</span>
			<% } %>
			<% if (EventFullMessage !== "") { %>
				<span class="arlo-places-remaining arlo-text-color-primary arlo-font-size-larger"><%= EventFullMessage %></span>
			<% } %>
      <%= formatRegistrationInfo('link') %>
    </div>
    
  </div>


  <div class="eventTemplateId" data-eventtemplateid="<%= EventTemplateID %>"></div>
</script>

<!-- Dependencies -->
<script type="text/javascript" src="//packages.arlocdn.net/jscontrols/1.0/resources/resizesensor.js" charset="utf-8"></script>
<script type="text/javascript" src="//packages.arlocdn.net/jscontrols/1.0/resources/elementqueries.js" charset="utf-8"></script>
<script type="text/javascript" src="//connect.arlocdn.net/jscontrols/1.1/init.js" charset="utf-8" defer="defer"></script>

            
          
!
            
              html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-weight: 500;
}

.arlo {
  font-size: 16px;
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
}

.arlo .arlo-loading-overlay {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  bottom: 50%;
  top: 50%;
  left: 50%;
  right: 50%;
}

.arlo .arlo-loading-overlay:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

.arlo .arlo-loading-overlay:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.arlo .arlo-loading-overlay:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.arlo html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

.arlo body {
  margin: 0;
}

.arlo article,
.arlo aside,
.arlo details,
.arlo figcaption,
.arlo figure,
.arlo footer,
.arlo header,
.arlo main,
.arlo menu,
.arlo nav,
.arlo section,
.arlo summary {
  display: block;
}

.arlo audio,
.arlo canvas,
.arlo progress,
.arlo video {
  display: inline-block;
}

.arlo audio:not([controls]) {
  display: none;
  height: 0;
}

.arlo progress {
  vertical-align: baseline;
}

.arlo template,
.arlo [hidden] {
  display: none;
}
.arlo a,
.arlo .arlo-filters .arlo-filter-unordered-list li,
.arlo .arlo-event-listitem .arlo-event-register:before {
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  text-decoration: none;
}
.arlo a,
.arlo a:before,
.arlo a:after {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
}

.arlo a:active,
.arlo a:hover {
  outline-width: 0;
}

.arlo abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

.arlo b,
.arlo strong {
  font-weight: inherit;
}

.arlo b,
.arlo strong {
  font-weight: bolder;
}

.arlo code,
.arlo kbd,
.arlo samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

.arlo dfn {
  font-style: italic;
}

.arlo h1 {
  font-size: 2em;
  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
  margin: 0.75em 0;
}

.arlo mark {
  background-color: #ff0;
  color: #000;
}

.arlo small {
  font-size: 80%;
}

.arlo sub,
.arlo sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.arlo sub {
  bottom: -0.25em;
}

.arlo sup {
  top: -0.5em;
}

.arlo img {
  border-style: none;
}

.arlo svg:not(:root) {
  overflow: hidden;
}

.arlo figure {
  margin: 1.5em 40px;
}

.arlo hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

.arlo pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

.arlo button,
.arlo input,
.arlo optgroup,
.arlo select,
.arlo textarea {
  font: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
}

.arlo button {
  overflow: visible;
}

.arlo button,
.arlo select {
  /* 1 */
  text-transform: none;
}

.arlo button,
.arlo html [type="button"],
.arlo [type="reset"],
.arlo [type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

.arlo button,
.arlo [type="button"],
.arlo [type="reset"],
.arlo [type="submit"] {
  /**
     * Remove the inner border and padding in Firefox.
     */
  /**
     * Restore the focus styles unset by the previous rule.
     */
}

.arlo button::-moz-focus-inner,
.arlo [type="button"]::-moz-focus-inner,
.arlo [type="reset"]::-moz-focus-inner,
.arlo [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

.arlo button:-moz-focusring,
.arlo [type="button"]:-moz-focusring,
.arlo [type="reset"]:-moz-focusring,
.arlo [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

.arlo input {
  overflow: visible;
}

.arlo [type="checkbox"],
.arlo [type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

.arlo [type="number"]::-webkit-inner-spin-button,
.arlo [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

.arlo [type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
  /**
     * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
     */
}

.arlo [type="search"]::-webkit-search-cancel-button,
.arlo [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.arlo::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

.arlo::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

.arlo fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

.arlo legend {
  box-sizing: border-box;
  /* 1 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  white-space: normal;
  /* 1 */
  color: inherit;
  /* 2 */
  padding: 0;
  /* 3 */
}

.arlo optgroup {
  font-weight: bold;
}

.arlo textarea {
  overflow: auto;
}

.arlo ol,
.arlo ul,
.arlo li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arlo .arlo-bg-color-primary {
  background-color: #343f56;
}

.arlo .arlo-bg-color-secondary {
  background-color: #343f56;
}

.arlo .arlo-bg-color-filters {
  background-color: #F1F7FB;
}

.arlo .arlo-bg-color-highlight {
  background-color: #FFFDF7;
}

.arlo .arlo-bg-color-normal {
  background-color: #fcfcfc;
}

.arlo .arlo-bg-color-darker {
  background-color: #f7f7f7;
}

.arlo .arlo-bg-color-darkest {
  background-color: #f2f2f2;
}

.arlo .arlo-text-color-primary {
  color: #343f56;
}

.arlo .arlo-text-color-secondary {
  color: #f1992e;
}

.arlo .arlo-text-color-contrast {
  color: #FFFFFF;
}

.arlo .arlo-text-color-lightest {
  color: #bcbcbc;
}

.arlo .arlo-text-color-light {
  color: #969696;
}

.arlo .arlo-text-color-normal {
  color: #5e5e5e;
}

.arlo .arlo-text-color-dark {
  color: #5e5e5e;
}

.arlo .arlo-text-color-link {
  color: #f1992e;
}

.arlo .arlo-font-primary {
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
}

.arlo .arlo-font-secondary {
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
}

.arlo .arlo-font-special {
  font-family: "Montserrat", Arial, Tahoma, sans-serif;
}

.arlo .arlo-font-size-larger {
  font-size: 110%;
}

.arlo .arlo-clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.arlo * html .arlo-clearfix {
  zoom: 1;
}

.arlo * {
  box-sizing: border-box;
}

.arlo *:first-child+html .arlo-clearfix {
  zoom: 1;
}

.arlo a {
  color: #f1992e;
  text-decoration: none;
  font-weight: normal;
}

.arlo a:hover {
  color: #f9b420;
}



/** Widget - Upcoming **/

.arlo .arlo-upcoming-description,
.arlo.arlo-upcoming #filters {
  float: left;
  width: 32%;
}
.arlo .arlo-upcoming-description h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2.7em;
}

.arlo .arlo-upcoming-description h1 a {
  color: #343f56;
  font-weight: bold;
  text-decoration: none;
}

.arlo .arlo-upcoming-description h1 a:hover {
  cursor: default;
}

.arlo .arlo-upcoming-description h2 {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 300;
  color: #949494;
}

.arlo.arlo-upcoming #filters {
  clear: both;
}

.arlo.arlo-upcoming .arlo-filters .arlo-filter-unordered-list li {
  display: inline-block;
  float: left;
  margin: 2px 10px 2px 0;
  padding: 5px 15px;
  font-style: normal;
  font-size: 14px;
  border-radius: 4px;
  border: 2px solid #bcc5d1;
  color: #bcc5d1;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
}
.arlo.arlo-upcoming .arlo-filters .arlo-filter-unordered-list li.selected {
  background-color: #f1992e;
  border-color: #f1992e;
  color: #ffffff;
}
.arlo.arlo-upcoming .arlo-filters .arlo-filter-unordered-list li:hover {
    transform: scale(1.1);
}

.arlo #upcoming-events {
  margin-left: 40%;
  width: 60%;
}

/* Fix inline style "clear: both" in release 9.7 */
.arlo #upcoming-events .arlo-event-list > div {
  clear: none !important;
}

.arlo .arlo-event-listitem {
  display: inline-block;
  width: 49.5%;
  margin-right: 1%;
  padding-top: 30px;
  padding-left: 15px;
  background-color: #f5f5f5;
  vertical-align: top;
}

.arlo .arlo-event-listitem:nth-of-type(2n) {
  margin-right: 0;
}

.arlo .arlo-event-list[max-width~="620px"] .arlo-event-listitem {
  width: 100%;
  margin-right: 0;
  margin-bottom: 10px;
}

.arlo.arlo-upcoming[max-width~="660px"] .arlo-upcoming-description,
.arlo.arlo-upcoming[max-width~="660px"] #filters {
  float: none;
  width: 100%;
  text-align: center;
}

.arlo.arlo-upcoming[max-width~="660px"] #filters .arlo-filter-unordered-list li {
  float: none;
  margin: 2px 0;
}

.arlo.arlo-upcoming[max-width~="660px"] #upcoming-events {
  width: 100%;
  margin-top: 20px;
  margin-left: 0;
}

.arlo .arlo-event-listitem .arlo-date {
  display: inline-block;
  text-align: center;
  float: left;
  width: 20%;
  margin-right: 15px;
}

.arlo .arlo-event-listitem .arlo-start-date {
  font-size: 4em;
  line-height: .8;
  color: #f1992e;
}

.arlo .arlo-event-listitem .arlo-start-month {
  font-size: .9em;
  line-height: 1.2em;
  background: transparent;
  color: #bcbcbc;
}

.arlo .arlo-event-listitem .arlo-title .arlo-name {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 10px;
  font-size: 20px;
}

.arlo .arlo-event-listitem .arlo-title .arlo-name a {
  margin: 0 0 10px 0;
  display: inline;
  font-size: 20px;
  font-weight: bold;
  color: #5e5e5e;
}

.arlo .arlo-event-listitem .arlo-title,
.arlo .arlo-event-listitem .arlo-info {
  margin-left: 100px;
  padding-right: 20px;
}

.arlo .arlo-event-listitem .arlo-info {
  font-size: .8em;
}

.arlo .arlo-event-listitem .arlo-info > span {
  display: inline-block;
}

.arlo .arlo-event-listitem .fa {
  width: 15px;
  margin-right: 3px;
  text-align: center;
  font-size: 14px;
}

.arlo .arlo-event-listitem .arlo-details .arlo-location,
.arlo .arlo-event-listitem .arlo-details .arlo-duration,
.arlo .arlo-event-listitem .arlo-details .arlo-online {
  margin-right: 10px;
}

.arlo .arlo-event-listitem .arlo-summary {
  padding: 10px 15px 10px 0;
  font-size: .9em;
}
.arlo .arlo-offer-container,
.arlo .arlo-offer-li {
  font-size: 18px;
  line-height: 25px;
}
.arlo .arlo-offer-taxrate,
.arlo .arlo-offer-taxrate-shortname,
.arlo .arlo-offer-currencycode {
  font-size: .7em;
}
.arlo .arlo-event-listitem .arlo-offers {
  padding: 0;
}


.arlo .arlo-event-listitem .arlo-details .arlo-discount-offer.arlo-offer-li,
.arlo .arlo-event-listitem .arlo-details .arlo-offers .arlo-original-price {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14.4px;
  line-height: 1.4;
}
.arlo .arlo-event-listitem .arlo-details .arlo-offers {
  margin-top: 10px;
  margin-bottom: 5px;
}
.arlo .arlo-event-listitem .arlo-details .arlo-original-price {
  text-decoration: line-through;
}
.arlo .arlo-event-listitem .arlo-details .arlo-discount-offer,
.arlo .arlo-event-listitem .arlo-details .arlo-original-price {
  color: #f9b420;
  font-style: italic;
}
.arlo .arlo-event-listitem .arlo-details .arlo-offer-ul {
  padding-left: 0;
}
.arlo .arlo-event-listitem .arlo-details .arlo-offer-ul .arlo-offer-li {
  list-style: none;
  padding: 2px;
}


.arlo .tooltipcontent {
  display: none;
}

.arlo .arlo-session-info {
  cursor: pointer;
}

.arlo .arlo-sessions {
  margin: 0;
  font-size: 14px;
}

.arlo .arlo-sessions .arlo-session .arlo-session-name {
  display: block;
  color: white;
  letter-spacing: 1px;
}

.arlo .arlo-sessions li * {
  display: inline-block;
  word-wrap: normal;
  color: white;
}

.arlo .arlo-event-listitem .arlo-register {
  text-align: right;
}

.arlo .arlo-places-remaining {
  display: block;
  color: #f1992e;
  font-size: 15px;
  margin-right: 12px;
  margin-bottom: 8px;
  font-weight: bold;
  text-transform: uppercase;
}

.arlo a.arlo-event-register {
  display: inline-block;
  position: relative;
  padding: 10px 25px;
  background-color: #f1992e;
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  text-transform: uppercase;
}

.arlo a.arlo-event-register:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 0;
  height: 40px;
  border-top: 40px solid transparent;
  border-right: 30px solid #f1992e;
}

.arlo a.arlo-event-register:hover {
  color: white;
  background-color: #f9b420;
}

.arlo a.arlo-event-register:hover:before {
  border-right-color: #f9b420;
}

.arlo .arlo-event-register.arlo-waiting-list {
  background-color: #687082;
}

.arlo .arlo-event-register.arlo-waiting-list:before {
  border-right-color: #687082;
}
            
          
!
            
               document.addEventListener("arlojscontrolsloaded", function() {
   var platformID = "websitetestdata.arlo.co"; // Change platformID to point at your own account

   var filter = {
     moduleType: "Filters",
     targetElement: "#filters",
     template: "#filter-template",
     filterControlId: 1
   };

   var eventList = {
     moduleType: "UpcomingEvents",
     targetElement: "#upcoming-events",
     template: "#upcoming-events-template",
     maxCount: 2,
     filterControlId: 1,
     includeLoadMoreButton: false,
     includeArloLink: false,
     customUrls: {
       eventtemplate: "http://theme2.demo.arlo.co/event-template/",
       venue: "http://theme2.demo.arlo.co/venue/",
       presenter: "http://theme2.demo.arlo.co/presenter/"
     },
     callbacks: {
       onShow: eventListOnShowCallback
     }
   };

   var app = new window.ArloWebControls();

   app.start({
     "platformID": platformID,
     "googleMapsAPIKey": "AIzaSyAQecSspMnsipB9oV0N4WKbqFNy5zhlNwg",
     "showDevErrors": false,
     "modules": [eventList, filter]
   });

   /* ----- Callback function ----- */

   // "OnShow" callback
   function eventListOnShowCallback(getEventListItemsFunction,$) {
     var listItems = getEventListItemsFunction();
     var listParent = $(listItems[0]).parent()[0];
     
     ElementQueries.init();

     // Hide timezone selector if there are no online events
     if ($(".arlo-online").length < 1) {
       $(".arlo-timezone-select").hide();
     } else {
       $(".arlo-timezone-select").show();
       $(".arlo-timezone-select").parent().css("float", "right");
     }

     // Set up tooltips
     $.each(listItems, function(index, listItem) {
       var tooltipElement = $(listItem).find('[data-toggle="tooltip"]')[0];
       if (tooltipElement) {
         var toolTipContent = $(listItem).find('.tooltipcontent')[0];
         if (toolTipContent) {
           $(tooltipElement).attr('data-original-title', $(toolTipContent).html());
           $(tooltipElement).tooltip();
         }
       }
     });
     
     function setUpcomingListItemsHeight() {
       $(listParent).find(".arlo-event-listitem").height("auto");
       var tallestListItemHeight = 0;
       $.each($(listParent).find(".arlo-event-listitem"), function(index, listItem) {
         // Get height from combining heights of list item elements (because of issue with using list items own height)
         var height = 0;
         height += $(listItem).find(".arlo-title").height();
         height += $(listItem).find(".arlo-info").height();
         height += $(listItem).find(".arlo-summary").height();
         height += $(listItem).find(".arlo-offers").height();
         
         if (height > tallestListItemHeight) {
           tallestListItemHeight = height;
         }
       });
       $("#upcoming-events .arlo-details").css("height", tallestListItemHeight + 70);
     }

     setTimeout(function() {
       setUpcomingListItemsHeight();
     }, 1000);

     $(window).bind('resize', function() {
       setTimeout(function() {
         setUpcomingListItemsHeight();
       }, 100);
     });
  

   }

 });

 window.locationfiltertoggle = function(filter, $) {
   //jshint unused:false
   window.ElementQueries.init();
 };

 window.updateTemplateTagNames = function(filterModel, $) {
   var deleteFilterIndexes = [];
   $.each(filterModel.attributes.Values, function(index, filterValue) {
     switch (filterValue.Label) {
       case "Web_Public":
         filterValue.Label = "Public";
         break;
       case "Web_LiveOnline":
         filterValue.Label = "Live Online";
         break;
       case "Web_PrivateOnsite":
         filterValue.Label = "Private Onsite";
         break;
       case "Web_SelfpacedOnline":
         filterValue.Label = "Self Paced Online";
         break;
       default:
         deleteFilterIndexes.push(index);
     }
   });

   $.each(deleteFilterIndexes, function(index, value) {
     filterModel.attributes.Values.splice(value - index, 1);
   });
 };
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console