From e97a353d16b3989b34124d12a5cbfe7446c00422 Mon Sep 17 00:00:00 2001 From: garafu Date: Sun, 27 Apr 2014 15:05:58 +0900 Subject: [PATCH] Load all blog entry. Add the function that load all blog entries. --- README.md | 2 +- build.bat | 4 +++- build/blogger.toc.min.js | 8 ++++---- demo/index_compile.html | 1 - demo/index_nocompile.html | 1 - .../closure/bin/build/depstree.pyc | Bin 7466 -> 7194 bytes .../closure/bin/build/jscompiler.pyc | Bin 2169 -> 2118 bytes .../closure/bin/build/source.pyc | Bin 3630 -> 3494 bytes .../closure/bin/build/treescan.pyc | Bin 2072 -> 2004 bytes src/blogger/toc/main.js | 13 ++++++++----- src/blogger/toc/settings.js | 2 +- 11 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 81b9fbe..9ac7b38 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ User setting should be placed before the concreate script file. // User Setting. var POSTSTOC_SETTINGS = { blogURL: 'garafu.blogspot.jp', // Set your blog url. - maxResults: 500, // Set max recieve data. + maxResults: 500, // Set max recieve data. If set 'Infinity', you can recieve all entries. orderby: 'updated', // Set enum ['title', 'published', 'updated']. printby: 'title' // Set enum ['title', 'label'] }; diff --git a/build.bat b/build.bat index 54bc2a1..f556cff 100644 --- a/build.bat +++ b/build.bat @@ -30,7 +30,9 @@ set OUTPUT_FILE=.\build\blogger.toc.min.js --compiler_flags="--externs=%CONTRACT_JS%" ^ --compiler_flags="--js_output_file=%OUTPUT_FILE%" - +rem for debug options. +rem --compiler_flags="--compilation_level=WHITESPACE_ONLY" ^ +rem --compiler_flags="--formatting=pretty_print" ^ rem --root=%CLOSERU_LIBRARY_THIRD_DIR% ^ rem --compiler_flags="--formatting=print_input_delimiter" ^ diff --git a/build/blogger.toc.min.js b/build/blogger.toc.min.js index f12cc8f..d845e5a 100644 --- a/build/blogger.toc.min.js +++ b/build/blogger.toc.min.js @@ -1,11 +1,11 @@ -/** Copyright (c) 2013 akinari tsugo */function h(a){return function(){return a}}function k(a,b){function c(){}c.prototype=b.prototype;a.r=b.prototype;a.prototype=new c};function l(a){this.a=a};function n(a){this.a=a}k(n,l);n.prototype.execute=function(a){a=a.entry||[];var b,c,e,d;b=document.createElement("ul");b.className="poststoc-list";e=0;for(d=a.length;ec.title.$t?1:-1})};function G(a){this.a=a}k(G,w);G.prototype.e=h("updated");G.prototype.execute=function(){};function H(){this.a=new z;this.i=I(this);this.k=J(this);this.b=0;K(this)}var L="__garafu.blogger.toc__"+(new Date).getTime(),M=null,contract=contract||void 0,N=contract;function O(){var a=M;a||(M=a=new H);return a} +t.prototype.g=function(){var a=this.a,b=this.c.term,c=document.createElement("div"),e=document.createElement("div"),d=document.createElement("a"),g=document.createElement("ul"),a="http://"+a.j,a=a+"/search/label/",a=a+b;d.appendChild(document.createTextNode(b));d.href=a;d.className="poststoc-category-anchor";e.appendChild(d);e.className="poststoc-category-title";g.className="poststoc-list";c.appendChild(e);c.appendChild(g);c.className="poststoc-category";this.d=c;this.n=e;this.f=g};function u(a){this.a=a}k(u,l);u.prototype.execute=function(a){var b=this.a,c=a.entry||[];a=a.category||[];var e,d,g,C,m,D,p,E,h,q;C={};m=[];D=document.createDocumentFragment();e=0;for(g=c.length;ec.title.$t?1:-1})};function G(a){this.a=a}k(G,w);G.prototype.e=f("updated");G.prototype.execute=function(){};function H(){this.a=new z;this.i=I(this);this.k=J(this);this.b=0;K(this)}var L="__garafu.blogger.toc__"+(new Date).getTime(),M=null,contract=contract||void 0,N=contract;function O(){var a=M;a||(M=a=new H);return a} function K(a){var b,c,e;b=a.b+1;e=a.b+500LOAD DATA ...'); -function P(a){var b,c;b=O();N?(c=N.feed.entry,a=a.feed.entry,c=c.concat(a),N.feed.entry=c):N=a;if(b.a.h<=b.b){for(c=document.getElementById(L);a=c.firstChild;)c.removeChild(a);b.sort(N);b.print(N)}else K(b)}var Q=["garafu","blogger","toc","load"],R=this;Q[0]in R||!R.execScript||R.execScript("var "+Q[0]);for(var S;Q.length&&(S=Q.shift());)Q.length||void 0===P?R=R[S]?R[S]:R[S]={}:R[S]=P; +function P(a){var b,c,e;b=O();N?a.feed.entry&&0!=a.feed.entry.length&&(c=N.feed.entry,e=a.feed.entry,c=c.concat(e),N.feed.entry=c):N=a;if(b.a.h<=b.b||!a.feed.entry||a.feed.entry&&0===a.feed.entry.length){for(a=document.getElementById(L);c=a.firstChild;)a.removeChild(c);b.sort(N);b.print(N)}else K(b)}var Q=["garafu","blogger","toc","load"],R=this;Q[0]in R||!R.execScript||R.execScript("var "+Q[0]);for(var S;Q.length&&(S=Q.shift());)Q.length||void 0===P?R=R[S]?R[S]:R[S]={}:R[S]=P; diff --git a/demo/index_compile.html b/demo/index_compile.html index 0d25e7c..4b60fd9 100644 --- a/demo/index_compile.html +++ b/demo/index_compile.html @@ -9,7 +9,6 @@