var rrr = function() {
if(!isActive) return; // Если isActive равна false, дальше не выполняем, функция выключена
$(this).toggleClass("red");
};
isActive = !isActive;
$('#FacebookImage').on('change',function(){
var elem = this;
var _URL = window.URL;
var file, img;
if ((file = elem.files[0])) {
img = new Image();
img.onload = function () {
elem.dataset['imageWidth'] = this.width;
elem.dataset['imageHeight'] = this.height;
};
img.src = _URL.createObjectURL(file);
}
});
$.validator.addMethod("data-rule-imageFacebookResolution", function (value, elem, attrValue) {
var width = parseInt(elem.dataset['width']);
var height = parseInt(elem.dataset['height']);
if width < 520 && height < 290) {
return false;
}
return true;
});
https://1xstavka.ru/LineFeed/Get1x2_VZip?sports=1&count=50000&tf=1500000&antisports=38&mode=4&country=1&partner=51&getEmpty=true
$('.rows.left .row').each(function(ind, el) {
var $left = $(el);
var $right = $('.rows.right .row').eq(ind);
if ($left.height() < $right.height()) {
$left.css('height', $right.height() + 'px')
} else {
$right.css('height', $left.height() + 'px')
}
});
$.ajax({
type: 'POST',
url: $form.attr('action'),
data: $form.serialize(),
success: function (response) {
response = JSON.parse(response);
if (response.type && response.type === 'success') {
$.magnificPopup.open({
items: {
src: '#popup-sank',
type: 'inline'
},
removalDelay: 500, //delay removal by X to allow out-animation
mainClass: 'my-mfp-zoom-in',
closeBtnInside: false
});
$form[0].reset();
} else {
}
},
error: function (response) {
}
});