PageSourceSearch

https://beeline-ru.online/wp-content/themes/beeline/js/popup-application.js?ver=6.9.5

js beeline-ru.online collected 2026-10-08 07:17:52 UTC 1,161 bytes, 42 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2  const buttons = document.querySelectorAll('.button-application');
3  const popup = document.querySelector('.popup');
4  const body = document.querySelector('body');
5  const closePopupButton = document.querySelector('.popup__close');
6
7  const form = document.querySelector('#popup .wpcf7 form');
8  const submitButton = form.querySelector('input.wpcf7-submit');
9  submitButton.addEventListener('click', function(event) {
10    if (form.getAttribute('data-status') === 'invalid') {
11     // event.preventDefault();
12    }
13  });
14
15  const openPopup = () => {
16    popup.style.display = 'flex';
17    body.style.overflow = 'hidden';
18  };
19
20  const closePopup = () => {
21    popup.style.display = 'none';
22    body.style.overflow = 'visible';
23
24    const allForms = document.querySelectorAll('form.wpcf7-form');
25     allForms.forEach(singleForm => {
26        singleForm.reset();
27        singleForm.setAttribute('data-status', 'init');
28      });
29  };
30
31  if (buttons.length) {
32    buttons.forEach(button => button.addEventListener('click', openPopup));
33    closePopupButton.addEventListener('click', closePopup);
34  }
35});
36
37
38
39
40
41
42

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.