Sha256: 6df27b4fac8daf1e1fd7fe8de690c3cf0322f7125c9ef61c48d2bd2c5a5b7f35

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

pageflow.react.registerPageTypeWithDefaultBackground('internal_links_grid', {
  prepareNextPageTimeout: 0,

  enhance: function(pageElement, configuration) {
    pageElement.on('click', 'nav .thumbnail', function() {
      pageflow.slides.goToByPermaId($(this).data('page'), {
        transition: $(this).data('pageTransition')
      });
      return false;
    });
  },

  update: function(pageElement, configuration) {
    pageElement.find('h2 .tagline').text(configuration.get('tagline') || '');
    pageElement.find('h2 .title').text(configuration.get('title') || '');
    pageElement.find('h2 .subtitle').text(configuration.get('subtitle') || '');
    pageElement.find('p').html(configuration.get('text') || '');

    pageElement.find('.shadow').css({
      opacity: configuration.get('gradient_opacity') / 100
    });

    pageElement.find('nav').attr('data-layout', configuration.get('linked_pages_layout'));
  }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-internal-links-1.1.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js
pageflow-internal-links-1.0.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js