Is there a way to check whether the browser is WebKit or not, and then apply a class for the user Click on a video to play it? If the browser is WebKit, then I want to implement the class. Blur, and if the browser is not WebKit, I want to add a black overlay so that the user can focus on the video. I will not have any clue how to do this, besides, besides applying stigma, no help would be terrible!
if (/webkit/i.test(nivigator.userAgent)) {Document.body .className + = 'blur'; }
Comments
Post a Comment