Skip to content

Instantly share code, notes, and snippets.

@williankeller
Created December 22, 2015 08:45
Show Gist options
  • Select an option

  • Save williankeller/605be6a0bc00262c0b8b to your computer and use it in GitHub Desktop.

Select an option

Save williankeller/605be6a0bc00262c0b8b to your computer and use it in GitHub Desktop.
/*
* Hide sidebar on video start manually
* @returns {undefined}
*/
function hideSidebar() {
// Variables
var $thumbVideoSection = jQuery('.thumbnails-video-section'), $shareSection = jQuery('.share-section');
$thumbVideoSection.addClass('retracted') ;
$shareSection.addClass('retracted');
$thumbVideoSection.hover(function() {
$thumbVideoSection.removeClass('retracted');
$shareSection.removeClass('retracted');
},function (){
$thumbVideoSection.addClass('retracted') ;
$shareSection.addClass('retracted');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment