PageSourceSearch

https://zavod-uraldorsvet.ru/local/templates/zu/js/index.js

js zavod-uraldorsvet.ru collected 2026-09-24 11:13:30 UTC 2,279 bytes, 56 lines download raw bytes

1    if( !localStorage.getItem('cookie_agree') ){
2
3		setTimeout(function(){
4        	$("body").append('<div id="cookie_notification" class="show"> <p>Для улучшения работы сайта и его взаимодействия с пользователями мы используем файлы cookie. Продолжая работу с сайтом, Вы разрешаете использование cookie-файлов. Вы всегда можете отключить файлы cookie в настройках Вашего браузера.</p> <button class="button cookie_accept">Принять</button> </div>');
5		},4500);
6
7        if( $(".product_page").length > 0 ){
8            $(".cookie_alert_block").addClass("up");
9        }
10    }
11
12    $(document).on("click", ".cookie_accept", function(){
13        localStorage.setItem('cookie_agree', 1);
14        $("#cookie_notification").remove();
15    })
16
17$("#navToggle").click(function() {
18	    $(this).toggleClass("active");
19	    $(".overlay").toggleClass("open");
20	    // this line ▼ prevents content scroll-behind
21	    $("body").toggleClass("locked");
22	});
23	$('.overlay').click(function() {
24	    
25	    
26});
27
28
29
30$(document).on("click", "section.faq .faq_wrapper .el .name", function(){
31	$(this).parent().toggleClass("active");
32	return false;
33})
34/*
35function checkCookies(){
36    let cookieDate = localStorage.getItem('cookieDate');
37    let cookieNotification = document.getElementById('cookie_notification');
38    let cookieBtn = cookieNotification.querySelector('.cookie_accept');
39
40    // Если записи про кукисы нет или она просрочена на 1 год, то показываем информацию про кукисы
41    if( !cookieDate || (+cookieDate + 31536000000) < Date.now() ){
42        cookieNotification.classList.add('show');
43    }
44
45    // При клике на кнопку, в локальное хранилище записывается текущая дата в системе UNIX
46    cookieBtn.addEventListener('click', function(){
47        localStorage.setItem( 'cookieDate', Date.now() );
48        cookieNotification.classList.remove('show');
49    })
50}
51checkCookies();
52*/
53
54setTimeout(function(){
55    $("#cookie_notification").removeClass('none');
56},30000);

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.