PageSourceSearch

https://www.em.com.br/static/js/ver-mais-scripts.js

js em.com.br collected 2026-09-24 08:35:58 UTC 1,196 bytes, 37 lines download raw bytes

1var params = new URLSearchParams(window.location.search);
2var page = params.get("p") ? params.get("p") : 1;
3const readMore = document.querySelector("#em-read-more");
4
5let observer_img = new IntersectionObserver(
6  (entries, observer) => {
7    entries.forEach((entry) => {
8      if (entry.isIntersecting) {
9        entry.target.src = entry.target.dataset.src;
10        observer.unobserve(entry.target);
11      }
12    });
13  },
14  { rootMargin: "0px 0px 200px 0px" }
15);
16
17if (readMore) {
18  readMore.addEventListener("click", function () {
19    const scropPosition = document.documentElement.scrollTop;
20    page += 1;
21    let pai = this.parentNode.parentNode;
22    let local = pai.querySelector("#search-results-item");
23    fetch(
24      `/webparts/${site_id}/${site_sec}/${page}/`
25    )
26      .then((resp) => {
27        resp.text().then((info) => {
28          console.log(`http://estadodeminas.local/webparts/${site_id}/${site_sec}/${page}/`);
29          local.insertAdjacentHTML("beforeend", info);
30          document.documentElement.scrollTop = scropPosition;
31          local.querySelectorAll("[data-src]").forEach((img) => {
32            observer_img.observe(img);
33          });
34        });
35      });
36  });
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.