Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Не работает выпадающее меню - ошибка jquery.onepagenav.js (https://javascript.ru/forum/jquery/64857-ne-rabotaet-vypadayushhee-menyu-oshibka-jquery-onepagenav-js.html)

greengo86 29.11.2016 08:20

рони, Потомучто Дебилоид Петрович Я :-/
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 );

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


Часовой пояс GMT +3, время: 08:17.