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

<!-- Target Elements -->
<div class="arlo arlo-online-activities-widget">
  <div class="arlo-online-activities-widget-intro">
    <h1><a href="#widget-online-activities">eLearning</a></h1>
    <p class="arlo-text-color-tertiary">Learn online at your own pace</p>
  </div>

  <div class="icons8-tv-show icon-size-150 arlo-icon"></div>

  <div id="online-activities-list"></div>

  <a href="http://theme1.demo.arlo.co/online-activities-list/" class="arlo-footer-link">View all online activities</a>
</div>

<!-- Templates -->
<script type='text/template' id='online-activities-template'>
  <h2 class="arlo-name">
    <a href="<%= ViewUri %>">
      <%= Name %>
    </a>
  </h2>

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

  <div class="arlo-offers">
     <%= formatAdvertisedOffers({
     showPriceWithTaxInclusive: true,
     showSingleOffer: false,
     showLabel: true,
     showCurrencyCode: false,
     showMessage: true,
     showTaxRate: true,
     freeText: "Free"
     }) %>
  </div>

  <div class="arlo-buttons">
     <a class="arlo-more-information arlo-button arlo-bg-color-primary" href="<%= ViewUri %>">More information</a>
     <%= formatRegistrationInfo('link') %>
  </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;
}

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

.arlo.arlo-online-activities-widget .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-online-activities-widget .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-online-activities-widget .arlo-loading-overlay:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.arlo.arlo-online-activities-widget .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-online-activities-widget html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

.arlo.arlo-online-activities-widget body {
  margin: 0;
}

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

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

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

.arlo.arlo-online-activities-widget progress {
  vertical-align: baseline;
}

.arlo.arlo-online-activities-widget template,
.arlo.arlo-online-activities-widget [hidden] {
  display: none;
}

.arlo.arlo-online-activities-widget a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

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

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

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

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

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

.arlo.arlo-online-activities-widget dfn {
  font-style: italic;
}

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

.arlo.arlo-online-activities-widget h1 a,
.arlo.arlo-online-activities-widget h1 a:hover {
  color: black;
  text-decoration: none;
  cursor: default;
}

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

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

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

.arlo.arlo-online-activities-widget sub {
  bottom: -0.25em;
}

.arlo.arlo-online-activities-widget sup {
  top: -0.5em;
}

.arlo.arlo-online-activities-widget img {
  border-style: none;
}

.arlo.arlo-online-activities-widget svg:not(:root) {
  overflow: hidden;
}

.arlo.arlo-online-activities-widget figure {
  margin: 1.5em 40px;
}

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

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

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

.arlo.arlo-online-activities-widget button {
  overflow: visible;
}

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

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

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

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

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

.arlo.arlo-online-activities-widget input {
  overflow: visible;
}

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

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

