E
Но mdb - без боли в Mysql не полезет
Size: a a a
E
Б-
Б-
Б-
E
Б-
Б-
E
Б-
NK
N
NK

N
onePageMenu: function () {
var scrollToRow = function (hash) {
var row = $('#' + hash);
if (row.length < 1) return;
var position = row.offset().top;
$('html, body').animate({
scrollTop: position - woodmart_settings.one_page_menu_offset
}, 800);
setTimeout(function () {
activeMenuItem(hash);
}, 800);
};
var activeMenuItem = function (hash) {
var itemHash;
$('.onepage-link').each(function () {
itemHash = $(this).find('> a').attr('href').split('#')[1];
if (itemHash == hash) {
$('.onepage-link').removeClass('current-menu-item');
$(this).addClass('current-menu-item');
console.log(101);
}
});
};
$('body').on('click', '.onepage-link > a', function (e) {
var $this = $(this),
hash = $this.attr('href').split('#')[1];
if ($('#' + hash).length < 1) return;
e.preventDefault();
scrollToRow(hash);
// close mobile menu
$('.woodmart-close-side').trigger('click');
$('.full-screen-close-icon').trigger('click');
console.log(123);
});
if ($('.onepage-link').length > 0) {
$('.entry-content > .vc_section, .entry-content > .vc_row').waypoint(function () {
var hash = $(this).attr('id');
activeMenuItem(hash);
}, { offset: 150 });
// $('.onepage-link').removeClass('current-menu-item');
// URL contains hash
var locationHash = window.location.hash.split('#')[1];
if (window.location.hash.length > 1) {
setTimeout(function () {
scrollToRow(locationHash);
}, 500);
}
}
},s
OP
OP
E
E
E
E