diff --git a/public/cache.manifest b/public/cache.manifest index 1310f198..5ee7bd0e 100644 --- a/public/cache.manifest +++ b/public/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -#Date Sun Feb 02 2014 22:08:12 +#Date Sun Feb 09 2014 13:28:14 CACHE: res/worker.js @@ -34,6 +34,7 @@ res-min/font/fontello.woff res-min/img/gittip.png res-min/img/icons.png res-min/img/icons2x.png +res-min/img/logo-192.png res-min/img/logo-promo-128.png res-min/img/menu-icon.png res-min/img/school-line.png diff --git a/public/res-min/main.js b/public/res-min/main.js index 3827402f..4c63d5ba 100644 --- a/public/res-min/main.js +++ b/public/res-min/main.js @@ -22047,19 +22047,20 @@ function() { l = e; }; var c; - return s.onPreviewFinished = function(e) { + return s.onPreviewFinished = function(e, n) { try { - var n = t.template(s.config.template, { + var i = t.template(s.config.template, { documentTitle: l.title, documentMarkdown: l.content, strippedDocumentMarkdown: l.content.substring(l.frontMatter ? l.frontMatter._frontMatter.length : 0), - documentHTML: e, + documentHTML: n, + documentHTMLWithComments: e, frontMatter: l.frontMatter, publishAttributes: void 0 }); - c.value = n; - } catch (i) { - return a.onError(i), i.message; + c.value = i; + } catch (o) { + return a.onError(o), o.message; } }, s.onReady = function() { c = document.getElementById("input-html-code"), e(".action-html-code").click(function() { @@ -23308,8 +23309,9 @@ function() { var e = ""; t.each(g.children, function(t) { e += t.innerHTML; - }), e = e.replace(/^
<\/div>\n\n/gm, ""), e = e.replace(/ .*<\/span> /g, ""), - v(i.trim(e)); + }), e = e.replace(/^
<\/div>\n\n/gm, ""); + var n = i.trim(e), o = n.replace(/ .*?<\/span> /g, ""); + v(n, o); }); }; r(function() { @@ -23648,7 +23650,7 @@ function() { }), define("text!html/bodyViewer.html", [], function() { return '\n\n
\n
\n
\n\n\n\n
\n \n \n
\n
\n
\n
\n
\n\n\n'; }), define("text!html/settingsTemplateTooltip.html", [], function() { - return 'Available variables:\n
\n
    \n
  • \n documentTitle: document title
  • \n
  • \n documentMarkdown: document in Markdown format
  • \n
  • \n strippedDocumentMarkdown: document without front matter
  • \n
  • \n documentHTML: document in HTML format
  • \n
  • \n frontMatter: YAML front matter object (undefined if not present)
  • \n
  • \n publishAttributes: attributes of the publish location (undefined if\n not publishing)
  • \n
\nExamples:\n
<title><%= documentTitle %></title>\n
<div><%- documentHTML %></div>\n
<%\n
if(publishAttributes.provider.providerId == "github") print(documentMarkdown);\n%>\n
\n
\nMore\n info\n
\n
\n\n Careful! Template is subject to malicious code. Don\'t copy/paste untrusted\n content.'; + return 'Available variables:\n
\n
    \n
  • \n documentTitle: document title
  • \n
  • \n documentMarkdown: document in Markdown format
  • \n
  • \n strippedDocumentMarkdown: document without front matter
  • \n
  • \n documentHTML: document in HTML format
  • \n
  • \n documentHTMLWithComments: HTML format with comments
  • \n
  • \n frontMatter: YAML front matter object (undefined if not present)
  • \n
  • \n publishAttributes: attributes of the publish location (undefined if\n not publishing)
  • \n
\nExamples:\n
<title><%= documentTitle %></title>\n
<div><%- documentHTML %></div>\n
<%\n
if(publishAttributes.provider.providerId == "github") print(documentMarkdown);\n%>\n
\n
\nMore\n info\n
\n
\n\n Careful! Template is subject to malicious code. Don\'t copy/paste untrusted\n content.'; }), define("text!html/settingsUserCustomExtensionTooltip.html", [], function() { return 'Extension variable name:\nuserCustom\n
\n
\nExample:\n
\nuserCustom.onPreviewFinished = function() {\n
\n  eventMgr.onMessage("Finished!");\n
\n};\n
\n
\nMore\n info\n
\n
\n Careful! This is subject to malicious code. Don\'t copy/paste untrusted content.'; }), function(e, t) { @@ -31075,7 +31077,7 @@ function() { function h(e, t, n) { return void 0 === t.format && (t.format = i.getInputRadio("radio-publish-format"), "template" == t.format && i.getInputChecked("#checkbox-publish-custom-template") && (t.customTmpl = i.getInputValue("#textarea-publish-custom-template"))), - "markdown" == t.format ? e.content : "html" == t.format ? n : v.applyTemplate(e, t, n); + "markdown" == t.format ? e.content : "html" == t.format ? n.withoutComments : v.applyTemplate(e, t, n); } function p(e, t) { if (0 === C.length) return e(t), void 0; @@ -31110,17 +31112,17 @@ function() { function m(e) { var n = A, i = n.newPublishAttributes(e); if (void 0 !== i) { - var r = l.currentFile, s = x, a = h(r, i, s), u = r.frontMatter && r.frontMatter.title || r.title; - n.publish(i, r.frontMatter, u, a, function(e) { + var r = l.currentFile, s = h(r, i, x), a = r.frontMatter && r.frontMatter.title || r.title; + n.publish(i, r.frontMatter, a, s, function(e) { void 0 === e && (i.provider = n, c.createLink(i, function() { f(r, i); })); }); - var d = {}; + var u = {}; t.each(n.publishPreferencesInputIds, function(e) { var t = document.getElementById("input-publish-" + e); - d[e] = "checkbox" == t.type ? t.checked : t.value; - }), d.format = i.format, d.customTmpl = i.customTmpl, o[n.providerId + ".publishPreferences"] = JSON.stringify(d); + u[e] = "checkbox" == t.type ? t.checked : t.value; + }), u.format = i.format, u.customTmpl = i.customTmpl, o[n.providerId + ".publishPreferences"] = JSON.stringify(u); } } var v = {}, b = t.chain(arguments).map(function(e) { @@ -31145,7 +31147,8 @@ function() { documentTitle: e.title, documentMarkdown: e.content, strippedDocumentMarkdown: e.content.substring(e.frontMatter ? e.frontMatter._frontMatter.length : 0), - documentHTML: i, + documentHTML: i.withoutComments, + documentHTMLWithComments: i.withComments, frontMatter: e.frontMatter, publishAttributes: n }); @@ -31154,8 +31157,11 @@ function() { } }; var y, w, x, C = []; - s.addListener("onPreviewFinished", function(e) { - x = e; + s.addListener("onPreviewFinished", function(e, t) { + x = { + withComments: e, + withoutComments: t + }; }); var E = !1; s.addListener("onOfflineChanged", function(e) { @@ -31201,7 +31207,7 @@ function() { i.saveAs(e, t + ".md"); }), e(".action-download-html").click(function() { var e = l.currentFile.title; - i.saveAs(x, e + ".html"); + i.saveAs(x.withoutComments, e + ".html"); }), e(".action-download-template").click(function() { var e = l.currentFile, t = v.applyTemplate(e, void 0, x); i.saveAs(t, e.title + (-1 === r.template.indexOf("documentHTML") ? ".md" : ".html")); diff --git a/public/res-min/themes/default.css b/public/res-min/themes/default.css index 98ebf5ee..005c107f 100644 --- a/public/res-min/themes/default.css +++ b/public/res-min/themes/default.css @@ -751,7 +751,7 @@ button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-ap .tooltip.right{margin-left:3px;padding:0 5px} .tooltip.bottom{margin-top:3px;padding:5px 0} .tooltip.left{margin-left:-3px;padding:0 5px} -.tooltip-inner{max-width:240px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} +.tooltip-inner{max-width:250px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} .tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000} .tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000} diff --git a/public/res-min/themes/gray.css b/public/res-min/themes/gray.css index a1a86278..f8452597 100644 --- a/public/res-min/themes/gray.css +++ b/public/res-min/themes/gray.css @@ -751,7 +751,7 @@ button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-ap .tooltip.right{margin-left:3px;padding:0 5px} .tooltip.bottom{margin-top:3px;padding:5px 0} .tooltip.left{margin-left:-3px;padding:0 5px} -.tooltip-inner{max-width:240px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} +.tooltip-inner{max-width:250px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} .tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000} .tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000} diff --git a/public/res-min/themes/night.css b/public/res-min/themes/night.css index ee0de8d0..a2d9c40f 100644 --- a/public/res-min/themes/night.css +++ b/public/res-min/themes/night.css @@ -751,7 +751,7 @@ button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-ap .tooltip.right{margin-left:3px;padding:0 5px} .tooltip.bottom{margin-top:3px;padding:5px 0} .tooltip.left{margin-left:-3px;padding:0 5px} -.tooltip-inner{max-width:240px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} +.tooltip-inner{max-width:250px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} .tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000} .tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000} diff --git a/public/res-min/themes/school.css b/public/res-min/themes/school.css index 973ee51a..9bf16b5c 100644 --- a/public/res-min/themes/school.css +++ b/public/res-min/themes/school.css @@ -751,7 +751,7 @@ button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-ap .tooltip.right{margin-left:3px;padding:0 5px} .tooltip.bottom{margin-top:3px;padding:5px 0} .tooltip.left{margin-left:-3px;padding:0 5px} -.tooltip-inner{max-width:240px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} +.tooltip-inner{max-width:250px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px} .tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000} .tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}