text: (function($) {
    $(document)
      .on('mouseenter mouseleave', 'div.photo', (e) => {
        const $details = $(e.currentTarget).find('.details');
  
        if (e.type == 'mouseenter') {
          $details.fadeTo('fast', 0.7);
        } else {
          $details.fadeOut('fast');
        }
      });
  
    $(() => {
      $('#more-photos')
        .click((e) => {
          e.preventDefault();
          $(e.target).trigger('nextPage');
        });
    });
  })(jQuery);
  