Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I hid control panel of video on mobile using this "video::-webkit-media-controls-panel{display:none}" in responsive.css because it occupy the height of video. But I want to show the control panel when user click the video screen. How can I make it? Any help would be appreciated. than you


What I have tried:

$(document).ready(function () {

var video = document.getElementById('video');
video.addEventListener('click',function(){
   $(#video).css(video::-webkit-media-controls-panel) ;
},false);
Posted
Updated 9-Feb-17 16:58pm
v2

1 solution

correction
JavaScript
$('#video').addClass('video::-webkit-media-controls-panel') ;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900