.mobile-ul-marketing {
height: 0px;
overflow: hidden;
}
.mobile__nav-li.active .mobile-ul-marketing {
height: auto;
}function subMenu(){
const lia = document.querySelectorAll('.mobile__nav-li > a');
lia.forEach(function(a, b, c){
a.addEventListener('click', function(e){
e.preventDefault();
this.parentNode.classList.toggle('active');
return !1;
})
})
}
subMenu();
А мне нужно чтобы он переходил, просто с добавлением header
window.location = xhr.url;function click_a (e) {
e.preventDefault();
var $this = this;
$.ajax({
url: $this.href,
dataType: 'html',
beforeSend: function(xhr) {
xhr.setRequestHeader("custom", "my_custom_here");
},
success: function (data, status, xhr) {
//console.log(data, status, xhr);
window.location = $this.href;
}
});
return !1;
};
event клика и обрабатываем полученные данные. При этом останавливаем дальнейшую обработку event и возвращаем false из функции.event в inline способом:<a href="/exemple" onclick="click_a(event)">Ссылка</a>function click_a (e) {
e.preventDefault();
$.ajax({
url: this.href,
dataType: 'html',
beforeSend: function(xhr) {
xhr.setRequestHeader("custom", "my_custom_here");
},
success: function (data, status, xhr) {
console.log(data, status, xhr);
//window.location = xhr.url;
}
});
return !1;
};
wget --helpУ вас уже всё есть на компьютере.wget -r -l10 -k -p -E http(s)://ваш_сайт.доменная_зона/
if (!empty($this->model_module_novapochta->getCity($this->request->post['novaposhta_key']))) {
$city_result = $this->model_module_novapochta->getCity($this->request->post['novaposhta_key']);
/**
* Code
**/
}} elseif (!empty($address_result = $this->model_module_novapochta->getAdress($this->request->post['novaposhta_key']))) {} else {
$address_result = $this->model_module_novapochta->getAdress($this->request->post['novaposhta_key']);
if (!empty($address_result)) {
/**
* Code
**/
}
}
.footer-aboutВот он у тебя и выходит за рамки.