1// https://drupal.stackexchange.com/questions/200498/hide-the-term-id-on-autocomplete-widget/295790#295790 2(function($, Drupal, drupalSettings){ 3 'use strict'; 4 5 Drupal.behaviors.sectionBackgroundImage = { 6 attach: function(context) { 7 if (window.location.href.indexOf('/layout') == -1) { 8 if (context !== document) { 9 return; 10 } 11 12 Drupal.sectionBackgroundImage.setSectionHeight(); 13 } 14 else { 15 Drupal.sectionBackgroundImage.setSectionLBFriendly(); 16 } 17 } 18 }; 19 20 Drupal.sectionBackgroundImage = { 21 setSectionHeight: function () { 22 let sections = document.querySelectorAll('.layout__region--background'); 23 24 for (let i = 0; i < sections.length; i++) { 25 let height = `${sections[i].parentElement.offsetHeight}px`; 26 sections[i].children[0].children[0].style.height = height; 27 } 28 }, 29 setSectionLBFriendly: function () { 30 let elements = document.querySelectorAll('.layout__region--background .absolute'); 31 32 for (let i = 0; i < elements.length; i++) { 33 elements[i].classList.remove('absolute'); 34 } 35 } 36 }; 37})(jQuery, Drupal, drupalSettings);
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.