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

wikireader #4

Open
jrg96 opened this issue Jul 9, 2015 · 4 comments
Open

wikireader #4

jrg96 opened this issue Jul 9, 2015 · 4 comments

Comments

@jrg96
Copy link
Member

jrg96 commented Jul 9, 2015

Thread for wikireader

@jrg96
Copy link
Member Author

jrg96 commented Jul 11, 2015

@Royalharsh

this is an example output of the search functionality
https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Cat

and this is the api page refetrred to searching
https://www.mediawiki.org/wiki/API:Search

@hvardhanx
Copy link
Member

thanks @GhostAlgorithm

@jrg96
Copy link
Member Author

jrg96 commented Jul 13, 2015

Ok @Royalharsh I made the ajax calls, search something, click go, automatically shows the results, click on read more and automatically fills the sidebar with the sections and has to do (you have to work on that):

PD: I mean with that, that you have to clear dinamically all the html inside the id="search-results" div tag and "inject" the responsive HTML that is adapted to display text.

And when you click on any section of the sidebar, it makes the ajax API call to get the content of that section, the line when you get the text is this one:
https://github.com/InfinioPlus/wikireader-fxos/blob/master/js/project.js#L127

so when the section is clicked, you have to display the data of that section (I already made the get data, you just have to display it), and here comes the tricky part, maybe you will have to process that string in order to make the content sent by the api "responsive", but first, just output the data as HTML (like the way I did with $().empty() and $().append() ), so, now you have work to do o,o

@hvardhanx
Copy link
Member

@GhostAlgorithm I have outputted the data as html

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

2 participants