PageSourceSearch

https://latinlovemates.com/invar/page-maker/cenix-global-pages.js

js latinlovemates.com collected 2026-09-28 08:01:57 UTC 2,860 bytes, 105 lines download raw bytes

1
2
3    let currUrlSeminar = window.location.href;
4
5document.addEventListener("DOMContentLoaded", function () {
6  const seminarPopup = document.querySelector(".seminar-pop-up");
7  if (!seminarPopup) return;
8
9  const videoBtn = document.createElement("button");
10  videoBtn.textContent = "Watch seminar video here";
11  videoBtn.type = "button";
12  videoBtn.className = "primaryBGColor seminar-modal-area2";
13  videoBtn.addEventListener("click", function () {
14    lity("//www.youtube.com/watch?v=vN-EJbHIHOE");
15  });
16
17  function toggleButton() {
18    if (window.innerWidth <= 991) {
19      if (!seminarPopup.contains(videoBtn)) {
20        seminarPopup.insertBefore(videoBtn, seminarPopup.querySelector(".modal"));
21      }
22    } else {
23      if (seminarPopup.contains(videoBtn)) {
24        seminarPopup.removeChild(videoBtn);
25      }
26    }
27  }
28
29  toggleButton();
30  window.addEventListener("resize", toggleButton);
31
32
33});
34
35
36    const existingViewport = document.querySelector('meta[name="viewport"]');
37
38
39  
40    if (!existingViewport) {
41      const meta = document.createElement('meta');
42      meta.name = "viewport";
43      meta.content = "width=device-width, initial-scale=1.0, shrink-to-fit=no";
44      document.head.appendChild(meta);
45    }
46
47
48    // this code is for the ladies profile or profile menu
49document.addEventListener('DOMContentLoaded', function () {
50  // Desktop share button
51  const shareBtnDesktop = document.getElementById('share-button-desktop');
52  const menuLeft = document.querySelector('.dropdown-menu-left');
53
54  if (shareBtnDesktop && menuLeft) {
55    shareBtnDesktop.addEventListener(
56      'click',
57      function (e) {
58        e.preventDefault();
59        e.stopImmediatePropagation();
60        menuLeft.classList.toggle('open');
61        console.log('JS override active');
62      },
63      true // capture phase to override Bootstrap
64    );
65  }
66
67  // Mobile description toggle
68  const btn = document.querySelector('.mobile-description-btn');
69  const content = document.querySelector('.mobile-description-content');
70
71  if (btn && content) {
72    btn.addEventListener('click', function (e) {
73      e.preventDefault();
74      e.stopImmediatePropagation();
75      content.classList.toggle('open');
76    });
77  }
78});
79
80
81// end
82
83// Header nav active link logic (safe)
84// const navContainer = document.querySelector("#slide-scroll-nav");
85
86document.addEventListener("DOMContentLoaded", () => {
87  const navContainer = document.querySelector("#slide-scroll-nav");
88
89  if (!navContainer) return;
90
91  const currentPath = window.location.pathname;
92  const navLinks = navContainer.querySelectorAll("a");
93
94  navLinks.forEach(link => {
95    const linkPath = new URL(link.href, window.location.origin).pathname;
96
97    if (currentPath === linkPath) {
98      const li = link.closest("li");
99      if (li) {
100        li.classList.add("text-decoration-underline");
101      }
102    }
103  });
104});
105

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.