Sha256: 2eb887d764245f824839ac17cfad52133c01bbd116fc930dae7f0abde470c74c

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

:javascript
  $(function() {

    $.pjax.defaults.timeout = 5000;
    $('a.pjax').pjax('[data-pjax-container]');

    function onAfter(curr, next, opts) {
      var index = opts.currSlide;
      //$('#prev')[index == 0 ? 'hide' : 'show']();
      //$('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
    }
    function onBefore(curr, next, opts) {
      $("#num").html("("+ (opts.currSlide + 1) + " of " + opts.slideCount + ")");
    }
    $('#slideshow')
      .livequery(function(){
      $(this).cycle({
      fx:     'fade',
      prev:   '#prev',
      next:   '#next',
      after:   onAfter,
      before:   onBefore,
      timeout: 0
      });
    });

    $('.myCarousel')
      .livequery(function(){
      $(this).find(".item").first().addClass('active');
      $(this).carousel();
    });

    $.ajaxSetup({
      dataType: "script",
      beforeSend: function() {
        return $("#loader").fadeIn();
      },
      complete: function() {
        return $("#loader").fadeOut();
      }
    });

  });

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pullentity-client-0.0.9 lib/pullentity-client/templates/app/views/shared/js.haml
pullentity-client-0.0.8 lib/pullentity-client/templates/app/views/shared/js.haml