PageSourceSearch

https://booksrus.fr/bitrix/components/aspro/marketing.popup.max/templates/.default/script.js?16141915961736

js booksrus.fr collected 2026-09-30 02:37:28 UTC 1,736 bytes, 88 lines download raw bytes

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

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.