PageSourceSearch

https://www.infobae.com/pf/resources/dist/infobae/js/main.js?d=4447

js infobae.com collected 2026-09-24 07:37:33 UTC 1,995 bytes, 74 lines download raw bytes

1(self["webpackChunkInfobae_PageBuilder_Fusion_Features"] = self["webpackChunkInfobae_PageBuilder_Fusion_Features"] || []).push([[21],{
2
3/***/ 9
4(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5
6/* Multisite global vanilla JS entry point */
7__webpack_require__(10);
8
9
10/***/ },
11
12/***/ 10
13() {
14
15/* eslint wrap-iife: "off", func-names: "off" */
16(function () {
17  function resolveAdMargin() {
18    const megalateral = document.getElementsByClassName('ad-megalateral')[0];
19    if (!megalateral) {
20      return;
21    }
22
23    const targetNode = document.getElementsByClassName('sticky-navbar-ad-container')[0];
24    const shareBar = document.getElementsByClassName('share_bar')[0];
25    const sectionNav = document.getElementsByClassName('section-nav')[0];
26    let baseHeight = 0;
27
28    if (targetNode) {
29      baseHeight += targetNode.offsetHeight;
30    }
31    if (shareBar) {
32      baseHeight += shareBar.offsetHeight;
33    }
34    if (sectionNav) {
35      baseHeight += sectionNav.offsetHeight;
36    }
37    megalateral.style.top = `${baseHeight}px`;
38  }
39
40  function sleep(ms) {
41    return new Promise(resolve => setTimeout(resolve, ms));
42  }
43
44  function observerCallback() {
45    sleep(500).then(() => resolveAdMargin());
46  }
47
48  if (typeof window !== 'undefined' && window.screen.width > 990) {
49    sleep(1000).then(() => {
50      resolveAdMargin();
51      const observer = new MutationObserver(observerCallback);
52      const targetNode = document.getElementsByClassName('sticky-navbar-ad-container')[0];
53      const config = {
54        attributes: true,
55        childList: false,
56        subtree: false,
57        attributeFilter: ['style'],
58      };
59      if (targetNode) {
60        observer.observe(targetNode, config);
61      }
62    });
63  }
64})();
65
66
67/***/ }
68
69},
70/******/ __webpack_require__ => { // webpackRuntimeModules
71/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
72/******/ var __webpack_exports__ = (__webpack_exec__(9));
73/******/ }
74]);

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.