Sha256: dda7444785044e199055344e565dfb7ebd785a8a57296da9badfe9d6865e849d

Contents?: true

Size: 1.83 KB

Versions: 6

Compression:

Stored size: 1.83 KB

Contents

// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
//= require lentil/buttonhandler
//= require fancybox
//= require lentil/addfancybox
//= require infinitescroll/jquery.infinitescroll
//= require lentil/addinfinitescroll
//= require lentil/imageerrors
//= require lentil/addanimatedimages
//= require touchswipe/jquery.touchSwipe
//= require lentil/addobjectfit

// wrapped in anonymous function so FANCYBOX_SPINNER
// is accessible by both addinfinitescroll and addfancybox
(function() {

    var FANCYBOX_SPINNER;

    // fancybox spinner options
    opts = {
        lines: 13, // The number of lines to draw
        length: 7, // The length of each line
        width: 4, // The line thickness
        radius: 10, // The radius of the inner circle
        corners: 1, // Corner roundness (0..1)
        rotate: 0, // The rotation offset
        color: '#fff', // #rgb or #rrggbb
        speed: 1, // Rounds per second
        trail: 60, // Afterglow percentage
        shadow: false, // Whether to render a shadow
        hwaccel: false, // Whether to use hardware acceleration
        className: 'spinner', // The CSS class to assign to the spinner
        zIndex: 2e9, // The z-index (defaults to 2000000000)
        top: 'auto', // Top position relative to parent in px
        left: 'auto' // Left position relative to parent in px
    };

    $(document).ready(function() {

        $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });

        addimageerrors();
        addobjectfit();

        if (window.history.pushState) {
            addfancybox();
            listenforpopstate();
            addinfinitescroll();
        }

        if ($("body.image-show")) {
            buttonhandler();
        }

    });
  })();

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lentil-1.0.5 app/assets/javascripts/lentil/images.js
lentil-1.0.4 app/assets/javascripts/lentil/images.js
lentil-1.0.3 app/assets/javascripts/lentil/images.js
lentil-1.0.2 app/assets/javascripts/lentil/images.js
lentil-1.0.1 app/assets/javascripts/lentil/images.js
lentil-1.0.0 app/assets/javascripts/lentil/images.js