cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <!--
Arlo Web Control Demo - Feature - Theme1
Documentation: https://developer.arlo.co/doc/webcontrols/categorylist
https://developer.arlo.co/doc/webcontrols/eventtemplatecatalogue
-->


    <!-- Target Elements -->
    <div class="arlo">
        <div class="arlo-feature">
            <div class="arlo-description">
                <h1 class="arlo-feature-events">
                    <a href="#featureevents">Feature events</a>
                </h1>
                <h2 class="arlo-text-color-secondary">View our exciting range of events and workshops</h2>
                <p class="arlo-text-color-light">Sit principes elaboraret eu, et pri consequat similique signiferumque, reque dicant persius his at. Ad vis labores appetere voluptatibus, pro vitae delenit electram et. An postea maiestatis pr.</p>
                <div id="category-list"></div>
                <div class="arlo-feature-buttons">
                    <a href="/event-catalogue/" class="arlo-button arlo-bg-color-primary">View Catalogue</a>
                    <a href="/event-schedule/" class="arlo-button arlo-bg-color-primary">View Schedule</a>
                </div>
            </div>
            <div id="arlo-feature" class="arlo-event-templates"></div>
        </div>
    </div>

    <!-- Templates -->
    <script type='text/template' id='feature-template'>
        <div class="arlo-listitem arlo-clearfix arlo-text-color-dark">
            <div class="arlo-detail arlo-font-primary arlo-text-color-dark">
                <div class="arlo-content">

                    <div class="arlo-title arlo-font-special arlo-text-color-dark">
                        <a href="<%= ViewUri %>" class="arlo-name arlo-text-color-dark arlo-h2">
                            <%- Name %>
                        </a>
                    </div>

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

                    <div class="arlo-advertisedduration">
                        <i class="fa fa-clock-o"></i> <%= AdvertisedDuration %>
                    </div>

                    <div class="arlo-offers arlo-text-color-secondary">
                        <%= formatAdvertisedOffers({showSingleOffer: true, freeText: "Free"}) %>
                    </div>

                    <% if (Tags.length > 0) { %>
                    <div class="arlo-delivery-title text-color-light">
                        Delivery
                    </div>
                    <div class="arlo-templatetags">
                        <%= formatCollection(Tags, "ul", true) %>
                    </div>
                    <% } %>

                </div>

                <div class="arlo-nextrunning ">
                    <div class="nextrunning-<%= TemplateID %>" id="arlo-next-running-button"></div>
                </div>

            </div>

            <div class="arlo-listitem-buttons"></div>
        </div>
    </script>

    <script id="category-list-template" type="text/html">
        <a href="<%= ViewUri %>">
            <i class="fa fa-caret-right" aria-hidden="true"></i>
             <%= Name %>
        </a>
        <ul class="category-children"></ul>
    </script>
  
<!-- Dependencies -->
<script src="//code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" charset="utf-8"></script>
<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.0/init.js" charset="utf-8" defer="defer"></script>
            
          
!
            
              html {
  box-sizing: border-box; }

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

/* ----- Breakpoints ----- */
/* ----- Sizes ----- */
/* ----- Colours ----- */
.arlo .arlo-feature {
  font-size: 16px;
  overflow: auto;
  padding-top: 20px;
 
  box-shadow: none;
  /* ----- Custom resets ----- */
  /* ----- Fonts ----- */
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
  /* ----- Clearfix ----- */
  /* IE6 */
  /* ----- Icons ----- */
  /* ----- Button ----- */
  /* ----- Text styles ----- */
  /* ----- Page Heading and Description ----- */
  /* ----- Event templates ----- */ }
  .arlo .arlo-feature .arlo-loading-overlay {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    bottom: 50%;
    top: 50%;
    left: 50%;
    right: 50%;
    /*
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    */
    /* Transparent Overlay */
    /* :not(:required) hides these rules from IE9 and below */ }
    .arlo .arlo-feature .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-feature .arlo-loading-overlay:not(:required) {
      /* hide "loading..." text */
      font: 0/0 a;
      color: transparent;
      text-shadow: none;
      background-color: transparent;
      border: 0; }
    .arlo .arlo-feature .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 .arlo-feature html {
    font-family: sans-serif;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */ }
  .arlo .arlo-feature body {
    margin: 0; }
  .arlo .arlo-feature article,
  .arlo .arlo-feature aside,
  .arlo .arlo-feature details,
  .arlo .arlo-feature figcaption,
  .arlo .arlo-feature figure,
  .arlo .arlo-feature footer,
  .arlo .arlo-feature header,
  .arlo .arlo-feature main,
  .arlo .arlo-feature menu,
  .arlo .arlo-feature nav,
  .arlo .arlo-feature section,
  .arlo .arlo-feature summary {
    display: block; }
  .arlo .arlo-feature audio,
  .arlo .arlo-feature canvas,
  .arlo .arlo-feature progress,
  .arlo .arlo-feature video {
    display: inline-block; }
  .arlo .arlo-feature audio:not([controls]) {
    display: none;
    height: 0; }
  .arlo .arlo-feature progress {
    vertical-align: baseline; }
  .arlo .arlo-feature template,
  .arlo .arlo-feature [hidden] {
    display: none; }
  .arlo .arlo-feature a {
    background-color: transparent;
    /* 1 */
    -webkit-text-decoration-skip: objects;
    /* 2 */ }
  .arlo .arlo-feature a:active,
  .arlo .arlo-feature a:hover {
    outline-width: 0; }
  .arlo .arlo-feature abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
    /* 2 */ }
  .arlo .arlo-feature b,
  .arlo .arlo-feature strong {
    font-weight: inherit; }
  .arlo .arlo-feature b,
  .arlo .arlo-feature strong {
    font-weight: bolder; }
  .arlo .arlo-feature code,
  .arlo .arlo-feature kbd,
  .arlo .arlo-feature samp {
    font-family: monospace, monospace;
    font-size: 1em; }
  .arlo .arlo-feature dfn {
    font-style: italic; }
  .arlo .arlo-feature h1 {
    font-size: 2em;
    /* Set 1 unit of vertical rhythm on the top and bottom margins. */
    margin: 0.75em 0; }
  .arlo .arlo-feature mark {
    background-color: #ff0;
    color: #000; }
  .arlo .arlo-feature small {
    font-size: 80%; }
  .arlo .arlo-feature sub,
  .arlo .arlo-feature sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline; }
  .arlo .arlo-feature sub {
    bottom: -0.25em; }
  .arlo .arlo-feature sup {
    top: -0.5em; }
  .arlo .arlo-feature img {
    border-style: none; }
  .arlo .arlo-feature svg:not(:root) {
    overflow: hidden; }
  .arlo .arlo-feature figure {
    margin: 1.5em 40px; }
  .arlo .arlo-feature hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */ }
  .arlo .arlo-feature pre {
    font-family: monospace, monospace;
    font-size: 1em; }
  .arlo .arlo-feature button,
  .arlo .arlo-feature input,
  .arlo .arlo-feature optgroup,
  .arlo .arlo-feature select,
  .arlo .arlo-feature textarea {
    font: inherit;
    /* 1 */
    margin: 0;
    /* 2 */ }
  .arlo .arlo-feature button {
    overflow: visible; }
  .arlo .arlo-feature button,
  .arlo .arlo-feature select {
    /* 1 */
    text-transform: none; }
  .arlo .arlo-feature button,
  .arlo .arlo-feature html [type="button"],
  .arlo .arlo-feature [type="reset"],
  .arlo .arlo-feature [type="submit"] {
    -webkit-appearance: button;
    /* 2 */ }
  .arlo .arlo-feature button,
  .arlo .arlo-feature [type="button"],
  .arlo .arlo-feature [type="reset"],
  .arlo .arlo-feature [type="submit"] {
    /**
     * Remove the inner border and padding in Firefox.
     */
    /**
     * Restore the focus styles unset by the previous rule.
     */ }
    .arlo .arlo-feature button::-moz-focus-inner,
    .arlo .arlo-feature [type="button"]::-moz-focus-inner,
    .arlo .arlo-feature [type="reset"]::-moz-focus-inner,
    .arlo .arlo-feature [type="submit"]::-moz-focus-inner {
      border-style: none;
      padding: 0; }
    .arlo .arlo-feature button:-moz-focusring,
    .arlo .arlo-feature [type="button"]:-moz-focusring,
    .arlo .arlo-feature [type="reset"]:-moz-focusring,
    .arlo .arlo-feature [type="submit"]:-moz-focusring {
      outline: 1px dotted ButtonText; }
  .arlo .arlo-feature input {
    overflow: visible; }
  .arlo .arlo-feature [type="checkbox"],
  .arlo .arlo-feature [type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */ }
  .arlo .arlo-feature [type="number"]::-webkit-inner-spin-button,
  .arlo .arlo-feature [type="number"]::-webkit-outer-spin-button {
    height: auto; }
  .arlo .arlo-feature [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 .arlo-feature [type="search"]::-webkit-search-cancel-button, .arlo .arlo-feature [type="search"]::-webkit-search-decoration {
      -webkit-appearance: none; }
  .arlo .arlo-feature ::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54; }
  .arlo .arlo-feature ::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */ }
  .arlo .arlo-feature fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em; }
  .arlo .arlo-feature legend {
    box-sizing: border-box;
    /* 1 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    white-space: normal;
    /* 1 */
    color: inherit;
    /* 2 */
    padding: 0;
    /* 3 */ }
  .arlo .arlo-feature optgroup {
    font-weight: bold; }
  .arlo .arlo-feature textarea {
    overflow: auto; }
  .arlo .arlo-feature ol, .arlo .arlo-feature ul, .arlo .arlo-feature li {
    list-style: none;
    padding: 0;
    margin: 0; }
  .arlo .arlo-feature .arlo-bg-color-primary {
    background-color: #08cec2; }
  .arlo .arlo-feature .arlo-bg-color-secondary {
    background-color: #ffdb3b; }
  .arlo .arlo-feature .arlo-bg-color-highlight {
    background-color: #ffdb3b; }
  .arlo .arlo-feature .arlo-bg-color-normal {
    background-color: #08cec2; }
  .arlo .arlo-feature .arlo-bg-color-darker {
    background-color: #07b5ab; }
  .arlo .arlo-feature .arlo-bg-color-darkest {
    background-color: #069d94; }
  .arlo .arlo-feature .arlo-text-color-primary {
    color: #08cec2; }
  .arlo .arlo-feature .arlo-text-color-secondary {
    color: #FF1D87; }
  .arlo .arlo-feature .arlo-text-color-contrast {
    color: #fff; }
  .arlo .arlo-feature .arlo-text-color-lightest {
    color: #bcbcbc; }
  .arlo .arlo-feature .arlo-text-color-light {
    color: #969696; }
  .arlo .arlo-feature .arlo-text-color-normal {
    color: #636363; }
  .arlo .arlo-feature .arlo-text-color-dark {
    color: #565656; }
  .arlo .arlo-feature .arlo-text-color-link {
    color: #FF1D87; }
  .arlo .arlo-feature .arlo-font-primary {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-feature .arlo-font-secondary {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-feature .arlo-font-special {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-feature .arlo-clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0; }
  .arlo .arlo-feature * html .arlo-clearfix {
    zoom: 1; }
  .arlo .arlo-feature * {
    box-sizing: border-box; }
  .arlo .arlo-feature *:first-child + html .arlo-clearfix {
    zoom: 1; }
  .arlo .arlo-feature .icons8 {
    display: inline-block; }
  .arlo .arlo-feature .icon-size-36 {
    font-size: 36px; }
  .arlo .arlo-feature .icon-size-30 {
    font-size: 30px; }
  .arlo .arlo-feature .icon-size-24 {
    font-size: 24px; }
  .arlo .arlo-feature .arlo-next-running,
  .arlo .arlo-feature .arlo-register-interest,
  .arlo .arlo-feature .arlo-find-events,
  .arlo .arlo-feature .arlo-show-more,
  .arlo .arlo-feature .arlo-button {
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    padding: 11px 25px;
    border-radius: 30px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    background-image: url(http://theme1.demo.arlo.co/wp-content/themes/betheme/images/box_shadow_button.png);
    background-repeat: repeat-x;
    color: white;
    font-style: normal;
    display: inline-block; }
    .arlo .arlo-feature .arlo-next-running:hover,
    .arlo .arlo-feature .arlo-register-interest:hover,
    .arlo .arlo-feature .arlo-find-events:hover,
    .arlo .arlo-feature .arlo-show-more:hover,
    .arlo .arlo-feature .arlo-button:hover {
      opacity: 0.7; }
  .arlo .arlo-feature h1 {
    font-size: 2.7em;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: normal; }
  .arlo .arlo-feature h2 {
    font-style: italic;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: normal; }
  .arlo .arlo-feature p {
    padding: 5px 0;
    font-size: 14px; }
  .arlo .arlo-feature a {
    color: #2B9CE8;
    text-decoration: none; }
  .arlo .arlo-feature #category-list {
    margin-bottom: 20px; }
    .arlo .arlo-feature #category-list > .categorylist-listitem > a {
      display: none; }
  .arlo .arlo-feature .categorylist-listitem a {
    color: #0086e3;
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
    text-decoration: none; }
    .arlo .arlo-feature .categorylist-listitem a i.fa {
      margin-right: 7px; }
    .arlo .arlo-feature .categorylist-listitem a:hover {
      text-decoration: none;
      color: #08cec2; }
  .arlo .arlo-feature .arlo-description,
  .arlo .arlo-feature .arlo-event-templates {
    float: left; }
  .arlo .arlo-feature .arlo-description {
    padding-right: 60px;
    width: 45%; }
    .arlo .arlo-feature .arlo-description h1 a {
      color: black;
      cursor: default; }
      .arlo .arlo-feature .arlo-description h1 a:hover {
        text-decoration: none; }
  .arlo .arlo-feature .arlo-event-templates {
    width: 55%; }
  .arlo .arlo-feature .arlo-feature-buttons .arlo-button {
    margin-right: 10px;
    margin-bottom: 10px; }
  .arlo .arlo-feature[max-width~="725px"] .arlo-description {
    width: 100%;
    margin-bottom: 30px;
    padding-right: 0; }
  .arlo .arlo-feature[max-width~="725px"] .arlo-event-templates {
    width: 100%; }
  .arlo .arlo-feature[max-width~="725px"] .arlo-eventtemplatecatalogue-listitem {
    padding-left: 8px; }
  .arlo .arlo-feature[max-width~="549px"] .arlo-next-running,
  .arlo .arlo-feature[max-width~="549px"] .arlo-register-interest,
  .arlo .arlo-feature[max-width~="549px"] .arlo-find-events,
  .arlo .arlo-feature[max-width~="549px"] .arlo-show-more,
  .arlo .arlo-feature[max-width~="549px"] .arlo-button {
    width: 100%; }
  .arlo .arlo-feature .arlo-result-counter {
    margin-bottom: 20px; }
    .arlo .arlo-feature .arlo-result-counter div {
      display: inline-block;
      vertical-align: baseline; }
    .arlo .arlo-feature .arlo-result-counter .arlo-result-count {
      font-size: 200%; }
    .arlo .arlo-feature .arlo-result-counter .arlo-result-count-text {
      font-size: 120%; }
  .arlo .arlo-feature .arlo-catalogue-wrapper[max-width~="725px"] .arlo-eventtemplatecatalogue-listitem {
    width: 100% !important; }
  .arlo .arlo-feature .arlo-eventtemplatecatalogue-list[max-width~="549px"] .arlo-eventtemplatecatalogue-listitem {
    width: 100%; }
  .arlo .arlo-feature .arlo-eventtemplatecatalogue-list[min-width~="550px"] .arlo-eventtemplatecatalogue-listitem {
    width: 49%;
    margin-right: 1%;
    margin-bottom: 2%; }
  .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-listitem {
    -ms-box-shadow: 0 0 8px 5px #e6e6e6;
    -o-box-shadow: 0 0 8px 5px #e6e6e6;
    box-shadow: 0 0 8px 5px #e6e6e6; }
  .arlo .arlo-feature .arlo-next-running, .arlo .arlo-feature .arlo-find-events {
    background-color: #08cec2;
    color: #fff; }
  .arlo .arlo-feature .arlo-next-running:hover, .arlo .arlo-feature .arlo-find-events:hover {
    background-color: #08cec2; }
  .arlo .arlo-feature .arlo-next-running-title {
    padding-top: 0; }
  .arlo .arlo-feature .arlo-register-interest {
    background-color: #fff;
    color: #08cec2;
    border: 1px solid #08cec2; }
    .arlo .arlo-feature .arlo-register-interest:hover {
      background-color: #08cec2;
      color: #fff; }
  .arlo .arlo-feature .arlo-templatetags ul li {
    display: inline-block;
    padding-right: 12px;
    color: #FFD101; }
  .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    list-style: none;
    font-size: 12px;
    display: inline-block;
    vertical-align: top;
    padding-right: 8px;
    padding-bottom: 8px;
    text-decoration: none; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem::after {
      clear: both;
      content: "";
      display: table; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-name {
      margin: 0 0 5px 0;
      display: inline;
      font-weight: 400;
      letter-spacing: 1px;
      font-size: 25px;
      line-height: 27px;
      text-decoration: none; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-name:hover {
      color: #FF1D87;
      cursor: pointer;
      text-decoration: none; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-listitem {
      padding: 16px;
      position: relative;
      display: block;
      text-align: left;
      border-radius: 5px;
      text-decoration: none; }
      .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-listitem .arlo-side-border {
        position: absolute;
        left: 0;
        width: 10px;
        height: 100%; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .fa {
      margin-right: 3px;
      font-size: 14px; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-provider-info {
      display: inline;
      float: right;
      font-style: italic; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-start-date {
      font-size: 230%;
      font-weight: 700; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-advertisedduration {
      padding: 3px 0;
      line-height: 22px;
      letter-spacing: 0;
      font-size: 15px; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail .arlo-city {
      margin-right: 5px; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail .arlo-summary {
      padding: 5px 0;
      font-size: 14px; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail .arlo-original-price {
      text-decoration: line-through; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail .arlo-offer-ul {
      padding-left: 0; }
      .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail .arlo-offer-ul .arlo-offer-li {
        list-style: none; }
    .arlo .arlo-feature .arlo-eventtemplatecatalogue-listitem .arlo-detail div {
      padding: 3px 0; }
  .arlo .arlo-feature .arlo-offers {
    padding: 3px 0;
    line-height: 22px;
    letter-spacing: 0;
    font-size: 18px;
    font-weight: 400;
    font-style: italic; }
  .arlo .arlo-feature .arlo-delivery-title, .arlo .arlo-feature .arlo-next-running-title {
    font-size: 14px;
    line-height: 18px; }
  .arlo .arlo-feature .arlo-delivery-title {
    color: #FFD101; }
  .arlo .arlo-feature .arlo-templatetags ul {
    margin-top: 0; }

/*# sourceMappingURL=featured.css.map */
            
          
!
            
              (function ($, ElementQueries) {
    document.addEventListener("arlojscontrolsloaded", function () {
        var platformID = "websitetestdata"; // Change platformID to point at your own account


        var categoryList = {
            moduleType: "CategoryList",
            targetElement: "#category-list",
            categoryTreeDepth: 1,
            maxCount: 5,
            template: "#category-list-template",
            customUrls: {
                category: "event-catalogue/"
            },
            targetFilterID: "categoryfilter",
            targetModuleType: "Catalogue",
            includeArloLink: false
        };

        var feature = {
            moduleType: "EventTemplateCatalogue",
            targetElement: "#arlo-feature",
            template: "#feature-template",
            includeLoadMoreButton: false,
            includeArloLink: false,
            maxCount: 2,
            maxNextRunningEvents: 1, // Defaults to 1
            customUrls: {
                eventtemplate: "/event-template/",
                venue: "/venue/",
                presenter: "/presenters/"
            },
            callbacks: {
                onShow: featureOnShow
            },
            filter: {
              tag: ["Feature"]
            }
        };


        var app = new window.ArloWebControls();

        app.start({
            "platformID": platformID,
            "showDevErrors": true,
            "modules": [feature, categoryList]
        });

        /* ----- Callback functions ----- */

        // "OnShow" callback for featured event templates
        function featureOnShow(getRenderCollectionElements, $) {
            var listItems = getRenderCollectionElements();
            var listParent = $(listItems[0]).parent()[0];

            ElementQueries.init();
            $.each(listItems, function (index, listItem) {

                // Replace tag text with icons
                var tags = $(listItem).find(".arlo-templatetags ul li");
                $.each(tags, function (index, tag) {
                    var $tag = $(tag);
                    var tagText = $tag.html();
                    switch (tagText) {
                        case "Web_DummyData":
                            $tag.remove();
                            break;
                        case "Web_Public":
                            $tag.html("");
                            $tag.addClass('icons8 icons8-user-groups icon-size-30');
                            break;
                        case "Web_LiveOnline":
                            $tag.html("");
                            $tag.addClass('icons8-headset icon-size-30');
                            break;
                        case "Web_SelfpacedOnline":
                            $tag.html("");
                            $tag.addClass('icons8-tv-show icon-size-30');
                            break;
                        case "Web_PrivateOnsite":
                            $tag.html("");
                            $tag.addClass('icons8-home icon-size-30');
                            break;
                        default:
                            $tag.remove();
                    }
                });

            });

            function setListItemsHeight() {
                $(listParent).find(".arlo-listitem").height("auto");
                var tallestListItemHeight = 0;
                $.each($(listParent).find(".arlo-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-summary").height();
                    height += $(listItem).find(".arlo-advertisedduration").height();
                    height += $(listItem).find(".arlo-offer-container").height();
                    height += $(listItem).find(".arlo-delivery-title").height();
                    height += $(listItem).find(".arlo-templatetags").height();

                    if (height > tallestListItemHeight) {
                        tallestListItemHeight = height;
                    }

                    var registerInterestButton = $(listItem).find('#arlo-next-running-button *');

                    if (!registerInterestButton.hasClass('arlo-register-interest') && $(listItem).find('.arlo-nextrunning .arlo-next-running-title').length < 1) {
                        $(listItem).find('.arlo-nextrunning').prepend('<div class="arlo-next-running-title text-color-light">Next Running</div>');
                    }

                });

                $("#arlo-feature .arlo-content").height(tallestListItemHeight + 35);
                $("#arlo-feature .arlo-nextrunning").height(70);
            }

            setTimeout(function () {
                setListItemsHeight();
            }, 500);

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

        }
    });
})(jQuery, window.ElementQueries);
            
          
!
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.
Loading ..................

Console