PageSourceSearch

https://chateaudetalu.ru/local/components/uniqtrip/forms/templates/age-modal/script.js

js chateaudetalu.ru collected 2026-10-06 22:59:36 UTC 1,323 bytes, 33 lines download raw bytes

1$(document).ready(function () {
2  let today = new Date();
3  let isoDate = today.toISOString().slice(0, 10);
4  let accessDate = localStorage.getItem('accessDate');
5  $(document).ready(function () {
6    //var access = sessionStorage.getItem('ageAccess');
7    var access = localStorage.getItem('ageAccess');
8    if (access === null) {
9      $("#popup-adult").css({visibility: "unset", opacity: "unset"});
10    } else {
11      if (isoDate == accessDate) {
12        $("#popup-adult").css({visibility: "hidden", opacity: 0});
13        // дополнительное условие на показ сообщения, отображение которого зависит от вашей верстки
14        if (access === "N") $("#text-modal").html('Вам нет 18-ти!');
15      } else {
16        $("#popup-adult").css({visibility: "unset", opacity: "unset"});
17      }
18    }
19  })
20
21  $("#access-age").click(function () {
22    $("#popup-adult").css({visibility: "hidden", opacity: 0});
23    sessionStorage.setItem('ageAccess', 'Y');
24    localStorage.setItem('ageAccess', 'Y');
25    localStorage.setItem('accessDate', isoDate);
26  });
27
28  $("#dont-access-age").click(function () {
29    $("#text-modal").html('Вам нет 18-ти!');
30    sessionStorage.setItem('ageAccess', 'N');
31    localStorage.setItem('ageAccess', 'N');
32  });
33});

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.