Created
May 9, 2016 02:29
-
-
Save sunilw/bcba190563402c9f4c6ea3fbededb3ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
videoControlContainer.on( 'click', function() { | |
if (bubblesVideo.prop('muted') == true) { | |
console.log("clicked the control"); | |
bubblesVideo.prop('muted', false) ; | |
videoControlContainer.css('background-position', '') | |
.css('background-position-y', '0') ; | |
} else if (bubblesVideo.prop('muted') == false) { | |
console.log("clicked the control"); | |
bubblesVideo.prop('muted', true) ; | |
videoControlContainer.css('background-position', '') | |
.css('background-position-y', '-52px') ; | |
} else { | |
console.log("you messed up your conditions"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment