Skip to content

Instantly share code, notes, and snippets.

@jcalonso
Created December 13, 2012 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcalonso/4276833 to your computer and use it in GitHub Desktop.
Save jcalonso/4276833 to your computer and use it in GitHub Desktop.
<script>
jQuery(function() {
jQuery('#allinone_bannerWithPlaylist_elegant').allinone_bannerWithPlaylist({
skin: 'elegant',
width: 850,
height: 400,
origThumbImgW: 90,
origThumbImgH: 90,
circleColor: "#c3a62e",
autoPlay: 10
});
//This function enables clicking the menu buttons and displays
//the submenu (if present). It's a workaround for touch devices
$('.menuItem').click(function() {
if ($(this).find('ul').css('display') === 'block') {
$(this).find('ul').css('display', 'none');
}
else {
$(this).trigger('hover');
$(this).find('ul').show();
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment