Sha256: 32dadcc1ac22ac3192157bfe4d88cbaea8da146c9a9273820a89905b64d6cb70

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

//= require openseadragon/jquery

(function($) {
  function initOpenSeadragon() {
    $('picture[data-openseadragon]').openseadragon();
  }

  $(document).on('page:load', initOpenSeadragon);
  $(document).ready(initOpenSeadragon);

  var handler = 'ready';
  if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {
    // Turbolinks 5
    if (Turbolinks.BrowserAdapter) {
      handler = 'turbolinks:load';
    } else {
      // Turbolinks < 5
      handler = 'page:load ready';
    }
  }
  $(document).on(handler, initOpenSeadragon);
})(jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openseadragon-0.3.1 app/assets/javascripts/openseadragon/rails.js