Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
Arlo Web Control Demo - Presenter - Theme1
Documentation: https://developer.arlo.co/doc/webcontrols/presenter
-->

<!-- Target Element -->
<div class="arlo">
	<div id="presenter"></div>
</div>

<!-- Templates -->
<script type="text/template" id="presenter-template">
	<div class="arlo-presenter-header">
                <% if (ViewUri !== "") { %>
                    <h1>
                        <a class="arlo-presenter-name" href="<%= ViewUri %>">
                            <%= FullName %>
                        </a>
                    </h1>
                <% } else { %>
                    <h1 class="arlo-presenter-name">
                        <%= FullName %>
                    </h1>
                <% } %>

                <% if (ViewUri !== "") { %>
                    <a href="<%= ViewUri %>" class="arlo-view-all-presenter-information">View all presenter information</a>
                <% } %>
            </div>
            <div class="arlo-presenter-content-wrapper">
                <div class="arlo-presenter-information">
                    <div class="arlo-presenter-content">
                        <%= ProfessionalProfile %>
                    </div>
                    <div class="arlo-presenter-extra">
                        <% if (Interests !== "") { %>
                            <div class="arlo-presenter-content-title">
                                <h3>Interests</h3>
                            </div>
                            <div class="arlo-presenter-content">
                                <%= Interests %>
                            </div>
                        <% } %>

                        <% if (Qualifications !== "") { %>
                            <div class="arlo-presenter-content-title">
                                <h3>Qualifications</h3>
                            </div>
                            <div class="arlo-presenter-content">
                                <%= Qualifications %>
                            </div>
                        <% } %>

                        <div class="arlo-presenter-content">
                            <% if (TwitterID !== "" || FacebookID !== "" || LinkedInID !== "") { %>
                                <div class="arlo-presenter-content-title">
                                    <h3>Social Networks</h3>
                                </div>
                            <% } %>

                            <ul class="arlo-social-network-links">
                                <% if (TwitterID !== "") { %>
                                    <li class="arlo-twitter">
                                        <a href="https://www.twitter.com/<%= TwitterID %>" target="_blank"></a>
                                    </li>
                                <% } %>

                                <% if (FacebookID !== "") { %>
                                    <li class="arlo-facebook">
                                        <a href="https://www.facebook.com/<%= FacebookID %>" target="_blank"></a>
                                    </li>
                                <% } %>

                                <% if (LinkedInID !== "") { %>
                                    <li class="arlo-linkedin">
                                        <a href="https://www.linkedin.com/<%= LinkedInID %>" target="_blank"></a>
                                    </li>
                                <% } %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <div class="arlo-presenter-event-templates">
                <div class="arlo-presenter-content-title">
                    <h3>Events</h3>
                </div>

                <%= showPresentersEventTemplates({message: "Get events",
                    loadImmediately: true,
                    customUrls:{
                        eventtemplate: "/event-template/",
                        venue: "/venue/",
                        presenter: "/presenter/"
                    },
                    template: '#presenterdemo-eventtemplatestemplate'})
                %>

            </div>
        </script>

<script type="text/template" id="presenterdemo-eventtemplatestemplate">
	<div class="arlo-event-title">
                <a class="arlo-text-color-link" href="<%= ViewUri %>">
                    <%- Name %>
                </a>
            </div>
            <div class="arlo-event-summary arlo-text-color-light">
                <%- Summary %>
            </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.1/init.js" charset="utf-8" defer="defer"></script>
              
            
!

CSS

              
                $font-primary: 'Source Sans Pro', Arial, Tahoma, sans-serif;
$color-primary: #08cec2;
$color-secondary: #ffdb3b;
$color-tertiary: #ff1d87;
$color-quadinary: #0086e3;
$color-shadow: #e6e6e6;
$color-light: #bcbcbc;
$color-dark: #565656;
$color-background: #ffffff;
$color-black: #000000;
$color-white: #ffffff;

@mixin tablet-screen {
    @media (max-width: 1100px) {
        @content;
    }
}

@mixin mobile-screen {
    @media (max-width: 600px) {
        @content;
    }
}

html {
    box-sizing: border-box;
}

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

/* spinner */
.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%;
}

.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) {
    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 {
    font-family: $font-primary;
}

.arlo a {
    color: $color-tertiary;
    text-decoration: none;
    &:hover {
        color: $color-tertiary
    }
}

.arlo ul.arlo-presenter-listitems {
    margin: 0;
    padding: 0;
    list-style: none;
}

.arlo ul.arlo-presenter-listitems > li {
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
    border-style: none none solid none;
    padding-bottom: 10px;
    border-color: $color-tertiary;
    font-size: 14px;
    overflow: auto;
}

.arlo li.arlo-presenter-listitem h1 {
    font-size: 3em;
    margin-bottom: .4em;
    word-wrap: break-word;
    margin: 0.75em 0;
    a {
        color: $color-dark;
        text-decoration: none;
        font-weight: normal;
        &:hover{
            color: $color-tertiary
        }
    }
}

.arlo a.arlo-view-all-presenter-information {
    display: block;
    font-size: 17px;
    margin-bottom: 22px;
}


.arlo .arlo-presenter-information {
    display: flex;
    flex-wrap: wrap;
}

.arlo ul.arlo-social-network-links {
    overflow: auto;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
}

.arlo ul.arlo-social-network-links li a {
    display: block;
    text-decoration: none;
    height: 64px;
    width: 64px;
    background-repeat: no-repeat;
    background-size: 64px;
    margin-right: 6px;
    &:hover {
        opacity: 0.7;
    }
}

.arlo ul.arlo-social-network-links li.arlo-twitter a {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/597099/01_twitter.png);
}

.arlo ul.arlo-social-network-links li.arlo-facebook a {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/597099/02_facebook.png);
}

.arlo ul.arlo-social-network-links li.arlo-linkedin a {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/597099/07_linkedin.png);
}

.arlo .arlo-eventtemplate-listitems {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.arlo .EventTemplate ul li {
    width: 250px;
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 10px 5px #e6e6e6;
    padding: 18px;
    margin: 15px 30px 15px 0;
    font-size: 80%;
    min-height: 240px;
    max-width: 100%;
}

.arlo .EventTemplate ul li .arlo-event-title a {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: 0;
    font-weight: 400;
    font-style: normal;
    display: block;
    text-decoration: none;
}

.arlo-event-summary.arlo-text-color-light {
    color: $color-light;
    font-size: 14px;
}
              
            
!

JS

              
                (function () {
    document.addEventListener("arlojscontrolsloaded", function () {
        var platformID = "websitetestdata.arlo.co"; // Change platformID to point at your own account

        var presenterDemo = {
            moduleType: "Presenters",
            targetElement: "#presenter",
            template: "#presenter-template",
            presenters: [12],
            queryStringConfig: ['presenter'],
            customUrls: {
                presenter: "/presenter/"
            }
        };
        var app = new window.ArloWebControls();

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

    });
})();
              
            
!
999px

Console