From b35482fa1bce0581a9dfb4e18990475ce10413d6 Mon Sep 17 00:00:00 2001 From: mossroy Date: Tue, 28 May 2013 10:54:12 +0200 Subject: [PATCH] Hide the explanations on the main page. They can be shown with an "About" button --- www/index.html | 189 +++++++++++++------------ www/js/app.js | 378 +++++++++++++++++++++++++------------------------ 2 files changed, 287 insertions(+), 280 deletions(-) diff --git a/www/index.html b/www/index.html index 08716f35..90772f89 100644 --- a/www/index.html +++ b/www/index.html @@ -1,93 +1,96 @@ - - - - - - Evopedia - - - - - - - - - - - - -

Evopedia

- This is a preliminary work on the port of Evopedia (offline wikipedia reader) in HTML5/Javascript, with Firefox OS as the primary target -
- The original application is at http://www.evopedia.info/ -
-
- To use it, you have to first download locally a dump from http://dumpathome.evopedia.info/dumps/finished (with a Bittorrent client), and select some of the dowloaded files below. -
- I have tested it with the small dump (2010-08-14), the French dump (2013-02-16), the French wiktionary dump (2011-03-16) and the English dump (2012-02-11) -
-
- -
- It's only a proof of concept so far : there are many many ways this could be enhanced (suggestions and patches are welcome : the source code is on github). In particular : - -
- -
Find titles from the prefix : -   - -
Choose a title from the filtered list : - -
- -
 
-
- - - - - + + + + + + Evopedia + + + + + + + + + + + + +

Evopedia

+ +
+ This is a preliminary work on the port of Evopedia (offline wikipedia reader) in HTML5/Javascript, with Firefox OS as the primary target +
+ The original application is at http://www.evopedia.info/ +
+
+ To use it, you have to first download locally a dump from http://dumpathome.evopedia.info/dumps/finished (with a Bittorrent client), and select some of the dowloaded files below. +
+ I have tested it with the small dump (2010-08-14), the French dump (2013-02-16), the French wiktionary dump (2011-03-16) and the English dump (2012-02-11) +
+
+ +
+ It's only a proof of concept so far : there are many many ways this could be enhanced (suggestions and patches are welcome : the source code is on github). In particular : + +
+
+ +
Find titles starting with : +   + +
Choose a title from the filtered list : + +
+ +
 
+
+ + + + + diff --git a/www/js/app.js b/www/js/app.js index 0218b8f3..430e2700 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1,187 +1,191 @@ - -// This uses require.js to structure javascript: -// http://requirejs.org/docs/api.html#define - -define(function(require) { - // Zepto provides nice js and DOM methods (very similar to jQuery, - // and a lot smaller): - // http://zeptojs.com/ - var $ = require('zepto'); - - // Need to verify receipts? This library is included by default. - // https://github.com/mozilla/receiptverifier - require('receiptverifier'); - - // Want to install the app locally? This library hooks up the - // installation button. See