1(function($, Drupal){ 2 Drupal.behaviors.ftDestinationsShowMoreDestinations = { 3 attach: function(context, settings) { 4 $(context).find('.view-destinations-home, .view-id-destination.view-display-id-destinations_home_2').once('showMoreDestinations', function () { 5 const $view = $(this); 6 let buttonOffsetTop; 7 8 $view.find('.show-more-destinations').on('click', function() { 9 if($view.hasClass('open')) { 10 $('html,body').animate({scrollTop: buttonOffsetTop}, 200, 'linear'); 11 $view.removeClass('open'); 12 } 13 else { 14 buttonOffsetTop = $(this).offset().top - ($(window).height() / 2); 15 $view.addClass('open'); 16 } 17 }); 18 }); 19 } 20 }; 21})(jQuery, Drupal); 22 23;/*})'"*/ 24;/*})'"*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.