javascript - jQuery-Mobile pagecontainerbeforechange does not fire -
I'm working on a single-page-application from jQuery-Mobile to First of all I tried to use the I want to check this page " Then, the user is on the main site, he Clicks "Register" and should replace " I wrote this detailed explanation, I have got the solution and it is so easy that it is embarrassing to me: #cryptography site removed from the site ... all thats < P> Thank you for your help and thanks for editing Omar! You can add .site-wrapper to toggleClass. If there is a class in it. Show-NAV will remove it, otherwise it will add the class :) pagecontainerbeforechange event Because I need to see if the class in my site-wrapper is "
show-nav ". For this class in the site-wrapper, the site-menu is opened and the content moves 350px to the left. So if the user now clicks on the register, and before opening the site-menu, my register page is transferred and there is no possibility of getting it back because there is no site menu on the register page.
pagecontainerload event until I saw it disliked it. Then I changed it to
page container loadbrush conversion event, but I can not work it.
.show-nav class" is id # registration
.show-nav " before the page. The function has already been set to remove the square, but I do not know how to call it correctly.
function toggle nav () (if ($ ('. Site-wrapper'). HasClass ('show-nav')) {// Close close $ ('site-wrapper' ). RemoveClass ('show-nav'); } More detailed descriptions - & gt;
$ ('site-wrapper'). Toggleclass ('show-nav');
Comments
Post a Comment