mossroy
6f444b80f5
Make CSS dependencies work on Firefox OS devices.
...
Fixes #144
2016-01-08 12:12:28 +01:00
Mossroy
21ce7b14d3
Merge pull request #142 from mossroy/jquery-fallback
...
JQuery fallback and injection of stylesheets
2016-01-07 20:35:57 +01:00
mossroy
bf69bbc0b8
Minor improvement in code readability
2016-01-07 20:29:18 +01:00
mossroy
d8678e3a83
Enable CSS stylesheets read from the backend. #115
...
It works both in jQuery and ServiceWorker modes.
But, for now, in jQuery mode, it freezes the UI on Firefox OS.
The javascript content is still not available for now.
2016-01-07 20:18:16 +01:00
mossroy
6b9f70f300
Fix for images, to reflect the need of the namespace to read in the ZIM backend.
2016-01-07 19:03:48 +01:00
mossroy
71b1b2a9b5
Fix to reflect the need of the namespace to read in the ZIM backend.
2016-01-07 18:39:07 +01:00
mossroy
4ccdee6324
Merge branch 'master' into jquery-fallback
2016-01-07 18:06:11 +01:00
mossroy
6e7383c72c
Fix the unit tests on evopedia entries. See #140
2016-01-07 18:05:48 +01:00
Mossroy
704f1dae75
Merge pull request #140 from peter-x/pathfix
...
Fix for finding some files in ZIM.
2016-01-07 18:04:07 +01:00
mossroy
799dc281be
Handle the default namespace for articles, in the ServiceWorker
2016-01-07 17:58:38 +01:00
mossroy
a1793121ae
Fix merge error + minor comments improvements
2016-01-07 17:42:37 +01:00
mossroy
727c11928a
Merge branch 'master' into jquery-fallback
...
Conflicts:
service-worker.js
2016-01-07 16:55:11 +01:00
mossroy
369f8a9b0f
Fixes for jQuery/ServiceWorker switch, jQuery mode, and workaround for javascript/css content in ServiceWorker mode
2016-01-07 16:39:28 +01:00
peter-x
b4950d4570
Fix for finding some files in ZIM.
...
The namespace has to be taken into account when titles are compared.
2016-01-07 16:17:59 +01:00
Mossroy
6443e33684
Merge pull request #139 from peter-x/xzdecfix
...
Fix streaming bug in xz decompressor.
2016-01-07 16:17:24 +01:00
Mossroy
6fbfb7254c
Merge pull request #134 from peter-x/binaries
...
Reading binary files.
2016-01-07 16:14:35 +01:00
peter-x
79dbcbf3b1
Tests.
2016-01-07 16:08:46 +01:00
peter-x
b679948db9
Fix streaming bug in xz decompressor.
...
The problem was that in some cases, the input was already read in too
far, so we just re-start the decompressor for each read (the full
contents of a file are read in one go anyway).
2016-01-07 16:08:37 +01:00
mossroy
a4feca9930
In jQuery mode, display images, javascript and CSS dependencies.
...
Images seem to work fine. I could not test JS and CSS for now
See #136
2016-01-06 18:39:40 +01:00
peter-x
6f05a76c66
Fixed typos and added some documentation.
2016-01-06 16:54:55 +01:00
mossroy
8c186867e9
Oups, revert last commit
2016-01-06 16:33:17 +01:00
mossroy
f9ccc51145
Improve the way we start the ServiceWorker, and allow the user to choose between jQuery and ServiceWorker modes.
...
If the user chooses the jQuery mode, we have to disable the ServiceWorker.
It's a first step for #136
2016-01-06 16:29:24 +01:00
mossroy
93cc3dcdfd
Temporary workaround to make it work on Firefox.
...
The original issue is still there : javascript and css dependencies get binary content (a small PNG image)
2016-01-05 23:23:20 +01:00
mossroy
c2bb788974
Merge branch 'binaries' of https://github.com/peter-x/evopedia-html5
...
into peter-x-binaries
2016-01-05 22:53:30 +01:00
mossroy
8a0748597a
Minor fixes to avoid warnings in the browser
2016-01-05 22:43:08 +01:00
peter-x
f16b44f1d3
Fix tests: Use promise and actually check the image.
2016-01-05 18:59:54 +01:00
peter-x
72e4da5e02
Reading binary files.
...
Support for reading binary files and some cleanup regarding the move
from manual callbacks to promises.
2016-01-05 18:33:00 +01:00
mossroy
7bb77c8e36
Avoid the need to manually select Evopedia and ZIM test files to run unit tests.
...
It should help to automate unit testing in #119
2016-01-04 19:42:05 +01:00
mossroy
15a4c04e62
"Claim" the Service Worker as soon as it is activated, so that it can
...
be triggered right away (without the need to reload the page or app).
Fixes #129
2016-01-04 11:39:28 +01:00
mossroy
4bcf287835
Fix in the service worker that was hanging in Firefox OS on many pages.
...
It seems that Firefox OS is disturbed when it has a reject or no answer
on some HTTP requests, where Firefox desktop and Chromium simply ignore
that.
This fix sends a dummy content on javascript requests, which allows
Firefox OS to display at least some articles of the Ray Charles file.
But some articles still can't be read, probably because of some other
missing dependencies.
2015-11-30 21:30:54 +01:00
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