diff --git a/cache.manifest b/cache.manifest index 5dd4f9b1..d464c46b 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -# Wed Jun 19 23:53:00 GMT 2013 +# Thu Jun 20 23:31:06 GMT 2013 CACHE: index.html diff --git a/css/main-min.css b/css/main-min.css index 234e4296..f71539da 100644 --- a/css/main-min.css +++ b/css/main-min.css @@ -5376,7 +5376,8 @@ body { .working { cursor: progress; } -.btn,.dropdown-menu { +.btn, +.dropdown-menu { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -5440,36 +5441,48 @@ input::-webkit-input-placeholder,textarea::-webkit-input-placeholder { #extension-preview-buttons .btn { background-color: #ddd; } +#extension-preview-buttons .dropdown-menu, +#extension-preview-buttons .btn-group.open .btn, +#extension-preview-buttons .btn-group.open:hover .btn { + background-color: #e8e8e8; +} .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 { +#extension-preview-buttons .btn-group:hover .btn { color: #333333; background-color: #eee; } -.nav .dropdown-toggle .caret,.nav .dropdown-toggle:hover .caret,.nav .dropdown-toggle:focus .caret - { +.nav .dropdown-toggle .caret, +.nav .dropdown-toggle:hover .caret, +.nav .dropdown-toggle:focus .caret { border-top-color: #000; border-bottom-color: #000; } .navbar .nav.hide { display: none; } -.navbar-inner .btn.disabled,.navbar-inner .btn[disabled] { +.navbar-inner .btn.disabled, +.navbar-inner .btn[disabled] { color: #333333; background-color: #ddd; opacity: 0.3; filter: alpha(opacity = 30); } -.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-submenu:hover>a,.dropdown-submenu:focus>a,.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus - { +.dropdown-menu>li>a:hover, +.dropdown-menu>li>a:focus, +.dropdown-submenu:hover>a, +.dropdown-submenu:focus>a, +.dropdown-menu>.active>a, +.dropdown-menu>.active>a:hover, +.dropdown-menu>.active>a:focus { background-color: #888; } -.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus - { +.dropdown-menu>.disabled>a, +.dropdown-menu>.disabled>a:hover, +.dropdown-menu>.disabled>a:focus { color: #bbb; } .btn-primary { @@ -5483,8 +5496,13 @@ input[readonly],select[readonly],textarea[readonly] { background-color: transparent; cursor: text; } -.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled],.btn-group.open .btn.btn-primary.dropdown-toggle - { +.btn-primary:hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.btn-primary.disabled, +.btn-primary[disabled], +.btn-group.open .btn.btn-primary.dropdown-toggle { color: #fff; background-color: #888; } @@ -5499,9 +5517,13 @@ input[readonly],select[readonly],textarea[readonly] { #extension-preview-buttons .dropdown-menu { position: fixed; right: 25px; - top: inherit; + top: auto; z-index: 1; } +#extension-preview-buttons .dropdown-menu { + border: 0 !important; + margin-top: 1px; +} #extension-preview-buttons .btn-group:hover .btn, #extension-preview-buttons .btn-group.open .btn { opacity: 1; @@ -5540,6 +5562,15 @@ input[readonly],select[readonly],textarea[readonly] { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } +#markdown-syntax { + max-height: 300px; + overflow-y: auto; + overflow-x: hidden; + padding-right: 20px; + margin: 0 -20px 10px 0; + width: 300px; + white-space: normal; +} .btn-group>.btn+.dropdown-toggle { padding-right: 12px; padding-left: 12px; @@ -5559,7 +5590,9 @@ h1 { .toc ul { list-style-type: none; } -p,pre,blockquote { +p, +pre, +blockquote { margin: 0 0 20px; } hr { @@ -5643,7 +5676,8 @@ hr { div.dropdown-menu { padding: 5px 20px; } -div.dropdown-menu p,div.dropdown-menu blockquote { +div.dropdown-menu p, +div.dropdown-menu blockquote { margin: 10px 0; } div.dropdown-menu .stat { @@ -5654,8 +5688,8 @@ div.dropdown-menu i { } div.dropdown-menu textarea { width: 250px; - max-width: 250px; height: 150px; + resize: none; } #link-container { min-width: 210px; diff --git a/js/main-min.js b/js/main-min.js index 007853ef..8cc551ce 100644 --- a/js/main-min.js +++ b/js/main-min.js @@ -671,7 +671,7 @@ function css_browser_selector(e) { var i = lt.grep(e, function(e) { return 1 === e.nodeType; }); - if (Wt.test(t)) return lt.filter(t, i, !n); + if (qt.test(t)) return lt.filter(t, i, !n); t = lt.filter(t, i); } return lt.grep(e, function(e) { @@ -795,7 +795,7 @@ function css_browser_selector(e) { r(u), !1); }), c; } - var s = {}, a = e === qn; + var s = {}, a = e === Wn; return r(n.dataTypes[0]) || !s["*"] && r("*"); } function N(e, n) { @@ -853,12 +853,12 @@ function css_browser_selector(e) { return new e.XMLHttpRequest(); } catch (t) {} } - function O() { + function M() { try { return new e.ActiveXObject("Microsoft.XMLHTTP"); } catch (t) {} } - function M() { + function O() { return setTimeout(function() { Zn = t; }), Zn = lt.now(); @@ -873,7 +873,7 @@ function css_browser_selector(e) { delete l.elem; }), l = function() { if (o) return !1; - for (var t = Zn || M(), n = Math.max(0, c.startTime + c.duration - t), i = n / c.duration || 0, r = 1 - i, s = 0, l = c.tweens.length; l > s; s++) c.tweens[s].run(r); + for (var t = Zn || O(), n = Math.max(0, c.startTime + c.duration - t), i = n / c.duration || 0, r = 1 - i, s = 0, l = c.tweens.length; l > s; s++) c.tweens[s].run(r); return a.notifyWith(e, [ c, r, n ]), 1 > r && l ? n : (a.resolveWith(e, [ c ]), !1); }, c = a.promise({ @@ -884,7 +884,7 @@ function css_browser_selector(e) { }, n), originalProperties: t, originalOptions: n, - startTime: Zn || M(), + startTime: Zn || O(), duration: n.duration, tweens: [], createTween: function(t, n) { @@ -947,14 +947,14 @@ function css_browser_selector(e) { function B(e, t, n, i, o) { return new B.prototype.init(e, t, n, i, o); } - function W(e, t) { + function q(e, t) { var n, i = { height: e }, o = 0; for (t = t ? 1 : 0; 4 > o; o += 2 - t) n = Sn[o], i["margin" + n] = i["padding" + n] = e; return t && (i.opacity = i.width = e), i; } - function q(e) { + function W(e) { return lt.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1; } var G, U, V = typeof t, X = e.document, Y = e.location, K = e.jQuery, J = e.$, Q = {}, Z = [], et = "1.9.1", tt = Z.concat, nt = Z.push, it = Z.slice, ot = Z.indexOf, rt = Q.toString, st = Q.hasOwnProperty, at = et.trim, lt = function(e, t) { @@ -1709,7 +1709,7 @@ function css_browser_selector(e) { } }); }); - var Ot = /^(?:input|select|textarea)$/i, Mt = /^key/, Dt = /^(?:mouse|contextmenu)|click/, jt = /^(?:focusinfocus|focusoutblur)$/, Ht = /^([^.]*)(?:\.(.+)|)$/; + var Mt = /^(?:input|select|textarea)$/i, Ot = /^key/, Dt = /^(?:mouse|contextmenu)|click/, jt = /^(?:focusinfocus|focusoutblur)$/, Ht = /^([^.]*)(?:\.(.+)|)$/; lt.event = { global: {}, add: function(e, n, i, o, r) { @@ -1804,7 +1804,7 @@ function css_browser_selector(e) { fix: function(e) { if (e[lt.expando]) return e; var t, n, i, o = e.type, r = e, s = this.fixHooks[o]; - for (s || (this.fixHooks[o] = s = Dt.test(o) ? this.mouseHooks : Mt.test(o) ? this.keyHooks : {}), + for (s || (this.fixHooks[o] = s = Dt.test(o) ? this.mouseHooks : Ot.test(o) ? this.keyHooks : {}), i = s.props ? this.props.concat(s.props) : this.props, e = new lt.Event(r), t = i.length; t--; ) n = i[t], e[n] = r[n]; return e.target || (e.target = r.srcElement || X), 3 === e.target.nodeType && (e.target = e.target.parentNode), @@ -1923,13 +1923,13 @@ function css_browser_selector(e) { } }), lt.support.changeBubbles || (lt.event.special.change = { setup: function() { - return Ot.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (lt.event.add(this, "propertychange._change", function(e) { + return Mt.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (lt.event.add(this, "propertychange._change", function(e) { "checked" === e.originalEvent.propertyName && (this._just_changed = !0); }), lt.event.add(this, "click._change", function(e) { this._just_changed && !e.isTrigger && (this._just_changed = !1), lt.event.simulate("change", this, e, !0); })), !1) : (lt.event.add(this, "beforeactivate._change", function(e) { var t = e.target; - Ot.test(t.nodeName) && !lt._data(t, "changeBubbles") && (lt.event.add(t, "change._change", function(e) { + Mt.test(t.nodeName) && !lt._data(t, "changeBubbles") && (lt.event.add(t, "change._change", function(e) { !this.parentNode || e.isSimulated || e.isTrigger || lt.event.simulate("change", this.parentNode, e, !0); }), lt._data(t, "changeBubbles", !0)); }), t); @@ -1939,7 +1939,7 @@ function css_browser_selector(e) { return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t; }, teardown: function() { - return lt.event.remove(this, "._change"), !Ot.test(this.nodeName); + return lt.event.remove(this, "._change"), !Mt.test(this.nodeName); } }), lt.support.focusinBubbles || lt.each({ focus: "focusin", @@ -2041,7 +2041,7 @@ function css_browser_selector(e) { if (9 === a) { if (r = t.getElementById(s), !r || !r.parentNode) return n; if (r.id === s) return n.push(r), n; - } else if (t.ownerDocument && (r = t.ownerDocument.getElementById(s)) && M(t, r) && r.id === s) return n.push(r), + } else if (t.ownerDocument && (r = t.ownerDocument.getElementById(s)) && O(t, r) && r.id === s) return n.push(r), n; } else { if (o[2]) return J.apply(n, Q.call(t.getElementsByTagName(e), 0)), n; @@ -2112,7 +2112,7 @@ function css_browser_selector(e) { return i; } function f(e, t, n) { - var i = t.dir, o = n && "parentNode" === i, r = W++; + var i = t.dir, o = n && "parentNode" === i, r = q++; return t.first ? function(t, n, r) { for (;t = t[i]; ) if (1 === t.nodeType || o) return e(t, n, r); } : function(t, n, s) { @@ -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, 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) { + var C, k, S, T, _, E, P, I, $, z, N, R, L, A, M, O, D, j = "sizzle" + -new Date(), H = e.document, F = {}, B = 0, q = 0, W = 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 = { @@ -2305,9 +2305,9 @@ function css_browser_selector(e) { e.innerHTML = "", e.querySelectorAll("[i^='']").length && L.push("[*^$]=" + et + "*(?:\"\"|'')"), e.querySelectorAll(":enabled").length || L.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), L.push(",.*:"); - })), (F.matchesSelector = n(O = N.matchesSelector || N.mozMatchesSelector || N.webkitMatchesSelector || N.oMatchesSelector || N.msMatchesSelector)) && r(function(e) { - F.disconnectedMatch = O.call(e, "div"), O.call(e, "[s!='']:x"), A.push("!=", rt); - }), L = RegExp(L.join("|")), A = RegExp(A.join("|")), M = n(N.contains) || N.compareDocumentPosition ? function(e, t) { + })), (F.matchesSelector = n(M = N.matchesSelector || N.mozMatchesSelector || N.webkitMatchesSelector || N.oMatchesSelector || N.msMatchesSelector)) && r(function(e) { + F.disconnectedMatch = M.call(e, "div"), M.call(e, "[s!='']:x"), A.push("!=", rt); + }), L = RegExp(L.join("|")), A = RegExp(A.join("|")), O = n(N.contains) || N.compareDocumentPosition ? function(e, t) { var n = 9 === e.nodeType ? e.documentElement : e, i = t && t.parentNode; return e === i || !(!i || 1 !== i.nodeType || !(n.contains ? n.contains(i) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(i))); } : function(e, t) { @@ -2315,7 +2315,7 @@ function css_browser_selector(e) { return !1; }, D = N.compareDocumentPosition ? function(e, t) { var n; - 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; + return e === t ? (P = !0, 0) : (n = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t)) ? 1 & n || e.parentNode && 11 === e.parentNode.nodeType ? e === i || O(H, e) ? -1 : t === i || O(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 P = !0, 0; @@ -2330,12 +2330,12 @@ function css_browser_selector(e) { return s(e, null, null, t); }, s.matchesSelector = function(e, t) { if ((e.ownerDocument || e) !== z && $(e), t = t.replace(bt, "='$1']"), !(!F.matchesSelector || R || A && A.test(t) || L.test(t))) try { - var n = O.call(e, t); + var n = M.call(e, t); if (n || F.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n; } catch (i) {} return s(t, z, null, [ e ]).length > 0; }, s.contains = function(e, t) { - return (e.ownerDocument || e) !== z && $(e), M(e, t); + return (e.ownerDocument || e) !== z && $(e), O(e, t); }, s.attr = function(e, t) { var n; return (e.ownerDocument || e) !== z && $(e), R || (t = t.toLowerCase()), (n = S.attrHandle[t]) ? n(e) : R || F.attributes ? e.getAttribute(t) : ((n = e.getAttributeNode(t)) || e.getAttribute(t)) && e[t] === !0 ? t : n && n.specified ? n.value : null; @@ -2403,8 +2403,8 @@ function css_browser_selector(e) { }); }, CLASS: function(e) { - var t = q[e + " "]; - return t || (t = RegExp("(^|" + et + ")" + e + "(" + et + "|$)")) && q(e, function(e) { + var t = W[e + " "]; + return t || (t = RegExp("(^|" + et + ")" + e + "(" + et + "|$)")) && W(e, function(e) { return t.test(e.className || typeof e.getAttribute !== V && e.getAttribute("class") || ""); }); }, @@ -2570,7 +2570,7 @@ function css_browser_selector(e) { $(), s.attr = lt.attr, lt.find = s, lt.expr = s.selectors, lt.expr[":"] = lt.expr.pseudos, lt.unique = s.uniqueSort, lt.text = s.getText, lt.isXMLDoc = s.isXML, lt.contains = s.contains; }(e); - var Ft = /Until$/, Bt = /^(?:parents|prev(?:Until|All))/, Wt = /^.[^:#\[\.,]*$/, qt = lt.expr.match.needsContext, Gt = { + var Ft = /Until$/, Bt = /^(?:parents|prev(?:Until|All))/, qt = /^.[^:#\[\.,]*$/, Wt = lt.expr.match.needsContext, Gt = { children: !0, contents: !0, next: !0, @@ -2599,10 +2599,10 @@ function css_browser_selector(e) { return this.pushStack(d(this, e, !0)); }, is: function(e) { - return !!e && ("string" == typeof e ? qt.test(e) ? lt(e, this.context).index(this[0]) >= 0 : lt.filter(e, this).length > 0 : this.filter(e).length > 0); + return !!e && ("string" == typeof e ? Wt.test(e) ? lt(e, this.context).index(this[0]) >= 0 : lt.filter(e, this).length > 0 : this.filter(e).length > 0); }, closest: function(e, t) { - for (var n, i = 0, o = this.length, r = [], s = qt.test(e) || "string" != typeof e ? lt(e, t || this.context) : 0; o > i; i++) for (n = this[i]; n && n.ownerDocument && n !== t && 11 !== n.nodeType; ) { + for (var n, i = 0, o = this.length, r = [], s = Wt.test(e) || "string" != typeof e ? lt(e, t || this.context) : 0; o > i; i++) for (n = this[i]; n && n.ownerDocument && n !== t && 11 !== n.nodeType; ) { if (s ? s.index(n) > -1 : lt.find.matchesSelector(n, e)) { r.push(n); break; @@ -3053,7 +3053,7 @@ function css_browser_selector(e) { }), lt.fn.hover = function(e, t) { return this.mouseenter(e).mouseleave(t || e); }; - var zn, Nn, Rn = lt.now(), Ln = /\?/, An = /#.*$/, On = /([?&])_=[^&]*/, Mn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Dn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, jn = /^(?:GET|HEAD)$/, Hn = /^\/\//, Fn = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Bn = lt.fn.load, Wn = {}, qn = {}, Gn = "*/".concat("*"); + var zn, Nn, Rn = lt.now(), Ln = /\?/, An = /#.*$/, Mn = /([?&])_=[^&]*/, On = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Dn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, jn = /^(?:GET|HEAD)$/, Hn = /^\/\//, Fn = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Bn = lt.fn.load, qn = {}, Wn = {}, Gn = "*/".concat("*"); try { Nn = Y.href; } catch (Un) { @@ -3129,8 +3129,8 @@ function css_browser_selector(e) { ajaxSetup: function(e, t) { return t ? N(N(e, lt.ajaxSettings), t) : N(lt.ajaxSettings, e); }, - ajaxPrefilter: $(Wn), - ajaxTransport: $(qn), + ajaxPrefilter: $(qn), + ajaxTransport: $(Wn), ajax: function(e, n) { function i(e, n, i, o) { var r, d, y, b, x, k = n; @@ -3149,7 +3149,7 @@ function css_browser_selector(e) { getResponseHeader: function(e) { var t; if (2 === w) { - if (!d) for (d = {}; t = Mn.exec(a); ) d[t[1].toLowerCase()] = t[2]; + if (!d) for (d = {}; t = On.exec(a); ) d[t[1].toLowerCase()] = t[2]; t = d[e.toLowerCase()]; } return null == t ? null : t; @@ -3178,10 +3178,10 @@ function css_browser_selector(e) { p.type = n.method || n.type || p.method || p.type, p.dataTypes = lt.trim(p.dataType || "*").toLowerCase().match(ut) || [ "" ], null == p.crossDomain && (o = Fn.exec(p.url.toLowerCase()), p.crossDomain = !(!o || o[1] === zn[1] && o[2] === zn[2] && (o[3] || ("http:" === o[1] ? 80 : 443)) == (zn[3] || ("http:" === zn[1] ? 80 : 443)))), p.data && p.processData && "string" != typeof p.data && (p.data = lt.param(p.data, p.traditional)), - z(Wn, p, n, C), 2 === w) return C; + z(qn, p, n, C), 2 === w) return C; c = p.global, c && 0 === lt.active++ && lt.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !jn.test(p.type), s = p.url, p.hasContent || (p.data && (s = p.url += (Ln.test(s) ? "&" : "?") + p.data, - delete p.data), p.cache === !1 && (p.url = On.test(s) ? s.replace(On, "$1_=" + Rn++) : s + (Ln.test(s) ? "&" : "?") + "_=" + Rn++)), + delete p.data), p.cache === !1 && (p.url = Mn.test(s) ? s.replace(Mn, "$1_=" + Rn++) : s + (Ln.test(s) ? "&" : "?") + "_=" + Rn++)), p.ifModified && (lt.lastModified[s] && C.setRequestHeader("If-Modified-Since", lt.lastModified[s]), lt.etag[s] && C.setRequestHeader("If-None-Match", lt.etag[s])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Gn + "; q=0.01" : "") : p.accepts["*"]); @@ -3193,7 +3193,7 @@ function css_browser_selector(e) { error: 1, complete: 1 }) C[r](p[r]); - if (u = z(qn, p, n, C)) { + if (u = z(Wn, p, n, C)) { C.readyState = 1, c && h.trigger("ajaxSend", [ C, p ]), p.async && p.timeout > 0 && (l = setTimeout(function() { C.abort("timeout"); }, p.timeout)); @@ -3268,7 +3268,7 @@ function css_browser_selector(e) { for (e in Yn) Yn[e](t, !0); }; lt.ajaxSettings.xhr = e.ActiveXObject ? function() { - return !this.isLocal && A() || O(); + return !this.isLocal && A() || M(); } : A, Kn = lt.ajaxSettings.xhr(), lt.support.cors = !!Kn && "withCredentials" in Kn, Kn = lt.support.ajax = !!Kn, Kn && lt.ajaxTransport(function(n) { if (!n.crossDomain || lt.support.cors) { @@ -3363,7 +3363,7 @@ function css_browser_selector(e) { }, lt.each([ "toggle", "show", "hide" ], function(e, t) { var n = lt.fn[t]; lt.fn[t] = function(e, i, o) { - return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(W(t, !0), e, i, o); + return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(q(t, !0), e, i, o); }; }), lt.fn.extend({ fadeTo: function(e, t, n, i) { @@ -3405,9 +3405,9 @@ function css_browser_selector(e) { }); } }), lt.each({ - slideDown: W("show"), - slideUp: W("hide"), - slideToggle: W("toggle"), + slideDown: q("show"), + slideUp: q("hide"), + slideToggle: q("toggle"), fadeIn: { opacity: "show" }, @@ -3465,7 +3465,7 @@ function css_browser_selector(e) { left: 0 }, r = this[0], s = r && r.ownerDocument; if (s) return n = s.documentElement, lt.contains(n, r) ? (typeof r.getBoundingClientRect !== V && (o = r.getBoundingClientRect()), - i = q(s), { + i = W(s), { top: o.top + (i.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: o.left + (i.pageXOffset || n.scrollLeft) - (n.clientLeft || 0) }) : o; @@ -3506,7 +3506,7 @@ function css_browser_selector(e) { var i = /Y/.test(n); lt.fn[e] = function(o) { return lt.access(this, function(e, o, r) { - var s = q(e); + var s = W(e); return r === t ? s ? n in s ? s[n] : s.document.documentElement[o] : e[o] : (s ? s.scrollTo(i ? lt(s).scrollLeft() : r, i ? r : lt(s).scrollTop()) : e[o] = r, t); }, e, o, arguments.length, null); @@ -3988,7 +3988,7 @@ function css_browser_selector(e) { var n = k[t] = e[t]; k.prototype[t] = function() { var e = [ this._wrapped ]; - return s.apply(e, arguments), M.call(this, n.apply(k, e)); + return s.apply(e, arguments), O.call(this, n.apply(k, e)); }; }); }; @@ -4009,13 +4009,13 @@ function css_browser_selector(e) { " ": "t", "\u2028": "u2028", "\u2029": "u2029" - }, O = /\\|'|\r|\n|\t|\u2028|\u2029/g; + }, M = /\\|'|\r|\n|\t|\u2028|\u2029/g; k.template = function(e, t, n) { var i; n = k.defaults({}, n, k.templateSettings); var o = RegExp([ (n.escape || L).source, (n.interpolate || L).source, (n.evaluate || L).source ].join("|") + "|$", "g"), r = 0, s = "__p+='"; e.replace(o, function(t, n, i, o, a) { - return s += e.slice(r, a).replace(O, function(e) { + return s += e.slice(r, a).replace(M, function(e) { return "\\" + A[e]; }), n && (s += "'+\n((__t=(" + n + "))==null?'':_.escape(__t))+\n'"), i && (s += "'+\n((__t=(" + i + "))==null?'':__t)+\n'"), o && (s += "';\n" + o + "\n__p+='"), r = a + t.length, t; @@ -4033,7 +4033,7 @@ function css_browser_selector(e) { }, k.chain = function(e) { return k(e).chain(); }; - var M = function(e) { + var O = function(e) { return this._chain ? k(e).chain() : e; }; k.mixin(k), S([ "pop", "push", "reverse", "shift", "sort", "splice", "unshift" ], function(e) { @@ -4041,12 +4041,12 @@ function css_browser_selector(e) { k.prototype[e] = function() { var n = this._wrapped; return t.apply(n, arguments), "shift" != e && "splice" != e || 0 !== n.length || delete n[0], - M.call(this, n); + O.call(this, n); }; }), S([ "concat", "join", "slice" ], function(e) { var t = i[e]; k.prototype[e] = function() { - return M.call(this, t.apply(this._wrapped, arguments)); + return O.call(this, t.apply(this._wrapped, arguments)); }; }), k.extend(k.prototype, { chain: function() { @@ -4738,7 +4738,7 @@ 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 statistics" button over the preview.
\r\nAdds a "Markdown syntax" button over the preview.
' + }; + return n.onCreatePreviewButton = function() { + return e(t); + }, n; }), define("text!html/buttonViewer.html", [], function() { return '\r\n \r\n\r\n'; }), define("extensions/buttonViewer", [ "jquery", "text!html/buttonViewer.html" ], function(e, t) { @@ -5794,7 +5804,7 @@ function() { } function o(e, t) { var n = t; - return n = n.replace(/^\n+/, ""), n = n.replace(/\n+$/g, ""), n = "\n\n~K" + (O.push(n) - 1) + "K\n\n"; + return n = n.replace(/^\n+/, ""), n = n.replace(/\n+$/g, ""), n = "\n\n~K" + (M.push(n) - 1) + "K\n\n"; } function r(e, n) { e = R.preBlockGamut(e, D), e = f(e); @@ -5861,7 +5871,7 @@ function() { function h(e, t) { e += "~0"; var n = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; - return M ? e = e.replace(n, function(e, n, i) { + return O ? e = e.replace(n, function(e, n, i) { var o = n, r = i.search(/[*+-]/g) > -1 ? "ul" : "ol", s = g(o, r, t); return s = s.replace(/\s+$/, ""), s = "<" + r + ">" + s + "" + r + ">\n"; }) : (n = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g, @@ -5871,13 +5881,13 @@ function() { })), e = e.replace(/~0/, ""); } function g(e, t, n) { - M++, e = e.replace(/\n{2,}$/, "\n"), e += "~0"; + O++, e = e.replace(/\n{2,}$/, "\n"), e += "~0"; var i = j[t], o = RegExp("(^[ \\t]*)(" + i + ")[ \\t]+([^\\r]+?(\\n+))(?=(~0|\\1(" + i + ")[ \\t]+))", "gm"), a = !1; return e = e.replace(o, function(e, t, i, o) { var l = o, c = /\n\n$/.test(l), u = c || l.search(/\n{2,}/) > -1; return u || a ? l = r(P(l), !0) : (l = h(P(l), !0), l = l.replace(/\n$/, ""), n || (l = s(l))), a = c, "