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

<!--4 options CYAO panel - edited by Chris Broughton November 2019 
Change the Title & Subtitle on line 6. Panel colors, images & text on lines 8/13/18 - Option and button text on 10/15/21. See comments in the HTML for further directions --> <style>
 html{height:100%}*,*:before,*:after{box-sizing:border-box}body{background-color:#eaeaea;font-family:sans-serif;height:100%}.vidyard_padding{height:100%}.cta-full{height:100%;width:100%}.cta-quarter{float:left;height:50%;width:25%;background-color:#EBEEFF}.cta-block{display:table;height:100%;width:100%}.cta-block-inner{display:block;padding-top:9vw;text-align:center;vertical-align:middle}.replayinner{display:block;padding:1vw;text-align:center;vertical-align:middle}.cta-block p{font-size:2.5vw;margin:0}.cta-block p.white{color:#FFF}.cta-block p + .btn{cursor:pointer;margin-top:10px}.cta-block .btn{margin-top:1vw}.cta-block .btn{cursor:pointer;background-color:#000000;border-radius:4px;color:#000;border-color:#333333;display:inline-block;font-size:2vw;letter-spacing:1px;padding:1vw 2vw;text-decoration:none;border:1px solid #666666}.cta-block .btn:hover{background-color:#333333}a{cursor:pointer}.btn.purple{background-color:#6361FA;color:#fff}.btn.purple:hover{background-color:#414DD4}.btn.white{cursor:pointer;background-color:#fff;color:#333333}.btn.white:hover{background-color:#eaeaea}a{cursor:pointer}h2{color:#0F1F29;text-align:center;margin-block-end:1vw;margin-block-start:1vw;font-size:4vw;padding-top:1vw}p.titlep{color:#232938;text-align:center;margin-block-start:.3em;;margin-block-end:.5em;font-size:2.5vw}.replayoverview{height:20%}.title{width:98%;height:22%;margin:auto;margin-bottom:1vw;background:#fff;;border-radius:4px;box-shadow:0 0 1px 1px rgba(45,52,69,.05),0 1px 3px 0 rgba(45,52,69,.15);outline:1px solid transparent}.replay{background-color:grey;width:98%;height:0%; position:absolute; bottom:1vw; left:1vw; right:1vw; margin-top:1vw; background: #fff;border-radius: 4px;box-shadow: 0 0 1px 1px rgba(45, 52, 69, 0.05), 0 1px 3px 0 rgba(45, 52, 69, 0.15);outline: 1px solid transparent;}
</style><div class="title">
  <!--Edit title and description text-->
  <h2>Want to continue watching?</h2><p class="titlep">Choose from the following options…</p></div><div class="cta-quarter"> 
      <!--LEFT PANEL - change background-color and image if needed-->
      <div class="cta-block left" style="background-color:firebrick;background-image:url('https://vyexample.com/cbroughton/playbu4.png');background-size:cover;background-blend-mode:color-burn;background-position: center;z-index: 1;background-repeat: no-repeat;"><div class="cta-block-inner" style="z-index: 9999;">
      <!--LEFT PANEL - change text for option-->
      <p class="white">Option 1</p><a class="btn white" onclick="jumpToVideo(1)">Go!</a></div></div></div>
<div class="cta-quarter"> 
      <!--MIDDLE PANEL - change background-color and image if needed-->
      <div class="cta-block middle" style="background-color:navy;background-image:url('https://vyexample.com/cbroughton/playbu4.png');background-size:cover;background-blend-mode:color-burn;background-position: center;z-index: 1;background-repeat: no-repeat;"><div class="cta-block-inner">
      <!--MIDDLE PANEL - change text for option-->
      <p class="white">Option 2</p><a class="btn white" onclick="jumpToVideo(2)">Go!</a> </div></div></div>
<div class="cta-quarter"> 
      <!--RIGHT PANEL - change background-color and image if needed-->
      <div class="cta-block right" style="background-color:darkgreen;background-image:url('https://vyexample.com/cbroughton/playbu4.png');background-size:cover;background-blend-mode:color-burn;background-position: center;z-index: 1;background-repeat: no-repeat;">
<div class="cta-block-inner"> 
      <!--RIGHT PANEL - change text for option-->
      <p class="white">Option 3</p><a class="btn white" onclick="jumpToVideo(3)">Go!</a> </div></div></div>
<div class="cta-quarter"> 
<!--RIGHT PANEL - change background-color and image if needed-->
      <div class="cta-block right" style="background-color:darkgoldenrod;background-image:url('https://vyexample.com/cbroughton/playbu4.png');background-size:cover;background-blend-mode:color-burn;background-position: center;z-index: 1;background-repeat: no-repeat;">
<div class="cta-block-inner"> 
      <!--FAR RIGHT PANEL - change text for option-->
      <p class="white">Option 4</p><a class="btn white" onclick="jumpToVideo(4)">Go!</a> </div></div></div>
<!--BOTTOM REPLAY PANEL-->
<div class="cta-block replay" style="">
<div class="replayinner">
<p class="black">Replay</p>
<a class="btn" onclick="jumpToVideo(0)"><img src="https://vyexample.com/cbroughton/replay.png" style="width:1.5vw;-webkit-filter: invert(1);
 filter: invert(1);"></a></div></div>
<script type="text/javascript">
  function jumpToSecond(second) {
                              var ctaId=window.frameElement.id.split('_')[1];
                              var playerId=window.frameElement.src.split('/');
                              playerId=playerId[playerId.length-3];
                              var playerData= {
                                  uuid: playerId, event: 'seek', position: second
                              }
                              ;
                              window.parent.postMessage(JSON.stringify(playerData), '*');
                          }
</script> <script type="text/javascript">
  function jumpToVideo(chapter_index) {
                              API.closeCta( {
                                  disablePlay: true
                              }
                              );
                              API.playChapter( {
                                  chapter_index: chapter_index
                              }
                              );
                          }
</script>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console