{I" class:ETI"BundledAsset;FI"logical_path;TI"%blacklight_gallery/osd_viewer.js;FI" pathname;TI"“/Users/audreyaltman/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-gallery-0.3.0/app/assets/javascripts/blacklight_gallery/osd_viewer.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+16³WI" length;TiÏI" digest;TI"%980d0fc333bac60f10d30e4c54be28bb;FI" source;TI"Ï(function($) { $.fn.openseadragon = function() { var __osd_counter = 0; function generateOsdId() { __osd_counter++; return "Openseadragon" + __osd_counter; } $(this).each(function() { var $picture = $(this); $picture.addClass('openseadragon-viewer'); if (typeof $picture.attr('id') === "undefined") { $picture.attr('id', generateOsdId()); } var collectionOptions = $picture.data('openseadragon'); var sources = $picture.find('source[media="openseadragon"]'); var tilesources = $.map(sources, function(e) { if ($(e).data('openseadragon')) { return $(e).data('openseadragon'); } else { return $(e).attr('src'); } }); $picture.css('height', $picture.css('height')); $picture.data('osdViewer', OpenSeadragon( $.extend({ id: $picture.attr('id') }, collectionOptions, { tileSources: tilesources }) )); }); return this; }; })(jQuery); (function($) { function initOpenSeadragon() { $('picture[data-openseadragon]').openseadragon(); } $(document).on('page:load', initOpenSeadragon); $(document).ready(initOpenSeadragon); })(jQuery); ;TI"required_assets_digest;TI"%6e91c5b76a54983fa914498d666d3375;FI" _version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F