Skip to content

Instantly share code, notes, and snippets.

@jcalonso
Created December 13, 2012 14:48
Show Gist options
  • Save jcalonso/4276833 to your computer and use it in GitHub Desktop.
Save jcalonso/4276833 to your computer and use it in GitHub Desktop.

Revisions

  1. jcalonso revised this gist Dec 13, 2012. 1 changed file with 25 additions and 25 deletions.
    50 changes: 25 additions & 25 deletions diagonalScript.html
    Original file line number Diff line number Diff line change
    @@ -1,29 +1,29 @@
    <script>
    jQuery(function() {
    jQuery(function() {

    jQuery('#allinone_bannerWithPlaylist_elegant').allinone_bannerWithPlaylist({
    skin: 'elegant',
    width: 850,
    height: 400,
    origThumbImgW:90,
    origThumbImgH:90,
    circleColor: "#c3a62e",
    autoPlay: 10
    });
    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();
    }
    });
    });
    //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>
  2. jcalonso renamed this gist Dec 13, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. jcalonso created this gist Dec 13, 2012.
    29 changes: 29 additions & 0 deletions diagonalScript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    <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>