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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!--Disclaimer: This CodePen is provided for instructional purposes only. Vidyard cannot support or guarantee any dependencies on third-party code or libraries such as JavaScript, jQuery or CSS-->

<!--
Choose your own adventure through a playlist - 6 options (flexible)
V2.2 - Chris Broughton Mar 2020

This code will allow you to select a video within the playlist of the player. Use as a Full Screen post roll Event for each video

Edit the video thumbnail images and text for each option. More or less options can be added

Edit background image on line 17. Edit Title on line 23. Each Option text can be renamed or removed.
 
Copy/Delete sections from 
VIDEO OPTION START to VIDEO OPTION END for more or less. Use the comments on line 30 etc to change hyperlink option to a chapter selector.

-->
<style>body{
/*Background Image URL*/  
background-image: url("https://www.vidyard.com/media/doodly-patterns.png.webp"); 
  background-size: cover;}a{cursor:pointer;}.vidyard-cta-holder .vidyard_padding{height: 99%;}img:hover, img:focus{text-decoration: none -webkit-transform: scale(1.1); -moz-transform: scale(1.1); -ms-transform: scale(1.1); -o-transform: scale(1.1); transform: scale(1.1); -webkit-filter: brightness(90%); -moz-filter: brightness(100%); -o-filter: brightness(100%); -ms-filter: brightness(100%); filter: brightness(100%); box-shadow: 6px 5px 22px 7px rgba(0, 0, 0, 0.15); -webkit-box-shadow: 6px 5px 22px 7px rgba(0, 0, 0, 0.15);}img{transition: .3s ease all; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; -ms-transition: all 0.5s ease-out; -o-transition: all 0.5s ease-out; transition: all 0.5s ease-out; box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.15); -webkit-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.15); width: 28vw; cursor: pointer; margin: 1vw; margin-top: 4vw; -webkit-filter: brightness(90%); -moz-filter: brightness(90%); -o-filter: brightness(90%); -ms-filter: brightness(90%); filter: brightness(90%);}.outer{margin: auto; display: table; height: 100%; width: 100%;}div{display: inline-block; text-align: center;}.middle{display: table-cell; vertical-align: middle; padding: 1vw;}p{font-family: "open sans", sans-serif; font-size: 2vw; margin: 0px;}h2{font-family: "open sans", sans-serif; font-size: 3vw; margin: 0px; text-shadow: 4px;}</style>
<div class="outer">
 <div class="middle">
 <p>
   <!--Title-->
 <h2>Choose your next video!</h2>
 </p>
 <div class="options-container">
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(1)">
--> 
 <a href="http://learn.vidyard.com/marketing/watch/4MYZhKsRmFA2hRjh6Qge4x" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/4MYZhKsRmFA2hRjh6Qge4x.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 1</p>
 </div>
 <!--VIDEO OPTION END-->
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(2)">
--> 
 <a href="//learn.vidyard.com/marketing/watch/jpAA6UKM3YsdowdPYibxZU" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format //play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/G4qrRHWJqFCYoLdMMHYknH.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 2</p>
 </div>
 <!--VIDEO OPTION END-->
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(3)">
--> 
 <a href="//learn.vidyard.com/marketing/watch/o5rWPXEaXgChj7xHBJ6sUy" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format //play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/o5rWPXEaXgChj7xHBJ6sUy.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 3</p>
 </div>
 <!--VIDEO OPTION END-->
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(4)">
--> 
 <a href="//learn.vidyard.com/marketing/watch/j2PYBcBVsxwLMXBWeYN3E8" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format //play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/j2PYBcBVsxwLMXBWeYN3E8.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 4</p>
 </div>
 <!--VIDEO OPTION END-->
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(5)">
--> 
 <a href="//learn.vidyard.com/marketing/watch/MThQExrmNLhWiyDJGyT9es" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format //play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/MThQExrmNLhWiyDJGyT9es.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 5</p>
 </div>
 <!--VIDEO OPTION END-->
 <!--VIDEO OPTION START-->
 <div class="option">
 <!--Change link to target another video page NOTE: to use a playlist selector, replace the next section with: 
<a onclick="jumpToVideo(6)">
--> 
 <a href="//learn.vidyard.com/marketing/watch/J3QiaTuaZE3rjcXvNPaq19" target="_top">
 <!--Change image URL. For a Vidyard player thumbnail, you can use the format //play.vidyard.com/UUID.jpg?email=1--><img src="//play.vidyard.com/J3QiaTuaZE3rjcXvNPaq19.jpg?email=1" /></a>
 <div class="overlay"></div>
 <!--Change the Video Title here-->
 <p class="option-description">Option 6</p>
 </div>
 <!--VIDEO OPTION END-->
 </div>
 </div>
</div>
<script type="text/javascript">
  function jumpToVideo(chapter_index) {
                                  API.closeCta( {
                                      disablePlay: true
                                  }
                                  );
                                  API.playChapter( {
                                      chapter_index: chapter_index
                                  }
                                  );
                              }
</script>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console