.arlo.arlo-online-activities-widget [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-online-activities-widget [type="search"]::-webkit-search-cancel-button,
.arlo.arlo-online-activities-widget [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

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

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

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

.arlo.arlo-online-activities-widget 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-online-activities-widget optgroup {
  font-weight: bold;
}

.arlo.arlo-online-activities-widget textarea {
  overflow: auto;
}

.arlo.arlo-online-activities-widget .arlo-bg-color-primary {
  background-color: #0086E3;
}

.arlo.arlo-online-activities-widget .arlo-bg-color-secondary {
  background-color: #ED017B;
}

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

.arlo.arlo-online-activities-widget .arlo-bg-color-highlight {
  background-color: #F1F7FB;
}

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

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

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

.arlo.arlo-online-activities-widget .arlo-text-color-primary {
  color: #0086E3;
}

.arlo.arlo-online-activities-widget .arlo-text-color-secondary {
  color: #ED017B;
}

.arlo.arlo-online-activities-widget .arlo-text-color-tertiary {
  color: #1DC6BC;
}

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

.arlo.arlo-online-activities-widget .arlo-text-color-lightest {
  color: #bbbbbb;
}

.arlo.arlo-online-activities-widget .arlo-text-color-light {
  color: #959595;
}

.arlo.arlo-online-activities-widget .arlo-text-color-normal {
  color: #626262;
}

.arlo.arlo-online-activities-widget .arlo-text-color-dark {
  color: #3c3c3c;
}

.arlo.arlo-online-activities-widget .arlo-text-color-link {
  color: #ED017B;
}

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

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

.arlo.arlo-online-activities-widget .arlo-font-special {
  font-family: "Source Sans Pro", Arial, Tahoma, sans-serif;
}

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

.arlo.arlo-online-activities-widget .arlo-clearfix:after,
.arlo.arlo-online-activities-widget .arlo-event-list:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

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

.arlo.arlo-online-activities-widget * {
  box-sizing: border-box;
}

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

.arlo.arlo-online-activities-widget h1,
.arlo.arlo-online-activities-widget h2 {
  font-weight: normal;
  margin-top: 0;
}

.arlo.arlo-online-activities-widget a {
  text-decoration: none;
  color: #ED017B;
}

.arlo.arlo-online-activities-widget a:hover {
  color: #ED017B;
  text-decoration: underline;
}

.arlo.arlo-online-activities-widget .icon-size-150 {
  font-size: 150px;
}

.arlo.arlo-online-activities-widget .arlo-button,
.arlo.arlo-online-activities-widget .arlo-event-register,
.arlo.arlo-online-activities-widget .arlo-show-more {
  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-online-activities-widget .arlo-button:hover,
.arlo.arlo-online-activities-widget .arlo-event-register:hover,
.arlo.arlo-online-activities-widget .arlo-show-more:hover {
  opacity: 0.7;
  color: white;
  text-decoration: none;
}

.arlo.arlo-online-activities-widget[max-width~="420px"] .arlo-button,
.arlo.arlo-online-activities-widget[max-width~="420px"] .arlo-event-register,
.arlo.arlo-online-activities-widget[max-width~="420px"] .arlo-show-more {
  width: 100%;
  margin-right: 0;
}

.arlo.arlo-online-activities-widget .arlo-buttons {
  margin-top: 20px;
}

.arlo.arlo-online-activities-widget .arlo-buttons > a {
  margin-top: 10px;
  margin-right: 10px;
}

.arlo.arlo-online-activities-widget .arlo-event-register {
  background-color: #ED017B;
}

.arlo.arlo-online-activities-widget .arlo-online-activities-widget-intro {
  margin-bottom: 50px;
}

.arlo.arlo-online-activities-widget .arlo-online-activities-widget-intro h1 {
  font-size: 2.7em;
  margin-bottom: .2em;
}

.arlo.arlo-online-activities-widget .arlo-online-activities-widget-intro p {
  font-size: 1.2em;
  text-transform: uppercase;
}

.arlo.arlo-online-activities-widget .arlo-oa-listitems {
  padding: 0;
  margin: 0;
  list-style: none;
  margin-left: 310px;
}

.arlo.arlo-online-activities-widget .arlo-oa-listitems .arlo-oa-listitem {
  overflow: auto;
  padding: 0 0 50px;
}

.arlo.arlo-online-activities-widget .arlo-name {
  margin-bottom: 14px;
}

.arlo.arlo-online-activities-widget .arlo-name a {
  text-decoration: none;
  color: #3c3c3c;
}

.arlo.arlo-online-activities-widget .arlo-name a:hover {
  color: #ED017B;
}

.arlo.arlo-online-activities-widget .arlo-summary {
  font-size: 14px;
}

.arlo.arlo-online-activities-widget .arlo-offers {
  color: #3c3c3c;
  font-size: 22px;
  margin-top: 10px;
}

.arlo.arlo-online-activities-widget .arlo-show-more-container {
  text-align: center;
}

.arlo.arlo-online-activities-widget .arlo-show-more-container .arlo-show-more {
  width: 300px;
}

.arlo.arlo-online-activities-widget[max-width~="420px"] .arlo-show-more {
  width: 100%;
}

.arlo.arlo-online-activities-widget .arlo-icon {
  color: #0086E3;
  width: 150px;
  float: left;
  line-height: 3;
}

.arlo.arlo-online-activities-widget[max-width~="860px"] .arlo-oa-listitems {
  margin-left: 210px;
}

.arlo.arlo-online-activities-widget[max-width~="670px"] .arlo-icon {
  font-size: 100px;
  line-height: 4;
}

.arlo.arlo-online-activities-widget[max-width~="670px"] .arlo-oa-listitems {
  margin-left: 150px;
}

.arlo.arlo-online-activities-widget[max-width~="500px"] .arlo-icon {
  display: none;
}

.arlo.arlo-online-activities-widget[max-width~="500px"] .arlo-oa-listitems {
  margin-left: 0;
}

.arlo.arlo-online-activities-widget .arlo-footer-link {
  text-transform: uppercase;
  font-size: 15px;
}

.arlo.arlo-online-activities-widget .arlo-footer-link:hover {
  text-decoration: none;
  color: #1DC6BC;
}


body {
    overflow-y: scroll;
}

.arlo {
    max-width: 1300px;
    margin: 50px auto;
}

.arlo>*:first-child:not(.arlo-header) {
    padding-top: 30px;
}

.arlo .arlo-page-header,
.arlo .arlo-full-width {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.arlo .arlo-page-title-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.arlo iframe {
    border: none;
    overflow: hidden;
}

iframe.widget {
    width: 100%;
}
            
          
!
            
              (function () {

    document.addEventListener("arlojscontrolsloaded", function () {
        var platformID = "websitetestdata.arlo.co";

        var onlineActivitiesList = {
            moduleType: "OnlineActivities",
            targetElement: "#online-activities-list",
            template: "#online-activities-template",
            loadMoreButtonText: "Show More",
            maxCount: 2,
            includeLoadMoreButton: false,
            customUrls: {
              eventtemplate: "http://theme1.demo.arlo.co/event-template/",
              venue: "http://theme1.demo.arlo.co/venue/",
              presenter: "http://theme1.demo.arlo.co/presenters/"
            },
            filter: {
                templateID: [11, 177]
            },
            includeArloLink: false

        };

        new window.ArloWebControls().start({
            "platformID": platformID,
            "showDevErrors": true,
            "modules": [onlineActivitiesList]
        });
    });

})();
            
          
!
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