From cb467ed9dd4df9651b2f218549590ece3bbd5852 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 22 Sep 2013 23:16:59 +0100 Subject: [PATCH] PDF export --- cache.manifest | 2 +- res-min/main.js | 612 ++++++++++++++++++----------------- res-min/themes/blue-gray.css | 1 + res-min/themes/default.css | 1 + res-min/themes/night.css | 1 + res-min/themes/school.css | 1 + res/config.js | 1 + res/core.js | 5 + res/html/bodyIndex.html | 1 + res/html/bodyViewer.html | 1 + res/publisher.js | 47 ++- res/settings.js | 32 +- res/styles/main.less | 7 + res/utils.js | 20 +- 14 files changed, 421 insertions(+), 311 deletions(-) diff --git a/cache.manifest b/cache.manifest index b2d75599..87dd1149 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -#Date Sat Sep 21 2013 16:28:43 +#Date Sun Sep 22 2013 23:14:34 CACHE: index.html diff --git a/res-min/main.js b/res-min/main.js index a96d8bed..73dd29c0 100644 --- a/res-min/main.js +++ b/res-min/main.js @@ -923,7 +923,7 @@ function runDelayedFunction() { } function C(e, t) { for (var n, i, o, r = [], s = 0, a = e.length; a > s; s++) i = e[s], i.style && (r[s] = mt.get(i, "olddisplay"), - n = i.style.display, t ? (r[s] || "none" !== n || (i.style.display = ""), "" === i.style.display && y(i) && (r[s] = mt.access(i, "olddisplay", S(i.nodeName)))) : r[s] || (o = y(i), + n = i.style.display, t ? (r[s] || "none" !== n || (i.style.display = ""), "" === i.style.display && y(i) && (r[s] = mt.access(i, "olddisplay", A(i.nodeName)))) : r[s] || (o = y(i), (n && "none" !== n || !o) && mt.set(i, "olddisplay", o ? n : rt.css(i, "display")))); for (s = 0; a > s; s++) i = e[s], i.style && (t && "none" !== i.style.display && "" !== i.style.display || (i.style.display = t ? r[s] || "" : "none")); return e; @@ -933,12 +933,12 @@ function runDelayedFunction() { return i ? Math.max(0, i[1] - (n || 0)) + (i[2] || "px") : t; } function E(e, t, n, i, o) { - for (var r = n === (i ? "border" : "content") ? 4 : "width" === t ? 1 : 0, s = 0; 4 > r; r += 2) "margin" === n && (s += rt.css(e, n + Jt[r], !0, o)), - i ? ("content" === n && (s -= rt.css(e, "padding" + Jt[r], !0, o)), "margin" !== n && (s -= rt.css(e, "border" + Jt[r] + "Width", !0, o))) : (s += rt.css(e, "padding" + Jt[r], !0, o), - "padding" !== n && (s += rt.css(e, "border" + Jt[r] + "Width", !0, o))); + for (var r = n === (i ? "border" : "content") ? 4 : "width" === t ? 1 : 0, s = 0; 4 > r; r += 2) "margin" === n && (s += rt.css(e, n + Zt[r], !0, o)), + i ? ("content" === n && (s -= rt.css(e, "padding" + Zt[r], !0, o)), "margin" !== n && (s -= rt.css(e, "border" + Zt[r] + "Width", !0, o))) : (s += rt.css(e, "padding" + Zt[r], !0, o), + "padding" !== n && (s += rt.css(e, "border" + Zt[r] + "Width", !0, o))); return s; } - function A(e, t, n) { + function S(e, t, n) { var i = !0, o = "width" === t ? e.offsetWidth : e.offsetHeight, r = w(e), s = rt.support.boxSizing && "border-box" === rt.css(e, "boxSizing", !1, r); if (0 >= o || null == o) { if (o = Ht(e, t, r), (0 > o || null == o) && (o = e.style[t]), Vt.test(o)) return o; @@ -946,7 +946,7 @@ function runDelayedFunction() { } return o + E(e, t, n || (s ? "border" : "content"), i, r) + "px"; } - function S(e) { + function A(e) { var t = U, n = Xt[e]; return n || (n = k(e, t), "none" !== n && n || (qt = (qt || rt("