Skip to content
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

Open
jDramaix opened this issue Feb 12, 2015 · 16 comments
Open

Remove javascript code for mobile menu #48

jDramaix opened this issue Feb 12, 2015 · 16 comments

Comments

@jDramaix
Copy link
Member

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.

@nweeger
Copy link
Contributor

nweeger commented Apr 1, 2015

Is anyone working on this issue? If no I can try to find some time to rewrite flexnav in gwtquery...

@manolo
Copy link
Member

manolo commented Apr 1, 2015

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.

@jDramaix
Copy link
Member Author

jDramaix commented Apr 1, 2015

That would be nice !

@nweeger
Copy link
Contributor

nweeger commented Apr 11, 2015

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.

@nweeger
Copy link
Contributor

nweeger commented Apr 15, 2015

Where is the opening of the navigation menu handled? I can't find anything related to the "closed" class...

@jDramaix
Copy link
Member Author

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

@nweeger
Copy link
Contributor

nweeger commented Apr 15, 2015

Sorry, I meant where that class is added/removed when you hover around the menu...

@jDramaix
Copy link
Member Author

This is done in the gwt code present in that project

@nweeger
Copy link
Contributor

nweeger commented Apr 19, 2015

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...

@jDramaix
Copy link
Member Author

Nop you're not stupid :-) The code is not merged yet into master

@jDramaix
Copy link
Member Author

You can checkout the code by doing:

git fetch https://gwt.googlesource.com/gwt-site-webapp refs/changes/31/12531/1 && git checkout FETCH_HEAD

@nweeger
Copy link
Contributor

nweeger commented Jun 11, 2015

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

@jDramaix
Copy link
Member Author

The menu doesn't open when I test on my nexus 5

@jDramaix
Copy link
Member Author

Do you put the code for the flex-nav rewrite somewhere ?

@nweeger
Copy link
Contributor

nweeger commented Jun 16, 2015

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.

@manolo
Copy link
Member

manolo commented Jul 15, 2015

Definitively the menu is not working in mobile. I will take a look, also I'll review your plugin.
BTW, menu does not work in your result url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants