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 - Tag List Widget - Theme1
Documentation: https://developer.arlo.co/doc/webcontrols/eventtemplatecatalogue
-->

    <!-- Target Elements -->
    <div class="arlo">
        <div class="arlo-tag-list">
            <div class="arlo-description">
                <h1><a href="#widget-taglist">New events</a></h1>
                <h2 class="arlo-text-color-primary">Two new topics by popular demand</h2>
                <p class="arlo-text-color-light">We are excited to announce two new topic we will be running this year.  Thanks for all your feedback and suggestion on the topics you would like use to run. <a href="/event-catalogue/" class="arlo-view-catalogue;">VIEW CATALOGUE</a></p>
            </div>
            <div id="arlo-tag-list"></div>
        </div>
    </div>

    <!-- Templates -->
    <script type='text/template' id='tag-list-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">

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

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

                </div>

                <div class="arlo-buttons">
                    <div class="arlo-nextrunning">
                        <div class="nextrunning-<%= TemplateID %>"></div>
                    </div>

                    <a href="<%= ViewUri %>" class="arlo-button arlo-view-all">View all dates</a>
                </div>

            </div>
        </div>
    </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-tag-list {
  font-size: 16px;
 
  box-shadow: none;
  /* ----- Custom resets ----- */
  /* ----- Fonts ----- */
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
  /* ----- Clearfix ----- */
  /* IE6 */
  /* ----- Icons ----- */
  /* ----- Button ----- */
  /* ----- Text styles ----- */
  /* ----- Tag list ----- */ }
  .arlo .arlo-tag-list .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-tag-list .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-tag-list .arlo-loading-overlay:not(:required) {
      /* hide "loading..." text */
      font: 0/0 a;
      color: transparent;
      text-shadow: none;
      background-color: transparent;
      border: 0; }
    .arlo .arlo-tag-list .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-tag-list html {
    font-family: sans-serif;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */ }
  .arlo .arlo-tag-list body {
    margin: 0; }
  .arlo .arlo-tag-list article,
  .arlo .arlo-tag-list aside,
  .arlo .arlo-tag-list details,
  .arlo .arlo-tag-list figcaption,
  .arlo .arlo-tag-list figure,
  .arlo .arlo-tag-list footer,
  .arlo .arlo-tag-list header,
  .arlo .arlo-tag-list main,
  .arlo .arlo-tag-list menu,
  .arlo .arlo-tag-list nav,
  .arlo .arlo-tag-list section,
  .arlo .arlo-tag-list summary {
    display: block; }
  .arlo .arlo-tag-list audio,
  .arlo .arlo-tag-list canvas,
  .arlo .arlo-tag-list progress,
  .arlo .arlo-tag-list video {
    display: inline-block; }
  .arlo .arlo-tag-list audio:not([controls]) {
    display: none;
    height: 0; }
  .arlo .arlo-tag-list progress {
    vertical-align: baseline; }
  .arlo .arlo-tag-list template,
  .arlo .arlo-tag-list [hidden] {
    display: none; }
  .arlo .arlo-tag-list a {
    background-color: transparent;
    /* 1 */
    -webkit-text-decoration-skip: objects;
    /* 2 */ }
  .arlo .arlo-tag-list a:active,
  .arlo .arlo-tag-list a:hover {
    outline-width: 0; }
  .arlo .arlo-tag-list abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
    /* 2 */ }
  .arlo .arlo-tag-list b,
  .arlo .arlo-tag-list strong {
    font-weight: inherit; }
  .arlo .arlo-tag-list b,
  .arlo .arlo-tag-list strong {
    font-weight: bolder; }
  .arlo .arlo-tag-list code,
  .arlo .arlo-tag-list kbd,
  .arlo .arlo-tag-list samp {
    font-family: monospace, monospace;
    font-size: 1em; }
  .arlo .arlo-tag-list dfn {
    font-style: italic; }
  .arlo .arlo-tag-list h1 {
    font-size: 2em;
    /* Set 1 unit of vertical rhythm on the top and bottom margins. */
    margin: 0.75em 0; }
  .arlo .arlo-tag-list mark {
    background-color: #ff0;
    color: #000; }
  .arlo .arlo-tag-list small {
    font-size: 80%; }
  .arlo .arlo-tag-list sub,
  .arlo .arlo-tag-list sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline; }
  .arlo .arlo-tag-list sub {
    bottom: -0.25em; }
  .arlo .arlo-tag-list sup {
    top: -0.5em; }
  .arlo .arlo-tag-list img {
    border-style: none; }
  .arlo .arlo-tag-list svg:not(:root) {
    overflow: hidden; }
  .arlo .arlo-tag-list figure {
    margin: 1.5em 40px; }
  .arlo .arlo-tag-list hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */ }
  .arlo .arlo-tag-list pre {
    font-family: monospace, monospace;
    font-size: 1em; }
  .arlo .arlo-tag-list button,
  .arlo .arlo-tag-list input,
  .arlo .arlo-tag-list optgroup,
  .arlo .arlo-tag-list select,
  .arlo .arlo-tag-list textarea {
    font: inherit;
    /* 1 */
    margin: 0;
    /* 2 */ }
  .arlo .arlo-tag-list button {
    overflow: visible; }
  .arlo .arlo-tag-list button,
  .arlo .arlo-tag-list select {
    /* 1 */
    text-transform: none; }
  .arlo .arlo-tag-list button,
  .arlo .arlo-tag-list html [type="button"],
  .arlo .arlo-tag-list [type="reset"],
  .arlo .arlo-tag-list [type="submit"] {
    -webkit-appearance: button;
    /* 2 */ }
  .arlo .arlo-tag-list button,
  .arlo .arlo-tag-list [type="button"],
  .arlo .arlo-tag-list [type="reset"],
  .arlo .arlo-tag-list [type="submit"] {
    /**
     * Remove the inner border and padding in Firefox.
     */
    /**
     * Restore the focus styles unset by the previous rule.
     */ }
    .arlo .arlo-tag-list button::-moz-focus-inner,
    .arlo .arlo-tag-list [type="button"]::-moz-focus-inner,
    .arlo .arlo-tag-list [type="reset"]::-moz-focus-inner,
    .arlo .arlo-tag-list [type="submit"]::-moz-focus-inner {
      border-style: none;
      padding: 0; }
    .arlo .arlo-tag-list button:-moz-focusring,
    .arlo .arlo-tag-list [type="button"]:-moz-focusring,
    .arlo .arlo-tag-list [type="reset"]:-moz-focusring,
    .arlo .arlo-tag-list [type="submit"]:-moz-focusring {
      outline: 1px dotted ButtonText; }
  .arlo .arlo-tag-list input {
    overflow: visible; }
  .arlo .arlo-tag-list [type="checkbox"],
  .arlo .arlo-tag-list [type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */ }
  .arlo .arlo-tag-list [type="number"]::-webkit-inner-spin-button,
  .arlo .arlo-tag-list [type="number"]::-webkit-outer-spin-button {
    height: auto; }
  .arlo .arlo-tag-list [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-tag-list [type="search"]::-webkit-search-cancel-button, .arlo .arlo-tag-list [type="search"]::-webkit-search-decoration {
      -webkit-appearance: none; }
  .arlo .arlo-tag-list ::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54; }
  .arlo .arlo-tag-list ::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */ }
  .arlo .arlo-tag-list fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em; }
  .arlo .arlo-tag-list 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-tag-list optgroup {
    font-weight: bold; }
  .arlo .arlo-tag-list textarea {
    overflow: auto; }
  .arlo .arlo-tag-list ol, .arlo .arlo-tag-list ul, .arlo .arlo-tag-list li {
    list-style: none;
    padding: 0;
    margin: 0; }
  .arlo .arlo-tag-list .arlo-bg-color-primary {
    background-color: #08cec2; }
  .arlo .arlo-tag-list .arlo-bg-color-secondary {
    background-color: #ffdb3b; }
  .arlo .arlo-tag-list .arlo-bg-color-highlight {
    background-color: #ffdb3b; }
  .arlo .arlo-tag-list .arlo-bg-color-normal {
    background-color: #08cec2; }
  .arlo .arlo-tag-list .arlo-bg-color-darker {
    background-color: #07b5ab; }
  .arlo .arlo-tag-list .arlo-bg-color-darkest {
    background-color: #069d94; }
  .arlo .arlo-tag-list .arlo-text-color-primary {
    color: #08cec2; }
  .arlo .arlo-tag-list .arlo-text-color-secondary {
    color: #FF1D87; }
  .arlo .arlo-tag-list .arlo-text-color-contrast {
    color: #fff; }
  .arlo .arlo-tag-list .arlo-text-color-lightest {
    color: #bcbcbc; }
  .arlo .arlo-tag-list .arlo-text-color-light {
    color: #969696; }
  .arlo .arlo-tag-list .arlo-text-color-normal {
    color: #636363; }
  .arlo .arlo-tag-list .arlo-text-color-dark {
    color: #565656; }
  .arlo .arlo-tag-list .arlo-text-color-link {
    color: #FF1D87; }
  .arlo .arlo-tag-list .arlo-font-primary {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-tag-list .arlo-font-secondary {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-tag-list .arlo-font-special {
    font-family: "Source Sans Pro", Arial, Tahoma, sans-serif; }
  .arlo .arlo-tag-list .arlo-clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0; }
  .arlo .arlo-tag-list * html .arlo-clearfix {
    zoom: 1; }
  .arlo .arlo-tag-list * {
    box-sizing: border-box; }
  .arlo .arlo-tag-list *:first-child + html .arlo-clearfix {
    zoom: 1; }
  .arlo .arlo-tag-list .icons8 {
    display: inline-block; }
  .arlo .arlo-tag-list .icon-size-36 {
    font-size: 36px; }
  .arlo .arlo-tag-list .icon-size-30 {
    font-size: 30px; }
  .arlo .arlo-tag-list .icon-size-24 {
    font-size: 24px; }
  .arlo .arlo-tag-list .arlo-next-running,
  .arlo .arlo-tag-list .arlo-register-interest,
  .arlo .arlo-tag-list .arlo-find-events,
  .arlo .arlo-tag-list .arlo-show-more,
  .arlo .arlo-tag-list .arlo-button {
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    padding: 11px 25px;
    border-radius: 30px;
    color: white;
    font-style: normal;
    display: inline-block; }
    .arlo .arlo-tag-list .arlo-next-running:hover,
    .arlo .arlo-tag-list .arlo-register-interest:hover,
    .arlo .arlo-tag-list .arlo-find-events:hover,
    .arlo .arlo-tag-list .arlo-show-more:hover,
    .arlo .arlo-tag-list .arlo-button:hover {
      opacity: 0.7; }
  .arlo .arlo-tag-list .arlo-button-shadow,
  .arlo .arlo-tag-list .arlo-find-events,
  .arlo .arlo-tag-list .arlo-show-more,
  .arlo .arlo-tag-list .arlo-next-running {
    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; }
  .arlo .arlo-tag-list h1 {
    font-size: 2.7em;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: normal; }
    .arlo .arlo-tag-list h1 a, .arlo .arlo-tag-list h1 a:hover {
      color: black;
      text-decoration: none;
      cursor: default; }
  .arlo .arlo-tag-list h2 {
    font-style: italic;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: normal; }
  .arlo .arlo-tag-list h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 500; }
  .arlo .arlo-tag-list p {
    padding: 5px 0;
    font-size: 14px; }
  .arlo .arlo-tag-list a {
    color: #FF1D87;
    text-decoration: none; }
    .arlo .arlo-tag-list a:hover {
      text-decoration: none;
      color: #08cec2; }
  .arlo .arlo-tag-list .arlo-eventtemplatecatalogue-list {
    overflow: auto;
    padding: 16px 16px 0; }
    .arlo .arlo-tag-list .arlo-eventtemplatecatalogue-list[max-width~="590px"] li.arlo-eventtemplatecatalogue-listitem {
      width: 100%; }
  .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem {
    width: 49%;
    margin-bottom: 15px;
    float: left;
    -ms-box-shadow: 0 0 8px 5px #e6e6e6;
    -o-box-shadow: 0 0 8px 5px #e6e6e6;
    box-shadow: 0 0 8px 5px #e6e6e6;
    border-radius: 5px;
    padding: 26px;
    background: white; }
    .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem:first-child {
      margin-right: 2%; }
    .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem .arlo-listitem[max-width~="480px"] .arlo-button,
    .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem .arlo-listitem[max-width~="480px"] .arlo-next-running,
    .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem .arlo-listitem[max-width~="480px"] .arlo-register-interest,
    .arlo .arlo-tag-list li.arlo-eventtemplatecatalogue-listitem .arlo-listitem[max-width~="480px"] .arlo-nextrunning {
      width: 100%; }
  .arlo .arlo-tag-list .arlo-description {
    margin-bottom: 30px; }
  .arlo .arlo-tag-list .arlo-name:hover {
    text-decoration: none;
    color: #FF1D87; }
  .arlo .arlo-tag-list .arlo-buttons {
    overflow: auto; }
    .arlo .arlo-tag-list .arlo-buttons .arlo-nextrunning {
      float: left; }
    .arlo .arlo-tag-list .arlo-buttons .arlo-button,
    .arlo .arlo-tag-list .arlo-buttons .arlo-next-running,
    .arlo .arlo-tag-list .arlo-buttons .arlo-register-interest {
      float: left;
      margin-right: 8px;
      margin-bottom: 7px; }
    .arlo .arlo-tag-list .arlo-buttons .arlo-nextrunning a.arlo-register-interest {
      border: 1px solid #08cec2;
      background: transparent;
      color: #08cec2;
      margin-bottom: 7px; }
      .arlo .arlo-tag-list .arlo-buttons .arlo-nextrunning a.arlo-register-interest:hover {
        opacity: 1;
        background: #08cec2;
        color: white; }
    .arlo .arlo-tag-list .arlo-buttons .arlo-nextrunning a:not(.arlo-register-interest) {
      background: #08cec2; }
      .arlo .arlo-tag-list .arlo-buttons .arlo-nextrunning a:not(.arlo-register-interest):hover {
        color: white; }
    .arlo .arlo-tag-list .arlo-buttons .arlo-view-all {
      background: #F1F7FB;
      color: #FF1D87; }
  .arlo .arlo-tag-list .arlo-view-catalogue {
    margin-top: 10px;
    float: left; }

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

        var taglist = {
            moduleType: "EventTemplateCatalogue",
            targetElement: "#arlo-tag-list",
            template: "#tag-list-template",
            includeLoadMoreButton: false,
            includeArloLink: false,
            maxCount: 2,
            maxNextRunningEvents: 2, // Defaults to 1
            customUrls: {
                eventtemplate: "/event-template/",
                venue: "/venue/",
                presenter: "/presenters/"
            },
            filter: {
                tag: "Web_PrivateOnsite"
            },
            callbacks: {
                onShow: tagListOnShow
            }
        };


        var app = new window.ArloWebControls();

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

        function tagListOnShow(getRenderCollectionElements, $) {
            var listItems = getRenderCollectionElements();
            var listParent = $(listItems[0]).parent()[0];

            ElementQueries.init();

            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-content").height();
                    height += $(listItem).find(".arlo-buttons").height();

                    if (height > tallestListItemHeight) {
                        tallestListItemHeight = height + 30;
                    }
                });
                $("#arlo-tag-list .arlo-detail").css("min-height", tallestListItemHeight);
            }

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

            $(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