A Pen by NyanTN

Thumbnail
This awesome code was written by NyanTN, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright NyanTN ©

Technologies

  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  NyanTN</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  <link rel='stylesheet prefetch' href='https://vjs.zencdn.net/4.11.3/video-js.css'>

  
  
</head>

<body>

         <video  id="example_video_youtube"
                src=""
                class="video-js vjs-default-skin vjs-big-play-centered" 
                controls preload="auto" 
                width="100%" 
                height="100%" 
                data-setup='{ 
                                "techOrder": ["youtube"],
                                "src": "https://www.youtube.com/watch?v=i8UYPtRlQUY"
                            }'>
        </video>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://vjs.zencdn.net/4.11.3/video.js'></script>
<script src='https://static.bini.io/cus-videos/vendor/youtube.video.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/NyanTN/a-pen-by-nyantn-MaEOyK */
$(document).ready(function() {
$("#example_video_youtube_youtube_api").bind("contextmenu",function(){
   return false;
});});

$('#example_video_youtube_youtube_api").bind("contextmenu').contents().find("body").mousedown(function(event) {
    switch (event.which) {
        case 1:
            alert('Left mouse button pressed');
            break;
    }
});

// "src": "https://www.youtube.com/watch?v=i8UYPtRlQUY&modestbranding=1"

Comments