1
setTimeout(function(){
2
document.querySelector('body').addEventListener('mousemove', o => {
3
//if(o.clientY < 2 && !1 === $(".box-before-closing .layout").is(":visible")) {
4
if(o.clientY < 2) {
5
var e = document.querySelector(".box-before-closing .popup.popup_vk");
6
var p = document.body.clientHeight / 2-e.offsetHeight / 2;
7
var t = document.body.clientWidth / 2-e.offsetWidth / 2;
8
e.style.top = p + 'px';
9
e.style.left = t + 'px';
10
e.style.visibility = 'visible';
11
document.querySelector('.box-before-closing .layout').style.display = 'block';
12
}
13
});
14
},1e4);
15
document.querySelector('.box-before-closing .close-it').addEventListener('click', e => {
16
document.querySelector('.box-before-closing .popup').style.left = '-9999px';
17
document.querySelector('.box-before-closing .popup').style.visibility = 'hidden';
18
document.querySelector('.box-before-closing .layout').style.display = 'none';
19
});
20
/*
21
$(".post-ad").find("br").each(function(){
22
$(this).remove()
23
});*/