I have a responsive javascript file which is working on basic bankbacking jQuery functions.
When the browser is set in the tablet, the navigation is toggled on the click, so I disable the link from any Li elements which is a UL
< Previous> $ ('.main-navigation menuu; ul> gt; a.main-navigation.menu> ul> gt> ul & gt; li: is (ul) & gt; ; A '). ('Click', function (event) {event.preventDefault ();});
Then when the tablet is shaped above the tablet barrier, then I am trying to redo the linking functionality with it (I have tried 3 different ways):
$ ('main-navigation menu> gt> UL> gt> A, men-navigation. Menuu> E & gt; Le & gt; UL & gt; ; Li: is (ul) & gt; a '). ('On'); $ ('.main-navigation.mainu gt; ul & gt; li & gt; a, .main- navigation.maym> gt> ul & gt; li & gt; ul & gt; li: is (ul) & gt; ; A '). 'Click'); $ ('.main-navigation.mountu gt; ul> gt; a, .main- navigation. menuu> y & gt; li & gt; ul & gt; li: is (ul) & gt; a '). ('Click', function (event) {return true;});
Please tell me if there is anything else that I can provide help
I was able to solve my problem here. Thought I would just post a similar issue in the case of someone else.
My responsive javascript is 2 works per screen size. I had something like this:
function tabletInit () {// add jquery which should fire within these barriers MobileNavInit () {var submenus = $ ('main navigation child'); Submenus.each (function () {var parentLink = $ (this) .prev (), parentHref = parentLink.attr ('href'), overview = '& lt; li class = "overview" & gt; & lt; a Href = "'+ ParentHref +'" & gt; Overview & lt; / a & gt; & lt; / li & gt; '$ $ (overview) .prependTo ($ (this));}); } $ ('.main-navigation. Menuu; ul> gt; li, gt; a, .main- navigation. menuu> y & gt; li & gt; ul & gt; li: is (ul) & gt; a '). ('Click', function (event) {event.preventDefault ();}); } Function, tabletClear () {// Undo or 'unbind ()' should be canceled if the tablet is above the $$ (overview) size ('prepaid'); $ ('.main-navigation.mainu gt; ul & gt; li & gt; a, .main- navigation.maym> gt> ul & gt; li & gt; ul & gt; li: is (ul) & gt; ; A '). 'Click'); }
Interference was unbundling of an overview function. Although without compulsion it was performing as required, but it was interfering with some other javascript. So I changed it only to:
$ ('.view, .overview2'). Remove ();
Comments
Post a Comment