Options possible with video components

Option 1: pop-up video

To create a pop up video effect, copy and paste the following HTML code in a Raw HTML component and change the highlighted in blue text.

<!-- thumbnail wrapped in a link -->
<a href="#img1">
 <center> click here </center>
</a>

<!-- lightbox container hidden with CSS -->
<a href="#_" class="lightbox" id="img1">
<div id="videoModal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="videoModalLabel" aria-hidden="false" style="display: block;">
  <div class="modal-header">
    <button type="button" class="close full-height" data-dismiss="modal" aria-hidden="true">X</button>
    <h3>Donna Galletta- Showreel</h3>
  </div>
  <div class="modal-body"><iframe width="870" height="489" src="https://s3-us-west-1.amazonaws.com/lt-video-us/Philippe+Riveron+4.25.2017_1+External.mp4" frameborder="0" allowfullscreen=""></iframe></div>
  <div class="modal-footer"></div>
</div>
 
<style> 

.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
}
.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

/** videoModal **/
#videoModal {
  border-radius: 0;
  width: 870px;
  margin:auto;
  position: static;
  margin-top: 60px;}
  #videoModal .modal-header {
    background: #000;
    border: 0;
    color: #fff;
    position: relative;
		  height:35px; }
    #videoModal .modal-header h3 {
      font-size: 18px;
      line-height: 22px;
	  font-family:Arial, Helvetica, sans-serif;
	  padding:5px;}
  #videoModal .modal-body {
    height: 489px;
    padding: 0;
    max-height: none;
    overflow: hidden; }
  #videoModal .modal-footer:empty {
    display: none !important; }
  #videoModal .close {
    background: #000;
    color: #fff;
    font-size: 24px;
    margin: 0;
    opacity: 1;
    position: absolute;
    right: 0;
    text-shadow: none;
    top: 0;
    width: 38px; 
    padding-right: 7px;}
  
</style>

Learner platform display (before clicking on the link):

Learner platform display (after clicking on the link):

Still in development, be patient!

Option 2: new window video

To create a new window video effect, copy and paste the following HTML code in a Raw HTML component and change the highlighted in blue text.

<script>
  
  function popup(page) {
    window.open(page,'popup','width=685, height=455, toolbar=false, scrollbars=false');
    }
  
  </script>

<style>
  
.myButton {
	background-color:#ce0059;
	-moz-border-radius:28px;
	-webkit-border-radius:28px;
	border-radius:28px;
	border:1px solid #18ab29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:17px;
	padding:16px 31px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2f6627;
}
.myButton:hover {
	background-color:#ce0059;
}
.myButton:active {
	position:relative;
	top:1px;
}
</style>

  <input class="myButton" type="button" onclick="popup('https://s3-us-west-1.amazonaws.com/lt-video-us/CredentialsNeeded_V06.mp4');" value="Voir la vidéo">

Learner platform display (before clicking on the button):

Learner platform display (after clicking on the button):

Login to leave your feedback!

Leave a Reply

You must be logged in to post a comment.