JSFiddle - React, Tailwind, and code Playground

by Thomas Pitera

HTML

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<div class="left">
sample text
</div>
<div id="myModal" class="modal">
<div id="dialog" class="modal-content" title="Shipments4You Notification" style="display: none;">
  <p>The rows that have your item can be dragged and dropped into new order in the table</p>
  <video width="320" height="240" controls autoplay>
    <source src="http://www.youtube.com/embed/1AH9VEM_qC0?rel=0" type="video//mp4">
  </video>
</div>

CSS

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #368BC1;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    background-color: #FF0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

JavaScript

$(document).ready(function() {
     $( '.left').one( "mouseover", function() {
        $( "#dialog" ).dialog();
		});
       
});