PageSourceSearch

https://bismoscow.com/local/components/bismoscow/iblock.popup.bott…/.default/script.js?17613018812659

js bismoscow.com collected 2026-10-02 18:07:00 UTC 2,659 bytes, 88 lines download raw bytes

1BX.ready(function () {
2  var block = document.getElementById('bism-banner-popup-bottom-data')
3	  if (!block) return
4  var configString = block.text
5  var config = {}
6  try {
7    config = JSON.parse(configString)
8  } catch (e) {
9
10  }
11	if (!config) return
12  var block = document.getElementById('bism-banner-popup-bottom')
13  var showBanner = function () {
14	console.log(6)
15    var storageKey = 'bismBannerPopupTime' + config.storagePrefix
16    //if (!!sessionStorage.getItem(storageKey)) return
17    var currentTime = new Date().getTime()
18    var lastTime = +localStorage.getItem(storageKey)
19	var showCount = +sessionStorage.getItem(storageKey)
20	var showRepeatKey = 'bismBannerPopupRepeat' + config.storagePrefix
21	var showRepeatCount = +localStorage.getItem(showRepeatKey)
22    if (
23		showCount >= 3
24    ) {
25		console.log(4)
26      return
27    }
28  	if(+config.showInterval1 > 0 && showCount === 1 && showRepeatCount<1){
29		if ((currentTime - lastTime) / 1000 < config.showInterval1) {
30			console.log(11)
31			setTimeout(function () {
32			  showBanner()
33			}, +config.showInterval1 * 1000 - (currentTime - lastTime))
34			return
35		}else{
36			localStorage.setItem(showRepeatKey, ++showRepeatCount)
37			console.log('showRepeatCount '+showRepeatCount)
38		}
39	}
40	if(+config.showInterval2 > 0 && showCount === 2 && showRepeatCount<2){
41		if ((currentTime - lastTime) / 1000 < config.showInterval2) {
42			console.log(22)
43			setTimeout(function () {
44			  showBanner()
45			}, +config.showInterval2 * 1000 - (currentTime - lastTime))
46			return
47		}else{
48			localStorage.setItem(showRepeatKey, ++showRepeatCount)
49			console.log('showRepeatCount '+showRepeatCount)
50		}
51	}
52	window.requestAnimationFrame(function () {
53	  block.classList.add('active')
54	  window.requestAnimationFrame(function () {
55		block.classList.add('open')
56	  })
57	})
58	localStorage.setItem(storageKey, currentTime)
59	console.log('show'+showCount)
60  }
61  var closeBanner = function (e) {
62    e.preventDefault()
63    block.classList.remove('open')
64    setTimeout(function () {
65      block.classList.remove('active')
66    }, 400)
67	var storageKey = 'bismBannerPopupTime' + config.storagePrefix
68	var showCount = +sessionStorage.getItem(storageKey)
69
70	sessionStorage.setItem(storageKey, ++showCount)
71	if(+config.showInterval1 > 0 && showCount === 1){
72		console.log(1)
73		setTimeout(function () {
74		  showBanner()
75		}, +config.showInterval1 * 1000)
76	}else if(+config.showInterval2 > 0 && showCount === 2){
77		console.log(2)
78		setTimeout(function () {
79		  showBanner()
80		}, +config.showInterval2 * 1000)
81	}
82	}
83
84  var closeButton = document.getElementById('bism-banner-popup-bottom-close')
85  closeButton.onclick = closeBanner
86	showBanner()
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.