PageSourceSearch

https://www.ibram.df.gov.br/combo?browserId=chrome&minifierType=js…gdf-theme-contributor/js/gdf-contributor.js

js ibram.df.gov.br collected 2026-10-02 10:24:13 UTC 1,630 bytes, 52 lines download raw bytes

1// GDF Theme Contributor - Campo descrição colapsável
2$(document).ready(function () {
3  var initialized = false;
4
5  function initCollapsible() {
6    if (initialized) return;
7
8    var $label = $('label[for*="descriptionMapAsXML"]').first();
9    var $content = $('[id*="descriptionMapAsXMLBoundingBox"]').first();
10
11    if (!$label.length) {
12      $("label").each(function () {
13        if (this.textContent.trim() === "Descrição") {
14          $label = $(this);
15          return false;
16        }
17      });
18    }
19
20    if (!$content.length) {
21      $content = $(".input-localized-editor").first();
22    }
23
24    if ($label.length && $content.length) {
25      initialized = true;
26
27      var icons = {
28        down: '<svg aria-hidden="true" class="ml-2 lexicon-icon lexicon-icon-angle-down" focusable="false"><use href="/o/admin-theme/images/clay/icons.svg#angle-down"></use></svg>',
29        up: '<svg aria-hidden="true" class="ml-2 lexicon-icon lexicon-icon-angle-up" focusable="false"><use href="/o/admin-theme/images/clay/icons.svg#angle-up"></use></svg>',
30      };
31
32      // Remover o CSS que esconde e mostrar a descrição
33      $label.removeAttr("style").addClass("gdf-collapsible-initialized");
34      $content.removeAttr("style").addClass("gdf-collapsible-content");
35
36      $label.append(icons.down).css("cursor", "pointer");
37
38      $content.hide();
39
40      $label.on("click", function () {
41        $content.slideToggle(300);
42        $label
43          .find(".lexicon-icon")
44          .replaceWith($content.is(":visible") ? icons.up : icons.down);
45      });
46    }
47  }
48
49  initCollapsible();
50  setTimeout(initCollapsible, 500);
51});
52

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.