diff --git a/cache.manifest b/cache.manifest index 9a339599..1773bc21 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -# Sun Jun 16 19:34:01 GMT 2013 +# Wed Jun 19 21:40:15 GMT 2013 CACHE: index.html diff --git a/css/main-min.css b/css/main-min.css index 82d24849..4e049d16 100644 --- a/css/main-min.css +++ b/css/main-min.css @@ -5436,11 +5436,17 @@ input::-webkit-input-placeholder,textarea::-webkit-input-placeholder { box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 134, 97, 0.6) !important; } -.navbar-inner .btn { +.navbar-inner .btn, +#extension-preview-buttons .btn { background-color: #ddd; } -.navbar-inner .btn:hover,.navbar-inner .btn:focus,.navbar-inner .btn:active,.navbar-inner .btn.active,.btn-group.open .btn.dropdown-toggle - { +.navbar-inner .btn:hover, +.navbar-inner .btn:focus, +.navbar-inner .btn:active, +.navbar-inner .btn.active, +.btn-group.open .btn.dropdown-toggle, +#extension-preview-buttons .btn-group:hover .btn, +#extension-preview-buttons .btn-group.open .btn { color: #333333; background-color: #eee; } @@ -5485,26 +5491,54 @@ input[readonly],select[readonly],textarea[readonly] { .btn-group { margin-right: 10px; } +#extension-preview-buttons .btn-group .btn { + opacity: 0.3; + filter: alpha(opacity = 30); +} +#extension-preview-buttons, +#extension-preview-buttons .dropdown-menu { + position: fixed; + right: 30px; + top: inherit; + z-index: 1; +} +#extension-preview-buttons .btn-group:hover .btn, +#extension-preview-buttons .btn-group.open .btn { + opacity: 1; + filter: none; +} #extension-buttons { margin-right: 15px; } #extension-buttons>.btn-group { margin: 5px 0 0; } -#extension-buttons>.btn-group>.btn { +#extension-preview-buttons>.btn-group { + margin: 0; +} +#extension-buttons>.btn-group>.btn, +#extension-preview-buttons>.btn-group>.btn { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } -#extension-buttons>.btn-group:first-child>.btn { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; +#extension-buttons>.btn-group:first-child>.btn, +#extension-preview-buttons>.btn-group:first-child>.btn { + -webkit-top-left-border-radius: 4px; + -webkit-bottom-left-border-radius: 4px; + -moz-top-left-border-radius: 4px; + -moz-bottom-left-border-radius: 4px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; } -#extension-buttons>.btn-group:last-child>.btn { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; +#extension-buttons>.btn-group:last-child>.btn, +#extension-preview-buttons>.btn-group:last-child>.btn { + -webkit-top-right-border-radius: 4px; + -webkit-bottom-right-border-radius: 4px; + -moz-top-right-border-radius: 4px; + -moz-bottom-right-border-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; } .btn-group>.btn+.dropdown-toggle { padding-right: 12px; @@ -5618,6 +5652,11 @@ div.dropdown-menu .stat { div.dropdown-menu i { margin-right: 0; } +div.dropdown-menu textarea { + width: 250px; + max-width: 250px; + height: 150px; +} #link-container { min-width: 210px; white-space: normal; @@ -5837,20 +5876,19 @@ table caption+thead tr:first-child th,table caption+thead tr:first-child td,tabl table tbody+tbody { border-top: 2px solid #dddddd; } +#wmd-preview blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); +} blockquote p { - margin-bottom: 0; - font-size: 17.5px; + margin-bottom: 20px; + font-size: 14px; font-weight: 300; - line-height: 1.25; + line-height: 20px; } ul,ol { margin-bottom: 20px; } -blockquote p { - margin-bottom: 20px; - font-size: 14px; - line-height: 20px; -} input[type="file"] { line-height: inherit; height: inherit; diff --git a/js/main-min.js b/js/main-min.js index 848fce2b..a8f21758 100644 --- a/js/main-min.js +++ b/js/main-min.js @@ -764,19 +764,19 @@ function css_browser_selector(e) { } function E(e) { var t = X, n = xn[e]; - return n || (n = I(e, t), "none" !== n && n || (un = (un || lt("").css("cssText", "display:block !important")).appendTo(t.documentElement), + return n || (n = P(e, t), "none" !== n && n || (un = (un || lt("").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (un[0].contentWindow || un[0].contentDocument).document, t.write("
"), - t.close(), n = I(e, t), un.detach()), xn[e] = n), n; + t.close(), n = P(e, t), un.detach()), xn[e] = n), n; } - function I(e, t) { + function P(e, t) { var n = lt(t.createElement(e)).appendTo(t.body), i = lt.css(n[0], "display"); return n.remove(), i; } - function P(e, t, n, i) { + function I(e, t, n, i) { var o; if (lt.isArray(t)) lt.each(t, function(t, o) { - n || En.test(e) ? i(e, o) : P(e + "[" + ("object" == typeof o ? t : "") + "]", o, n, i); - }); else if (n || "object" !== lt.type(t)) i(e, t); else for (o in t) P(e + "[" + o + "]", t[o], n, i); + n || En.test(e) ? i(e, o) : I(e + "[" + ("object" == typeof o ? t : "") + "]", o, n, i); + }); else if (n || "object" !== lt.type(t)) i(e, t); else for (o in t) I(e + "[" + o + "]", t[o], n, i); } function $(e) { return function(t, n) { @@ -1490,7 +1490,7 @@ function css_browser_selector(e) { return l(), r.promise(n); } }); - var _t, Et, It = /[\t\r\n]/g, Pt = /\r/g, $t = /^(?:input|select|textarea|button|object)$/i, zt = /^(?:a|area)$/i, Nt = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i, Rt = /^(?:checked|selected)$/i, Lt = lt.support.getSetAttribute, At = lt.support.input; + var _t, Et, Pt = /[\t\r\n]/g, It = /\r/g, $t = /^(?:input|select|textarea|button|object)$/i, zt = /^(?:a|area)$/i, Nt = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i, Rt = /^(?:checked|selected)$/i, Lt = lt.support.getSetAttribute, At = lt.support.input; lt.fn.extend({ attr: function(e, t) { return lt.access(this, lt.attr, e, t, arguments.length > 1); @@ -1515,7 +1515,7 @@ function css_browser_selector(e) { if (lt.isFunction(e)) return this.each(function(t) { lt(this).addClass(e.call(this, t, this.className)); }); - if (l) for (t = (e || "").match(ut) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(It, " ") : " ")) { + if (l) for (t = (e || "").match(ut) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Pt, " ") : " ")) { for (r = 0; o = t[r++]; ) 0 > i.indexOf(" " + o + " ") && (i += o + " "); n.className = lt.trim(i); } @@ -1526,7 +1526,7 @@ function css_browser_selector(e) { if (lt.isFunction(e)) return this.each(function(t) { lt(this).removeClass(e.call(this, t, this.className)); }); - if (l) for (t = (e || "").match(ut) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(It, " ") : "")) { + if (l) for (t = (e || "").match(ut) || []; a > s; s++) if (n = this[s], i = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(Pt, " ") : "")) { for (r = 0; o = t[r++]; ) for (;i.indexOf(" " + o + " ") >= 0; ) i = i.replace(" " + o + " ", " "); n.className = e ? lt.trim(i) : ""; } @@ -1543,7 +1543,7 @@ function css_browser_selector(e) { }); }, hasClass: function(e) { - for (var t = " " + e + " ", n = 0, i = this.length; i > n; n++) if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(It, " ").indexOf(t) >= 0) return !0; + for (var t = " " + e + " ", n = 0, i = this.length; i > n; n++) if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(Pt, " ").indexOf(t) >= 0) return !0; return !1; }, val: function(e) { @@ -1556,7 +1556,7 @@ function css_browser_selector(e) { })), i = lt.valHooks[this.type] || lt.valHooks[this.nodeName.toLowerCase()], i && "set" in i && i.set(this, r, "value") !== t || (this.value = r)); }); if (r) return i = lt.valHooks[r.type] || lt.valHooks[r.nodeName.toLowerCase()], - i && "get" in i && (n = i.get(r, "value")) !== t ? n : (n = r.value, "string" == typeof n ? n.replace(Pt, "") : null == n ? "" : n); + i && "get" in i && (n = i.get(r, "value")) !== t ? n : (n = r.value, "string" == typeof n ? n.replace(It, "") : null == n ? "" : n); } } }), lt.extend({ @@ -2157,7 +2157,7 @@ function css_browser_selector(e) { }, s, !0), c = f(function(e) { return Z.call(t, e) > -1; }, s, !0), u = [ function(e, n, i) { - return !r && (i || n !== P) || ((t = n).nodeType ? l(e, n, i) : c(e, n, i)); + return !r && (i || n !== I) || ((t = n).nodeType ? l(e, n, i) : c(e, n, i)); } ]; o > a; a++) if (n = S.relative[e[a].type]) u = [ f(h(u), n) ]; else { if (n = S.filter[e[a].type].apply(null, e[a].matches), n[j]) { for (i = ++a; o > i && !S.relative[e[i].type]; i++) ; @@ -2169,8 +2169,8 @@ function css_browser_selector(e) { } function y(e, t) { var n = 0, i = t.length > 0, r = e.length > 0, a = function(o, a, l, c, u) { - var d, p, f, h = [], m = 0, v = "0", y = o && [], b = null != u, w = P, x = o || r && S.find.TAG("*", u && a.parentNode || a), C = B += null == w ? 1 : Math.random() || .1; - for (b && (P = a !== z && a, k = n); null != (d = x[v]); v++) { + var d, p, f, h = [], m = 0, v = "0", y = o && [], b = null != u, w = I, x = o || r && S.find.TAG("*", u && a.parentNode || a), C = B += null == w ? 1 : Math.random() || .1; + for (b && (I = a !== z && a, k = n); null != (d = x[v]); v++) { if (r && d) { for (p = 0; f = e[p++]; ) if (f(d, a, l)) { c.push(d); @@ -2188,7 +2188,7 @@ function css_browser_selector(e) { } J.apply(c, h), b && !o && h.length > 0 && m + t.length > 1 && s.uniqueSort(c); } - return b && (B = C, P = w), y; + return b && (B = C, I = w), y; }; return i ? o(a) : a; } @@ -2211,7 +2211,7 @@ function css_browser_selector(e) { return E(e, c)(i, t, R, n, ft.test(e)), n; } function x() {} - var C, k, S, T, _, E, I, P, $, z, N, R, L, A, O, M, D, j = "sizzle" + -new Date(), H = e.document, F = {}, B = 0, W = 0, q = i(), G = i(), U = i(), V = typeof t, X = 1 << 31, Y = [], K = Y.pop, J = Y.push, Q = Y.slice, Z = Y.indexOf || function(e) { + var C, k, S, T, _, E, P, I, $, z, N, R, L, A, O, M, D, j = "sizzle" + -new Date(), H = e.document, F = {}, B = 0, W = 0, q = i(), G = i(), U = i(), V = typeof t, X = 1 << 31, Y = [], K = Y.pop, J = Y.push, Q = Y.slice, Z = Y.indexOf || function(e) { for (var t = 0, n = this.length; n > t; t++) if (this[t] === e) return t; return -1; }, et = "[\\x20\\t\\r\\n\\f]", tt = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", nt = tt.replace("w", "w#"), it = "([*^$|!~]?=)", ot = "\\[" + et + "*(" + tt + ")" + et + "*(?:" + it + et + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + nt + ")|)|)" + et + "*\\]", rt = ":(" + tt + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + ot.replace(3, 8) + ")*)|.*)\\)|)", st = RegExp("^" + et + "+|((?:^|[^\\\\])(?:\\\\.)*)" + et + "+$", "g"), at = RegExp("^" + et + "*," + et + "*"), ct = RegExp("^" + et + "*([\\x20\\t\\r\\n\\f>+~])" + et + "*"), ut = RegExp(rt), dt = RegExp("^" + nt + "$"), pt = { @@ -2315,17 +2315,17 @@ function css_browser_selector(e) { return !1; }, D = N.compareDocumentPosition ? function(e, t) { var n; - return e === t ? (I = !0, 0) : (n = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t)) ? 1 & n || e.parentNode && 11 === e.parentNode.nodeType ? e === i || M(H, e) ? -1 : t === i || M(H, t) ? 1 : 0 : 4 & n ? -1 : 1 : e.compareDocumentPosition ? -1 : 1; + return e === t ? (P = !0, 0) : (n = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t)) ? 1 & n || e.parentNode && 11 === e.parentNode.nodeType ? e === i || M(H, e) ? -1 : t === i || M(H, t) ? 1 : 0 : 4 & n ? -1 : 1 : e.compareDocumentPosition ? -1 : 1; } : function(e, t) { var n, o = 0, r = e.parentNode, s = t.parentNode, l = [ e ], c = [ t ]; - if (e === t) return I = !0, 0; + if (e === t) return P = !0, 0; if (!r || !s) return e === i ? -1 : t === i ? 1 : r ? -1 : s ? 1 : 0; if (r === s) return a(e, t); for (n = e; n = n.parentNode; ) l.unshift(n); for (n = t; n = n.parentNode; ) c.unshift(n); for (;l[o] === c[o]; ) o++; return o ? a(l[o], c[o]) : l[o] === H ? -1 : c[o] === H ? 1 : 0; - }, I = !1, [ 0, 0 ].sort(D), F.detectDuplicates = I, z) : z; + }, P = !1, [ 0, 0 ].sort(D), F.detectDuplicates = P, z) : z; }, s.matches = function(e, t) { return s(e, null, null, t); }, s.matchesSelector = function(e, t) { @@ -2343,7 +2343,7 @@ function css_browser_selector(e) { throw Error("Syntax error, unrecognized expression: " + e); }, s.uniqueSort = function(e) { var t, n = [], i = 1, o = 0; - if (I = !F.detectDuplicates, e.sort(D), I) { + if (P = !F.detectDuplicates, e.sort(D), P) { for (;t = e[i]; i++) t === e[i - 1] && (o = n.push(i)); for (;o--; ) e.splice(n[o], 1); } @@ -3013,7 +3013,7 @@ function css_browser_selector(e) { } }, vn.test(e) || (lt.cssHooks[e + t].set = S); }); - var _n = /%20/g, En = /\[\]$/, In = /\r?\n/g, Pn = /^(?:submit|button|image|reset|file)$/i, $n = /^(?:input|select|textarea|keygen)/i; + var _n = /%20/g, En = /\[\]$/, Pn = /\r?\n/g, In = /^(?:submit|button|image|reset|file)$/i, $n = /^(?:input|select|textarea|keygen)/i; lt.fn.extend({ serialize: function() { return lt.param(this.serializeArray()); @@ -3024,17 +3024,17 @@ function css_browser_selector(e) { return e ? lt.makeArray(e) : this; }).filter(function() { var e = this.type; - return this.name && !lt(this).is(":disabled") && $n.test(this.nodeName) && !Pn.test(e) && (this.checked || !tn.test(e)); + return this.name && !lt(this).is(":disabled") && $n.test(this.nodeName) && !In.test(e) && (this.checked || !tn.test(e)); }).map(function(e, t) { var n = lt(this).val(); return null == n ? null : lt.isArray(n) ? lt.map(n, function(e) { return { name: t.name, - value: e.replace(In, "\r\n") + value: e.replace(Pn, "\r\n") }; }) : { name: t.name, - value: n.replace(In, "\r\n") + value: n.replace(Pn, "\r\n") }; }).get(); } @@ -3044,7 +3044,7 @@ function css_browser_selector(e) { }; if (n === t && (n = lt.ajaxSettings && lt.ajaxSettings.traditional), lt.isArray(e) || e.jquery && !lt.isPlainObject(e)) lt.each(e, function() { r(this.name, this.value); - }); else for (i in e) P(i, e[i], n, r); + }); else for (i in e) I(i, e[i], n, r); return o.join("&").replace(_n, "+"); }, lt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) { lt.fn[t] = function(e, n) { @@ -3675,7 +3675,7 @@ function css_browser_selector(e) { return e.index < t.index ? -1 : 1; }), "value"); }; - var I = function(e, t, n, i) { + var P = function(e, t, n, i) { var o = {}, r = E(t || k.identity); return S(e, function(t, s) { var a = r.call(n, t, s, e); @@ -3683,11 +3683,11 @@ function css_browser_selector(e) { }), o; }; k.groupBy = function(e, t, n) { - return I(e, t, n, function(e, t, n) { + return P(e, t, n, function(e, t, n) { (k.has(e, t) ? e[t] : e[t] = []).push(n); }); }, k.countBy = function(e, t, n) { - return I(e, t, n, function(e, t) { + return P(e, t, n, function(e, t) { k.has(e, t) || (e[t] = 0), e[t]++; }); }, k.sortedIndex = function(e, t, n, i) { @@ -3712,13 +3712,13 @@ function css_browser_selector(e) { }, k.compact = function(e) { return k.filter(e, k.identity); }; - var P = function(e, t, n) { + var I = function(e, t, n) { return S(e, function(e) { - k.isArray(e) ? t ? s.apply(n, e) : P(e, t, n) : n.push(e); + k.isArray(e) ? t ? s.apply(n, e) : I(e, t, n) : n.push(e); }), n; }; k.flatten = function(e, t) { - return P(e, t, []); + return I(e, t, []); }, k.without = function(e) { return k.difference(e, a.call(arguments, 1)); }, k.uniq = k.unique = function(e, t, n, i) { @@ -4738,9 +4738,9 @@ define("config", function() {}), define("settings", [ "underscore", "config" ], r = e, s(e); }, o.onNewPublishSuccess = s, o.onPublishRemoved = s, o; }), define("text!html/buttonStat.html", [], function() { - return '\r\n \r\n'; + return '\r\n \r\n'; }), define("text!html/buttonStatSettingsBloc.html", [], function() { - return 'Adds a "Document\'s statistics" button in the navigation bar.
\r\nAdds a "Document statistics" button over the preview.
\r\nAdds a "HTML code" button over the preview.
' + }; + return n.onCreatePreviewButton = function() { + return e(t); + }, n.onPreviewFinished = function() { + e("#input-html-code").val(e("#wmd-preview").html()); + }, n.onReady = function() { + e("#input-html-code").click(function(e) { + e.stopPropagation(); + }), e(".action-html-code").click(function() { + _.defer(function() { + e("#input-html-code").each(function() { + e(this).is(":hidden") || e(this).get(0).select(); + }); + }); + }); + }, n; }), define("text!html/dialogAbout.html", [], function() { return 'StackEdit is a free, open-source Markdown editor based on\r\n PageDown, the Markdown library used by Stack Overflow and the other\r\n Stack Exchange sites.
\r\n\r\nCopyright 2013 Benoit Schweblin
\r\n Licensed under an Apache License
Builds the "Open document" dropdown menu.
\r\nShows notification messages in the bottom-right corner of the\r\n screen.
\r\nAdds extra features to the original Markdown syntax.
\r\n" + i + "\n
", "\n\n" + i + "\n\n" + o;
}), e = e.replace(/~0/, "");
}
@@ -5925,10 +5953,10 @@ function() {
return String.fromCharCode(n);
});
}
- function I(e) {
+ function P(e) {
return e = e.replace(/^(\t|[ ]{1,4})/gm, "~0"), e = e.replace(/~0/g, "");
}
- function P(e) {
+ function I(e) {
if (!/\t/.test(e)) return e;
var t, n = [ " ", " ", " ", " " ], i = 0;
return e.replace(/[\n\t]/g, function(e, o) {
@@ -5961,7 +5989,7 @@ function() {
if (L) throw Error("Recursive call to converter.makeHtml");
return L = new i(), A = new i(), O = [], M = 0, n = R.preConversion(n), n = n.replace(/~/g, "~T"),
n = n.replace(/\$/g, "~D"), n = n.replace(/\r\n/g, "\n"), n = n.replace(/\r/g, "\n"),
- n = "\n\n" + n + "\n\n", n = P(n), n = n.replace(/^[ \t]+$/gm, ""), n = R.postNormalization(n),
+ n = "\n\n" + n + "\n\n", n = I(n), n = n.replace(/^[ \t]+$/gm, ""), n = R.postNormalization(n),
n = t(n), n = e(n), n = r(n), n = E(n), n = n.replace(/~D/g, "$$"), n = n.replace(/~T/g, "~"),
n = R.postConversion(n), O = A = L = null, n;
};
@@ -6141,11 +6169,11 @@ var prettyPrintOne, prettyPrint;
}
function r(e) {
var t = [], n = [];
- e.tripleQuotedStrings ? t.push([ P, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, "'\"" ]) : e.multiLineStrings ? t.push([ P, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, "'\"`" ]) : t.push([ P, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, "\"'" ]),
- e.verbatimStrings && n.push([ P, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null ]);
+ e.tripleQuotedStrings ? t.push([ I, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, "'\"" ]) : e.multiLineStrings ? t.push([ I, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, "'\"`" ]) : t.push([ I, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, "\"'" ]),
+ e.verbatimStrings && n.push([ I, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null ]);
var i = e.hashComments;
i && (e.cStyleComments ? (i > 1 ? t.push([ z, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, "#" ]) : t.push([ z, /^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/, null, "#" ]),
- n.push([ P, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/, null ])) : t.push([ z, /^#[^\r\n]*/, null, "#" ])),
+ n.push([ I, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/, null ])) : t.push([ z, /^#[^\r\n]*/, null, "#" ])),
e.cStyleComments && (n.push([ z, /^\/\/[^\r\n]*/, null ]), n.push([ z, /^\/\*[\s\S]*?(?:\*\/|$)/, null ]));
var r = e.regexLiterals;
if (r) {
@@ -6293,11 +6321,11 @@ var prettyPrintOne, prettyPrint;
}
if (!T) {
n.className += " prettyprinted";
- var I = r.lang;
- if (!I) {
- I = h.match(y);
- var P;
- !I && (P = i(n)) && C.test(P.tagName) && (I = P.className.match(y)), I && (I = I[1]);
+ var P = r.lang;
+ if (!P) {
+ P = h.match(y);
+ var I;
+ !P && (I = i(n)) && C.test(I.tagName) && (P = I.className.match(y)), P && (P = P[1]);
}
var $;
if (x.test(n.tagName)) $ = 1; else {
@@ -6307,7 +6335,7 @@ var prettyPrintOne, prettyPrint;
var L = r.linenums;
(L = "true" === L || +L) || (L = h.match(/\blinenums\b(?::(\d+))?/), L = L ? L[1] && L[1].length ? +L[1] : !0 : !1),
L && s(n, L, $), m = {
- langExtension: I,
+ langExtension: P,
sourceNode: n,
numberLines: L,
pre: $
@@ -6328,7 +6356,7 @@ var prettyPrintOne, prettyPrint;
var m, v = 0, y = /\blang(?:uage)?-([\w.]+)(?!\S)/, b = /\bprettyprint\b/, w = /\bprettyprinted\b/, x = /pre|xmp/i, C = /^code$/i, k = /^(?:pre|code|xmp)$/i, S = {};
o();
}
- var f = window, h = [ "break,continue,do,else,for,if,return,while" ], g = [ h, "auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile" ], m = [ g, "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof" ], v = [ m, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where" ], y = [ m, "abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient" ], b = [ y, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where" ], w = "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes", x = [ m, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN" ], C = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", k = [ h, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None" ], S = [ h, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END" ], T = [ h, "as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use" ], _ = [ h, "case,done,elif,esac,eval,fi,function,in,local,set,then,until" ], E = [ v, b, x, C, k, S, _ ], I = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, P = "str", $ = "kwd", z = "com", N = "typ", R = "lit", L = "pun", A = "pln", O = "tag", M = "dec", D = "src", j = "atn", H = "atv", F = "nocode", B = "(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*", W = /\S/, q = r({
+ var f = window, h = [ "break,continue,do,else,for,if,return,while" ], g = [ h, "auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile" ], m = [ g, "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof" ], v = [ m, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where" ], y = [ m, "abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient" ], b = [ y, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where" ], w = "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes", x = [ m, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN" ], C = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", k = [ h, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None" ], S = [ h, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END" ], T = [ h, "as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use" ], _ = [ h, "case,done,elif,esac,eval,fi,function,in,local,set,then,until" ], E = [ v, b, x, C, k, S, _ ], P = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, I = "str", $ = "kwd", z = "com", N = "typ", R = "lit", L = "pun", A = "pln", O = "tag", M = "dec", D = "src", j = "atn", H = "atv", F = "nocode", B = "(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*", W = /\S/, q = r({
keywords: E,
hashComments: !0,
cStyleComments: !0,
@@ -6341,7 +6369,7 @@ var prettyPrintOne, prettyPrint;
keywords: v,
hashComments: !0,
cStyleComments: !0,
- types: I
+ types: P
}), [ "c", "cc", "cpp", "cxx", "cyc", "m" ]), l(r({
keywords: "null,true,false"
}), [ "json" ]), l(r({
@@ -6349,7 +6377,7 @@ var prettyPrintOne, prettyPrint;
hashComments: !0,
cStyleComments: !0,
verbatimStrings: !0,
- types: I
+ types: P
}), [ "cs" ]), l(r({
keywords: y,
cStyleComments: !0
@@ -6387,7 +6415,7 @@ var prettyPrintOne, prettyPrint;
keywords: T,
cStyleComments: !0,
multilineStrings: !0
- }), [ "rc", "rs", "rust" ]), l(o([], [ [ P, /^[\s\S]+/ ] ]), [ "regex" ]);
+ }), [ "rc", "rs", "rust" ]), l(o([], [ [ I, /^[\s\S]+/ ] ]), [ "regex" ]);
var U = f.PR = {
createSimpleLexer: o,
registerLangHandler: l,
@@ -6402,7 +6430,7 @@ var prettyPrintOne, prettyPrint;
PR_PLAIN: A,
PR_PUNCTUATION: L,
PR_SOURCE: D,
- PR_STRING: P,
+ PR_STRING: I,
PR_TAG: O,
PR_TYPE: N,
prettyPrintOne: IN_GLOBAL_SCOPE ? f.prettyPrintOne = d : prettyPrintOne = d,
@@ -7784,7 +7812,7 @@ function(e) {
});
});
};
-}(jQuery), define("libs/jquery.waitforimages", function() {}), define("extensionMgr", [ "jquery", "underscore", "utils", "settings", "text!html/settingsExtensionsAccordion.html", "extensions/googleAnalytics", "extensions/buttonSync", "extensions/buttonPublish", "extensions/buttonShare", "extensions/buttonStat", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", "extensions/dialogOpenHarddrive", "extensions/documentSelector", "extensions/documentTitle", "extensions/workingIndicator", "extensions/notifications", "extensions/markdown-extra", "extensions/toc", "extensions/mathJax", "extensions/emailConverter", "extensions/scrollLink", "libs/bootstrap", "libs/jquery.waitforimages" ], function(e, t, n, i, o) {
+}(jQuery), define("libs/jquery.waitforimages", function() {}), define("extensionMgr", [ "jquery", "underscore", "utils", "settings", "text!html/settingsExtensionsAccordion.html", "extensions/googleAnalytics", "extensions/buttonSync", "extensions/buttonPublish", "extensions/buttonShare", "extensions/buttonStat", "extensions/buttonHtmlCode", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", "extensions/dialogOpenHarddrive", "extensions/documentSelector", "extensions/documentTitle", "extensions/workingIndicator", "extensions/notifications", "extensions/markdown-extra", "extensions/toc", "extensions/mathJax", "extensions/emailConverter", "extensions/scrollLink", "libs/bootstrap", "libs/jquery.waitforimages" ], function(e, t, n, i, o) {
function r(e) {
return t.chain(u).map(function(t) {
return t.config.enabled && t[e];
@@ -7829,7 +7857,7 @@ function(e) {
var s = o.onSaveSettings;
s && s(r, i), e[o.extensionId] = r;
});
- }, a("onReady"), a("onMessage"), a("onError"), a("onOfflineChanged"), a("onAsyncRunning", !0),
+ }, a("onMessage"), a("onError"), a("onOfflineChanged"), a("onAsyncRunning", !0),
a("onPeriodicRun", !0), a("onFileMgrCreated"), a("onSynchronizerCreated"), a("onPublisherCreated"),
a("onExtensionMgrCreated"), a("onFileCreated"), a("onFileDeleted"), a("onFileSelected"),
a("onContentChanged"), a("onTitleChanged"), a("onSyncRunning"), a("onSyncSuccess"),
@@ -7846,15 +7874,21 @@ function(e) {
e("#wmd-preview").waitForImages(n), t.each(p, function(e) {
e(n);
});
- }, e(function() {
+ }, c.onReady = function() {
t.chain(u).sortBy(function(e) {
return e.extensionName.toLowerCase();
}).each(l), logger.log("onCreateButton");
var n = r("onCreateButton");
t.each(n, function(t) {
e("#extension-buttons").append(e('