PageSourceSearch

https://lkg.ru/bitrix/components/aspro/marketing.popup.max/templates/.default/script.js

js lkg.ru collected 2026-10-08 03:31:32 UTC 1,434 bytes, 74 lines download raw bytes

1$(document).ready(function(){
2	if($('.dyn_mp_jqm').length)
3	{
4		var delayNext = 0;
5		$('.dyn_mp_jqm').each(function(i, el) {
6			var jqmBlock = $(el),
7				delay = 0;
8
9			if(!jqmBlock.hasClass('initied')) // first load
10			{
11				jqmBlock.addClass('initied');
12
13				if(jqmBlock.data('param-delay'))
14					delay = jqmBlock.data('param-delay')*1000;
15
16				if (delayNext == delay) {
17					delay += 1000;
18				}
19
20				delayNext = delay;
21
22				if(typeof localStorage !== 'undefined')
23				{
24					var dataLS = localStorage.getItem(jqmBlock.data('ls')),
25						ls = '';
26					try{
27						ls = JSON.parse(dataLS);
28					}
29					catch(e){
30						ls = dataLS
31					}
32					if(!ls || (ls && (ls.TIMESTAMP < Date.now() && ls.TIMESTAMP)))
33					{
34						/*if (timeoutID) {
35							clearTimeout(timeoutID);
36						}*/ 
37						timeoutID = setTimeout(function(){
38							console.log(jqmBlock, delay)
39							jqmBlock.click();
40						}, delay);
41					}
42				}
43				else
44				{
45					var ls = $.cookie(jqmBlock.data('ls'));
46					if(!ls)
47					{
48						/*if (timeoutID) {
49							clearTimeout(timeoutID);
50						}*/ 
51						timeoutID = setTimeout(function(){
52							jqmBlock.click();
53						}, delay);
54					}
55				}
56
57			}
58			else // ajax popup
59			{
60
61			}
62
63		});
64	}
65
66
67	$(document).on('click', '.dyn_mp_jqm_frame .popup-text-info__btn .btn', function() {
68		var closeBtn = $(this).closest('.dyn_mp_jqm_frame').find('.jqmClose');
69
70		if(closeBtn.length) {
71			closeBtn.trigger('click');
72		}
73	}); 
74})

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.