PageSourceSearch

https://mida.ru/local/templates/mida/js/mkb-cookie.js

js mida.ru collected 2026-10-08 13:07:25 UTC 1,992 bytes, 42 lines download raw bytes

1if(typeof jQuery === 'undefined'){
2    console.error('This script requires jQuery library. Please add jQuery into your website. https://jquery.com/download/');
3}
4!function(t) {
5    var f = {
6        b: {},
7        data: {
8            isAccepted: false,
9            template: '<div class="mkbMess-block"><div class="mkbMess_mess">На нашем сайте используются cookie–файлы, в том числе сервисов веб–аналитики. Используя сайт, вы соглашаетесь на обработку персональных данных при помощи cookie–файлов.<br><br><a href="/o-cookie/" target="_blank">Подробнее о сookie-файлах</a> и <a href="/politica-konfidencialnosti/" target="_blank">Политике обработки персональных данных</a>.</div><div class="mkbPopup_acceptBtn">Принять</div></div>'
10        },
11        writeStatus: function(t){
12        	document.cookie;
13            var c = new Date,
14                x = 3600000*24*30,
15                n = c.getTime()+x;
16            c.setTime(n);
17            document.cookie = "cookiesAccepted="+t+"; expires="+c.toUTCString()+"; path=/; domain="+document.domain;
18        },
19        getStatus: function(){
20            var s = 0,
21                a = document.cookie.split('; '),
22                p = 'cookiesAccepted=true';
23            if(a.includes(p)){
24                var s = 1;
25            }
26            return s ? s : 0
27        },
28        init: function(){
29            var b = t('body'),
30                s = f.getStatus();
31            if(s == 0|| typeof s == 'null'){
32                b.append(f.data.template);
33            }
34            b.find('.mkbPopup_acceptBtn').click(function(){
35                f.data.isAccepted = true; f.writeStatus(f.data.isAccepted); t(this).parent().remove()
36            })
37        }
38    };
39    t(function() {
40        f.init()
41    })
42}(jQuery);

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.