Задание в архиве
Версия ocStore 2.3.0.2.3
Шаблон Techstore
Верхнее меню навигации https://yadi.sk/i/siHFquTUcMLaMw
Необходимо так https://yadi.sk/i/ppLQ_YuFIFqX8w
При деактивации скрипта https://yadi.sk/i/ppLQ_YuFIFqX8w , меню отображается правильно, но не работают родительские ссылки.
Скрипт, который нужно править.
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(M){var e,i=M(window).width(),n=M(window).height(),l=[];M(window).resize(function(){clearTimeout(e),e=setTimeout(function(){M(window).width()===i&&M(window).height()===n||(M(l).each(function(){M(this).flexMenu({undo:!0}).flexMenu(this.options)}),i=M(window).width(),n=M(window).height())},200)}),M.fn.flexMenu=function(e){var i,w=M.extend({threshold:2,cutoff:2,linkText:"...",linkTitle:"",linkTextAll:"",linkTitleAll:"",showOnHover:!0,popupAbsolute:!0,popupClass:"",undo:!1},e);return this.options=w,0<=(i=M.inArray(this,l))?l.splice(i,1):l.push(this),this.each(function(){var e,i,n,l,t,o,f=M(this),u=f.find("> li"),d=u.first(),s=u.last(),a=f.find("li").length,r=Math.floor(d.offset().top),p=Math.floor(d.outerHeight(!0)),h=!1;function c(e){return Math.ceil(e.offset().top)>=r+p}if(c(s)&&a>w.threshold&&!w.undo&&f.is(":visible")){var v=M('<ul class="flexMenu-popup" style="display:none;'+(w.popupAbsolute?" position: absolute;":"")+'"></ul>');for(v.addClass(w.popupClass),o=a;1<o;o--){if(i=c(e=f.find("> li:last-child")),o-1<=w.cutoff){M(f.children().get().reverse()).appendTo(v),h=!0;break}if(!i)break;e.appendTo(v)}h?f.append('<li class="flexMenu-viewMore flexMenu-allInPopup"><a href="#" title="'+w.linkTitleAll+'">'+w.linkTextAll+"</a></li>"):f.append('<li class="flexMenu-viewMore"><a href="#"...
| Бюджет | По договоренности |
| Срок | 1 день |
| Оплата | По договоренности |
| Категория | Веб-разработка и IT |
| Просмотры | 24 |
| Опубликовано | 14.09.2019 |
Войдите, чтобы увидеть полную информацию.