mossroy
16ca75ae47
Merge branch 'master' of github.com:mossroy/evopedia-html5
2015-11-30 20:33:23 +01:00
Mossroy
06d02616d1
Merge pull request #128 from peter-x/zim_title_search
...
Fixes in Zim title search, provided by peter-x
Fixes #122
Fixes #104
2015-11-30 20:32:44 +01:00
Peter
a2da62415f
Check the prefix during title search.
...
Do not return article titles that do not start with the given prefix.
2015-11-29 14:44:59 +01:00
Peter
b7df55eaa9
Bugfix: ZIM sorts empty titles to the end.
...
This should fix some cases where articles could not be found
(basically anything in the lower half).
2015-11-29 14:42:32 +01:00
mossroy
4b2571acbc
Upgrade to jQuery 2.1.4
...
Instead of 2.1.3. This should have no impact, it's just to catch-up
with latest version
2015-09-20 22:45:25 +02:00
mossroy
4abc6a5801
Revert my attempt for a case-insensitive search on ZIM backend
...
See #117
2015-09-12 15:52:51 +02:00
mossroy
b9bf38ddae
Comment a cordova javascript file
...
It was blocking the UI in recent versions of Chromium and Firefox OS
2015-09-12 15:50:44 +02:00
mossroy
74633a9ff2
Make searches case-insensitive.
...
Fixes #117
2015-08-29 19:30:37 +02:00
mossroy
0861d81900
Minor HTML fixes
2015-08-29 18:36:01 +02:00
mossroy
85ed3a6e54
Add JSDoc tags in the comments.
...
It describes the types of every parameter of a function, and also the
types of the properties of a class.
It improves coding efficiency in modern IDEs that are able to interpret
these tags.
It works pretty well with Netbeans 8.1 beta (except the callback
parameters)
+ small fix for the language property of an archive (mix between
"language" and "_language" in the code)
2015-08-29 18:06:38 +02:00
mossroy
4c65636e60
Fix using Math data and index files when using DeviceStorage
...
This was a regression in a refactoring of attribute names
2015-08-29 14:26:30 +02:00
mossroy
20ea0f0c3e
Use CSS for visual API availability, instead of hardcoding the color
2015-08-29 14:21:13 +02:00
mossroy
cfc0ffad36
Merge branch 'serviceworker_in_frame'
...
When the serviceworker API or messagechannel API is unavailable, the code
falls back to the jQuery method.
And the iframe now works not so badly.
So I think it's now useless to keep different branches
2015-08-29 13:21:12 +02:00
mossroy
4697162c43
Reduce the size of the top & bottom elements when on a small screen
...
These elements stay visible when the article content is scrolled
(because of the iframe).
Reducing their size gives more space to the article content itself
It looks like the bare minimum without implementing #120 (make the top
elements disappear/reappear when the article content is scrolled)
2015-08-29 13:18:01 +02:00
mossroy
66d21129f3
More fix for the "top" button in the bottom bar
...
so that it also works in the About section
2015-08-29 12:16:02 +02:00
mossroy
df98ce0cfb
Fix the button in the bottom bar that jumps to the top of the article.
...
+ fix a few warnings in javascript code
2015-08-29 12:03:22 +02:00
mossroy
ec88459a79
Use input type=search for the prefix field.
...
Instead of type=text, so that it is recognized as such in Firefox OS
(slightly different keyboard)
2015-08-22 21:59:07 +02:00
mossroy
2746433574
Merge branch 'article_in_iframe' into serviceworker_in_frame
...
So that the iframe fits in the whole available height
2015-08-16 15:33:58 +02:00
mossroy
0e6c84da39
IFrame resizing, so that it fits the whole available height
2015-08-16 15:25:19 +02:00
mossroy
adb714b4ae
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-16 13:25:01 +02:00
mossroy
82ca9ff18c
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-16 13:24:08 +02:00
mossroy
b83b07a22d
Add config for requirejs autocompletion in NetBeans IDE.
...
Works well in NetBeans 8.1 beta
2015-08-13 13:58:19 +02:00
mossroy
b8c5717299
Minor fix in the way we unregister the ServiceWorker for Evopedia archives
2015-07-19 09:34:20 +02:00
mossroy
21564f2a2f
Minor improvements in API and ServiceWorker state detection
...
+ unregister the ServiceWorker if we use an Evopedia archive
+ disable any DOM parsing when using the ServiceWorker
+ minor improvements in regular expressions usage : we should compile them only once
2015-07-18 23:53:02 +02:00
mossroy
bd4ccbc1c2
Display messageChannel API availability in Configuration section.
...
And make it more visual for both APIs, with green/red font color
2015-07-18 21:33:31 +02:00
mossroy
08cebf7782
Refactoring for the bi-directional messaging between the ServiceWorker and app.js : it now works properly
...
Article redirects are also handled properly.
But it's still quick and dirty and dependencies can't be read from the backend : I send a dummy JPEG image for any JPEG image, and reject every javascript dependency (because Firefox nightly does not like to have no answer on javascript queries)
2015-07-12 12:12:06 +02:00
mossroy
2c6151821d
Some rework to start handling other contents than articles (does not work yet)
2015-07-12 10:42:17 +02:00
mossroy
4609d16f5d
Initial support for reading articles from the backend through the ServiceWorker
...
Redirects are not supported for now, and dependencies are not properly handled either
2015-07-11 21:17:36 +02:00
mossroy
abfa242c8d
First working bi-directional communication between the service worker and app.js
...
It's still with dummy contents, and in "quick and dirty" mode
2015-07-11 13:38:03 +02:00
mossroy
a6232986db
Work-in-progress to test communication between the ServiceWorker and the backend through a MessageChannel
...
It does not work at all for now
2015-06-28 17:38:43 +02:00
mossroy
6a4702fb51
First attempt to send a message to the ServiceWorker
...
+ minor log changes
2015-06-21 15:15:13 +02:00
mossroy
3f203cbb9e
Merge branch 'master' into serviceworker_in_frame, to switch to Ray Charle ZIM file for unit tests
2015-06-20 16:15:15 +02:00
mossroy
5bbae17ffd
Merge branch 'master' into article_in_iframe, to switch to Ray Charles ZIM file
2015-06-20 16:14:01 +02:00
mossroy
1f699cb7c3
Minor improvement of the ServiceWorker status in configuration section
2015-06-20 16:11:44 +02:00
mossroy
db8a3ecb85
Display the status of ServiceWorker in the configuration section, and disable it for Evopedia archives, for now
2015-06-20 16:08:46 +02:00
mossroy
cfdb3225a9
Switch to the Ray Charles ZIM file for unit tests
...
It's the one used by Kiwix team
2015-06-10 10:37:20 +02:00
mossroy
1a9dd1732b
Merge branch 'article_in_iframe' into serviceworker_in_frame, to handle redirects properly
2015-06-10 10:18:21 +02:00
mossroy
b816313311
Merge branch 'master' into article_in_iframe, to handle redirects properly
2015-06-10 10:16:24 +02:00
mossroy
1ba3efd039
Fix handling of redirects
2015-06-10 10:09:15 +02:00
Mossroy
fa6a4c8e01
Merge pull request #118 from evopedia/zim_redirects
...
Handle redirects in ZIM archives.
2015-06-10 10:06:11 +02:00
Peter
9e442763f9
Handle redirects.
2015-06-07 21:05:45 +02:00
mossroy
5143e776da
Some more prototype testing on ServiceWorkers, that makes sure we manage to inject binary data in the article (an image, here)
2015-06-07 17:12:51 +02:00
mossroy
9080c51ad0
Use requirejs to access javascript libraries inside the service worker
2015-06-07 14:56:34 +02:00
mossroy
2d2c8c3278
First attempt to use a service worker
2015-06-06 17:54:26 +02:00
mossroy
a46395a9ad
Temporarily inject a sample CSS (that simply adds a grey background) when using a ZIM archive
2015-05-09 23:01:54 +02:00
mossroy
cd03870f00
Fix detection if mediawiki CSS should be applied or not
2015-05-09 22:17:04 +02:00
mossroy
bd3befad13
Display the article content in an iframe instead of a div.
...
It allows to apply the mediawiki CSS only if using an Evopedia archive, not for ZIM.
And, for ZIM archives, it should allow in the future to apply a CSS/JS contained in the ZIM archive itself
2015-05-09 22:08:39 +02:00
mossroy
b28afd374f
First simple unit test on a ZIM archive
2015-05-07 23:07:47 +02:00
mossroy
e2fc103ec2
Fix CRLF git behavior on binary files
2015-05-03 09:44:48 +02:00
mossroy
3c0d7e6331
Add test ZIM file
2015-05-03 09:36:46 +02:00