145 Commits

Author SHA1 Message Date
mossroy
ebf70bd05c Add license information in the About section : GPL v3
+ header on each source file
+ license information for each library or ressource used
+ credits
Fixes #45
2013-08-22 20:17:28 +02:00
mossroy
d168c8e4b6 Small updates to manifest.webapp, to follow best practices 2013-08-22 19:29:16 +02:00
mossroy
9984909428 Hide the "reading article" div when clicking on any menu, as this text might stay visible if there is an error when reading the article 2013-08-22 18:20:57 +02:00
mossroy
0f87f821f9 Cosmetic fixes on error messages 2013-08-22 18:08:50 +02:00
mossroy
ba469811be Remove minified versions of bootstrap files.
As this application is distributed as a packaged application, all the files will be zipped before transferring over the network. So the difference in size should not be significant.
When unzipped on the device, it makes a difference but I think it's not worth it for the moment.
It's still possible to switch to minified versions in the future, with a more intelligent packaging process
2013-08-22 17:33:30 +02:00
mossroy
f2f9664e4b Upgrade to Bootstrap 3.0.0 final 2013-08-22 17:27:31 +02:00
mossroy
39b5533959 Slightly improve error handling.
Fixes #57
+ small fix for blockstart value of redirected titles
2013-08-22 17:10:55 +02:00
mossroy
8f0744140d Small update to manifest.webapp 2013-08-17 17:34:40 +02:00
mossroy
7aa55341d7 Small update to manifest.webapp
Add a script to package the application for the Marketplace
2013-08-17 17:33:22 +02:00
mossroy
3367336d22 Improve the look of the title list, and replace all _ by spaces in the title names (as suggested by peter-x)
The titles are now more easily clickable
Fixes #46
2013-08-17 14:28:22 +02:00
mossroy
8ff38e9a54 Upgrade Bootstrap 3 to RC2
It fixes a display issue in the input type=file
Fixes #53
Also improves the size of the dropdown list of archives (when DeviceStorage is available)
2013-08-17 13:59:11 +02:00
Mossroy
f10698219d Small fixes on handling the archives of DeviceStorage :
- hide the keyboard before displaying a warning on 'small' archive
- Keep the trailing slash in archive directories
- If the last selected archive does not exist any more in Device Storage, do not attempt to set it in the drop down list
- Putting the archive files at the root of the sdcard seems to cause issues (high CPU usage on the Simulator) : if it is the case, give a warning to the user and do not use this archive
2013-08-06 16:17:36 +02:00
Mossroy
56c2b7ae9f Add a welcome message when no archive is found, and more info for the first-time user in the About section.
In the home page, add a welcome text to invite the user to start typing in the search field.
Fixes #35
2013-08-06 12:45:47 +02:00
Mossroy
3e1b734d1e Slighlty improve the user feedback when the SD-card can not be browsed, or when no archive has been set 2013-08-06 11:43:58 +02:00
Mossroy
7335e8b98c Keep the last selected archive in a cookie, when DeviceStorage is enabled
Fixes #50
2013-08-06 11:21:44 +02:00
Mossroy
f4e0ee33c4 Move the warning of the "small" archive to when the user chooses an article to display
It avoids visibility issues when the keyboard is displayed on a device
2013-08-06 10:57:43 +02:00
Mossroy
6422709551 Display a warning to the user if the "small" archive has been selected
Fixes #48
2013-08-06 09:55:27 +02:00
mossroy
37da0db928 Merge branch 'master' of ssh://github.com/mossroy/evopedia-html5 2013-08-04 15:44:41 +02:00
mossroy
d99209ae53 Commit a shell script to quickly deploy to github-pages 2013-08-04 15:44:34 +02:00
mossroy
14fedb04cf Fix behavior of search field when no archive is set.
Fixes #49
2013-08-04 15:29:46 +02:00
mossroy
796d67880d Small fix on hyperlinks inside an article, so that the content does not "scroll" by one line at the moment you click 2013-08-04 12:35:55 +02:00
mossroy
3f8162e377 Fix links to articles with a long name
Fixes #47
2013-08-04 12:26:52 +02:00
mossroy
e141a769db Fix the way we look for an article with a specific title name.
Instead of taking the first result of the search on normalized names, we browse the results and take the one that exactly matches the title name we look for.
Fixes #32
A few improvements also come in this commit, to externalize the maximum number of results displayed when searching, and to fix some bugs on the small dump
2013-08-04 11:36:47 +02:00
mossroy
44f6f8c508 Externalize a style in .css 2013-08-04 09:16:15 +02:00
mossroy
ebbeec9c05 Add an email link in the About section
+ rename "dump" -> "archive" and other minor modifications
Fixes #44
2013-08-03 12:46:26 +02:00
mossroy
2c2f45b2be Add a "Home" in the bottom bar, to start a new search
Fix the "top" button in the bottom bar : on a device, it did not work because it was too close to the scrollbar and triggered a "page down"
Fixes #36
2013-08-02 11:21:09 +02:00
mossroy
5cd5a80551 Add an icon in the bottom bar, to go to the top of the article
It needs to modify the way title names are displayed in the URL : replace anchors by ?title=
Fixes #36
2013-08-02 10:46:31 +02:00
mossroy
3a25688772 Empty the search field after the user has selected and displayed an article.
Fixes #37
2013-08-02 10:29:16 +02:00
mossroy
21f5fc7175 Change placeholder text of the search field, to have something more meaningful for the end-user 2013-08-02 10:25:58 +02:00
mossroy
a7e5cd3f6f A click on the Home section empties its content, so that the user he finds the same home page as when he started the application.
Fixes #38
2013-08-02 10:22:19 +02:00
mossroy
596b6e7b69 Give the focus to the search field when going to the Home section.
It outlines the search field, which makes it more visible. It also makes the keyboard appear on mobile device, which invites the user to type something
It makes it a bit more clear for the user on what to do
Fixes #40
2013-08-02 10:15:18 +02:00
mossroy
95e4c72c9b Small fix for navbar behavior 2013-08-02 10:01:07 +02:00
mossroy
52eabb318a When an error is thrown from bzip2 decoding, display the error message to the user, so that he does not wait forever for the spinner to stop. And ask the user to report the issue to us. 2013-08-02 09:57:31 +02:00
mossroy
5f7d32d1f8 On small screens, a click on a navbar item collapses the menu.
Fixes #41
2013-08-02 09:39:09 +02:00
mossroy
b5fe7fc242 Use a Web Worker to encapsulate bzip2 decoding.
It keeps the user interface responsive,  and gives a better feedback to the user :
Withour a Web Worker, the spinner was blocked during decompression, which was misleading for : did my application hang?
Now the spinner keeps turning.
Anyway, the way Web Workers are designed forces us to pass the in/out parameters by copy. So the input byte array and the output string are cloned, which gives an overhead measured around 14% on my computer
Fixes #5
For the unit tests to keep working, I had to move tests.html at the same level as index.html (because the webworker is created in archive.js, by giving the path to its js file. So this path cannot be different between these html files)
2013-07-28 17:28:33 +02:00
mossroy
8273226aec Move/rename javascript files to ease the introduction of web workers
Upgrade jQuery library, and use its development version to ease debugging
2013-07-28 14:06:19 +02:00
mossroy
bd6059043f Delete unused CSS files (deprecated since Bootstrap 3) 2013-07-28 11:38:56 +02:00
mossroy
8b21d52b92 No automatic search when the prefix is empty 2013-07-28 10:56:53 +02:00
mossroy
1509769e9f Small modifications in the about and configuration sections 2013-07-28 10:44:45 +02:00
mossroy
9eb5ec5d48 Small modifications in the about section 2013-07-28 09:54:22 +02:00
mossroy
29520d0727 Remove focus on prefix field (buggy on device) 2013-07-27 20:40:27 +02:00
mossroy
b9b90a3832 Fixes in the navigation bar behavior 2013-07-27 20:24:57 +02:00
mossroy
21155995bc Samll fixes in the layout 2013-07-27 20:00:45 +02:00
mossroy
a4edea562e Upgrade to bootstrap 3.0.0 RC1. Fixes #31
I had to switch to JQuery instead of Zepto, because they seem to be incompatible for now (see https://github.com/madrobby/zepto/issues/791 )
I also simplified the require.js, so that it will be easier to swith between jQuery and Zepto in the future, and to change the version of jQuery
I use the "responsive navbar" feature of bootstrap to hide the buttons "Configure" and "About" when on a small screen
2013-07-27 19:57:36 +02:00
mossroy
a8f4a8d964 Small update of the About section
Small modification of the style of the title list
2013-07-27 16:37:08 +02:00
mossroy
edd97188ee Refactor javascript files, so that to externalize utility functions, and split the evopedia.js file into 2 files implementing the 2 classes Title and LocalArchive 2013-07-27 15:37:59 +02:00
mossroy
e3ef342e2e Fix a few warnings from the IDE 2013-07-27 14:57:36 +02:00
mossroy
86c2fe532d Fix on autofocus of prefix field.
We don't want it to be focused on page load, but each time the archive is selected (either through DeviceStorage or manual file selection)
2013-07-27 12:14:41 +02:00
mossroy
21a97278b2 When DeviceStorage is not available, display only one "input type=file multiple", in which the use must select all the archive files. It's quicker and easier than selecting each type of file individually. Fixes #28
Also implemented reading all the kind of files of an archive : titles_search.idx and coordinate files (both unused for now)
2013-07-27 11:51:12 +02:00
mossroy
96e4e6bbdf Add autofocus in prefix field, so that it gets the focus on page load 2013-07-27 10:42:36 +02:00