Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Welcome to Code Forum!
Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
I've tried doing this to swap the class, but it didn't work:
$('.video').parent().click(function () {
if($(this).children(".video").get(0).paused){
$(this).children(".video").get(0).play();
$(this).children(".playpause").toggleClass('.playpause .playpause2');
}else{...
Correct! This already loads the background image: background-image:url(http://png-4.findicons.com/files/icons/2315/default_icon/256/media_play_pause_resume.png);
And I would like to change that image based on that state please.
I used the Jfiddle below to setup a button that would play/pause a background video. However, I need to swap the background image so that when its playing a "pause image" is there, when paused a "play image" is there.
https://jsfiddle.net/svArtist/9ewogtwL/
$('.video').parent().click(function...