PageSourceSearch

https://arquitectes.cat/sites/default/files/js/js_JHZWz-2pJjDEJkksRslbmMJtT9C5Qmhd0_MUR76QvNo.js

js arquitectes.cat collected 2026-09-24 09:33:49 UTC 1,164 bytes, 37 lines download raw bytes

1(function ($) {
2Drupal.behaviors.lang_dropdown = {
3  attach: function (context, settings) {
4    var settings = settings || Drupal.settings;
5
6    if (settings.lang_dropdown) {
7      var flags = settings.lang_dropdown.jsWidget.languageicons;
8      if (flags) {
9        $.each(flags, function(index, value) {
10          $('select.lang-dropdown-select-element option[value="' + index + '"]').attr('title', value);
11        });
12      }
13      var msddSettings = settings.lang_dropdown.jsWidget;
14
15      $('select.lang-dropdown-select-element').msDropDown({
16        visibleRows: msddSettings.visibleRows,
17        rowHeight: msddSettings.rowHeight,
18        animStyle: msddSettings.animStyle,
19        mainCSS: msddSettings.mainCSS
20      });
21    }
22
23    try {
24      $('select.lang-dropdown-select-element').change(function() {
25        var lang = this.options[this.selectedIndex].value;
26        var href = $(this).parents('form').find('input[name="' + lang + '"]').val();
27        window.location.href = href;
28      });
29    } catch (e) {
30      if (console) { console.log(e); }
31    }
32
33    $('form#lang-dropdown-form').after('<div style="clear:both;"></div>');
34  }
35};
36})(jQuery);
37;

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.