Skip to content

Commit 4a5d996

Browse files
authored
Update and rename video.html to hover-video-com-javascript.html
1 parent 7a393bf commit 4a5d996

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

video.html renamed to hover-video-com-javascript.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616

1717
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
1818
<script>
19-
/*JQuery*/
20-
/*
21-
var $video = $('#video');
22-
$video.on('mouseenter focus', function(){
23-
$video.get(0).play();
24-
});
25-
$video.on('mouseout blur', function(){
26-
$video.get(0).pause();
27-
});
28-
*/
29-
3019
/*Javascript*/
3120
var video = document.getElementById('video')
3221
video.addEventListener('mouseover', function() {
@@ -38,4 +27,4 @@
3827
}, false);
3928
</script>
4029
</body>
41-
</html>
30+
</html>

0 commit comments

Comments
 (0)