-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove javascript code for mobile menu #48
Comments
Is anyone working on this issue? If no I can try to find some time to rewrite flexnav in gwtquery... |
I had thought to port flexnav as a gquery plugin, but I have not found the time yet. It's fantastic if you have the time. I can help if you have any issue or review your code. |
That would be nice ! |
Most of the code will probably end up in gwt-site-webapp, to replace global.js. Should I put the plugin's code in that project? Or create a separate project, either under gwtquery-plugins's name, or my own repository & package names? About the various styles used, I'm thinking of merely copying the style.css resulting from the "compilation" by grunt, extracting the part about the plugin to the plugin if applicable, and putting the rest in either gwt-site or gwt-site-webapp. |
Where is the opening of the navigation menu handled? I can't find anything related to the "closed" class... |
in src/main/resources/main.tpl |
Sorry, I meant where that class is added/removed when you hover around the menu... |
This is done in the gwt code present in that project |
I must be stupid, but in https://gwt.googlesource.com/gwt-site-webapp/+/master/src/main/java/com/google/gwt/site/webapp/client/GWTProjectEntryPoint.java I can't find any reference to either "nav", "navigation", "closed", or any other similar name related to the menu... |
Nop you're not stupid :-) The code is not merged yet into master |
You can checkout the code by doing:
|
Hello. Sorry it took so long, but I think the rewrite in GWT/GWTQuery is globally ok. You can see the result on http://nekoko.fr/gwt-flexnav/ Though I'm not exactly sure of the intended effect, so I can't guarantee all is ok... Regards |
The menu doesn't open when I test on my nexus 5 |
Do you put the code for the flex-nav rewrite somewhere ? |
Code is on:
Are you sure the menu actually works on the gwtproject.org site? I tried reducing my browser window, display did switch to mobile view, but clicking on the menu didn't do anything. And I don't see the "lg-screen" class the flexnav plugin should put on the navigation bar, either. |
Definitively the menu is not working in mobile. I will take a look, also I'll review your plugin. |
For the time being we use a jQuery plugin in order to display the website menu on mobile. We should remove this code and use GQuery instead to build the mobile menu.
The text was updated successfully, but these errors were encountered: