From: Chris Jaekl Date: Wed, 15 Nov 2017 12:59:36 +0000 (+0900) Subject: Enable strict mode and tweak (default) page size. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=5799f40be84ede60b75c4bced2b0b14b827aa81e;p=quanweb.git Enable strict mode and tweak (default) page size. --- diff --git a/app/lib.js b/app/lib.js index 6edaa47..4a77ffc 100644 --- a/app/lib.js +++ b/app/lib.js @@ -1,6 +1,8 @@ //QuanLib: eBook Library //(C) 2017 by Christian Jaekl (cejaekl@yahoo.com) +'use strict'; + var g_state = { cache: [], count: 0, @@ -12,7 +14,7 @@ var g_state = { ids: [], last: (-1), map: {}, // map from book.Id to index into cache[] - pageSize: 48, + pageSize: 20, tooltip: { bookId: undefined, milliSecs: 500, // time to wait before displaying tooltip