Sha256: b505dffcce52f171b724a06cdbea689a6a632c9006ba971d08509103c23f7010

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

pageflow.ready = new $.Deferred(function(readyDeferred) {
  window.onload = function() {
    pageflow.browser.detectFeatures().then(function() {
      var slideshow = $('[data-role=slideshow]');
      var body = $('body');

      body.one('pagepreloaded', function() {
        readyDeferred.resolve();
      });

      pageflow.Visited.setup();

      slideshow.each(function() {
        pageflow.events.trigger('seed:loaded');

        pageflow.entryData = new pageflow.SeedEntryData(
          pageflow.seed
        );

        pageflow.Audio.setup({
          audioFiles: pageflow.audioFiles
        });

        pageflow.Slideshow.setup({
          element: $(this),
          pages: pageflow.pages,
          enabledFeatureNames: pageflow.enabledFeatureNames,

          beforeFirstUpdate: function() {
            $('.header').header({slideshow: pageflow.slides});
            $('.overview').overview();
            $('.multimedia_alert').multimediaAlert();

            pageflow.widgetTypes.enhance(body);
            pageflow.phoneLandscapeFullscreen();
          }
        });
      });

      pageflow.links.setup();
      pageflow.FocusOutline.setup(body);
      pageflow.nativeScrolling.preventScrollingOnEmbed(slideshow);
    });
  };
}).promise();

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pageflow-12.4.1 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.rc1 app/assets/javascripts/pageflow/ready.js
pageflow-12.4.0 app/assets/javascripts/pageflow/ready.js
pageflow-12.3.0 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta7 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta6 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta5 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta4 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta3 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta2 app/assets/javascripts/pageflow/ready.js
pageflow-13.0.0.beta1 app/assets/javascripts/pageflow/ready.js
pageflow-12.2.0 app/assets/javascripts/pageflow/ready.js