PageSourceSearch

https://www.yesmilano.it/themes/custom/yesmilano2/assets/js/script_yesmilano.js?tlg1gx

js yesmilano.it collected 2026-09-24 08:55:58 UTC 1,671 bytes, 56 lines download raw bytes

1(function ($, Drupal) {
2  'use strict';
3
4  // on load
5  $(function () {
6
7    // fix gallery nelle tab
8    $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
9      var contentId = $(e.target).attr("href");
10      $(contentId).find(".gallery").slick('refresh');
11      // scroll to content
12      $('html, body').animate({
13        scrollTop: $(contentId).offset().top - 150
14      }, 500);
15    });
16
17    // fix gallery negli accordion
18    $('#accordion').on('shown.bs.collapse', function (e) {
19      $(e.target).find(".gallery").slick('refresh')
20    });
21
22    // fit text
23    $('.header_main_visual h1').fitText(0.85, {maxFontSize: '52px'});
24
25  });
26
27  // *** da qui in poi solo behaviors di Drupal
28  if (typeof Drupal === 'undefined') {
29    return;
30  }
31
32  // Filter ajax
33  Drupal.behaviors.edt_aggregatori = {
34    attach: function(context, settings) {
35      $(document).ajaxComplete(function(event, jqXHR, settings) {
36        if (settings.extraData && settings.extraData.view_display_id && settings.extraData.view_display_id.lastIndexOf('aggregatore_') === 0) {
37          if (!$(context).is('.view-with-filter')) {
38            return;
39          }
40          const elements = once('view-aggregatore', '.views-exposed-form', context);
41          elements.forEach(function(element) {
42            // set url after search
43            var formData = $(element).serialize();
44            if(formData) {
45              var url = window.location.href;
46              url = url.replace(/\?.*/, '');
47              url = url + '?' + formData;
48              window.history.pushState({}, document.title, url);
49            }
50          });
51        }
52      });
53    }
54  };
55
56})(jQuery, Drupal);

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.