PageSourceSearch

https://www.modelaircraft.org/modules/contrib/image_background_for…/js/image_background_formatter.js?v=1.x

js modelaircraft.org collected 2026-09-24 09:05:43 UTC 496 bytes, 19 lines download raw bytes

1'use strict';
2
3(function ($, Drupal, once) {
4
5  Drupal.behaviors.image_background_formatter = {
6    attach: function (context, settings) {
7
8      $(once('once-id-img-background-formatter', '.image-background-formatter')).each(function () {
9        const bg = $(this).data('bg');
10        if (bg !== '' && $(this).css('background-image') === 'none') {
11          $(this).css({
12            'background-image': 'url(' + bg + ')'
13          });
14        }
15      });
16    }
17  };
18
19})(jQuery, Drupal, once);

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.