function isCollide(a, b) {
return !(
((a.y + a.height) < (b.y)) ||
(a.y > (b.y + b.height)) ||
((a.x + a.width) < b.x) ||
(a.x > (b.x + b.width))
);
}
var imageUrl = $('#wp_custom_attachment').find("a").attr("href");
$('.block-informer').css('background-image', 'url("' + imageUrl.replace('"', '') + '")');
<a href="http://site.com#tab-12">IMG</a>
var url = "http://site.com/index.php#tab-12";
var hash = url.substring(url.indexOf('#')+1);
alert(hash);
$(".aviation-img-cont").click(function(event){
event.preventDefault();
document.location.href='http://site.com/#tab-12'
});
$(function(){
var url = document.location.href;
var hash = url.substring(url.indexOf('#')+1);
if (hash=='tab-12') {
alert('Activate tab 12');
}
});
var popupRendering = false;
$('.auth-login__yes').on('click',function(){
if (popupRendering) return; // если происходит rendering то выходим
popupRendering = true; // начинаем рендерить окно
$('.login-user').show("slide", { direction: "left" }, 1000, function(){
popupRendering = false; // рендеринг закончен
});
});