Показать сообщение отдельно
  #11 (permalink)  
Старый 29.11.2016, 08:20
Интересующийся
Отправить личное сообщение для greengo86 Посмотреть профиль Найти все сообщения от greengo86
 
Регистрация: 09.09.2016
Сообщений: 19

рони, Потомучто Дебилоид Петрович Я
scrollChange: function() {
			var windowTop = this.$win.scrollTop();
			var position = this.getSection(windowTop);
			var $parent;

			//If the position is set
			if(position !== null) {
				$parent = this.$elem.find('a[href$="#' + position + '"]').parent();

				//If it's not already the current section
				if(!$parent.hasClass(this.config.currentClass)) {
					//Change the highlighted nav item
					this.adjustNav(this, $parent);

					//If there is a scrollChange callback
					if(this.config.scrollChange) {
						this.config.scrollChange($parent);
					}
				}
			}
		},

		scrollTo: function(target, callback) {
			var offset = jQuery(target).offset().top;

			jQuery('html, body').animate({
				scrollTop: offset
			}, this.config.scrollSpeed, this.config.easing, callback);
		},

		unbindInterval: function() {
			clearInterval(this.t);
			this.$win.unbind('scroll.onePageNav');
		}
	};

	OnePageNav.defaults = OnePageNav.prototype.defaults;

	jQuery.fn.onePageNav = function(options) {
		return this.each(function() {
			new OnePageNav(this, options).init();
		});
	};

})( jQuery, window , document );

Но всё равно не помогает! Спасибо тебе, рони, но уже забил и нашёл другую реализацию... С этой пока не дано разобраться, к сожелению
Ответить с цитированием