var user = {
name: "Вася",
age: 30
};
var clone = {}; // новый пустой объект
// скопируем в него все свойства user
for (var key in user) {
clone[key] = user[key];
}
copy = {...user};
:not(.slick-cloned)
$('.it-img:not(.slick-cloned),.big-img').magnificPopup({
delegate: 'a',
type: 'image',
tLoading: 'Загрузка изображения #%curr%...',
gallery: {
enabled: true,
tCounter: '<span class="mfp-counter">%curr% of %total%</span>' ,
navigateByImgClick: true,
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
}
});
let slider = document.getElementById('slider');
if (slider) {
// код слайдера
}
var next_item = ($('elite-menu-item_active').next().length > 0 ? $('elite-menu-item_active').next() : $('elite-menu-item:first'));
$(next_item).click();
<elite-menu-item_active></elite-menu-item_active>
. $('.tn-elem__836009271539945761888').click(function() {
const dataObject = {strchecked: strchecked, bmr: bmr, activityty: activityty, vozrastt: vozrastt, rostt: rostt, vess: vess, vesc: vesc, indmastel: indmastel, stadia: stadia};
$.ajax({
url: "https://fitnespage.000webhostapp.com/gogogo.php",
type : "POST",
data : ("objectData=" + JSON.stringify(dataObject)),
success: function (responseText) {
alert(responseText);
}
});
});
$to = "g1r2e3e4n5-6z7m8@ynedax.ru";
$subject = "Заказ";
$object = json_decode($_POST["objectData"]);
$bbmr = $object['bmr'];
$activityty = $object['activityty'];
$vozrastt = $object['vozrastt'];
$rostt = $object['rostt'];
$vess = $object['vess'];
$vesc = $object['vesc'];
$indmastel = $object['indmastel'];
$stadia = $object['stadia'];
$strcheck = $object['strchecked'];
$message = "Заказ