").parent().html(), i.popover({
- placement: t.placement,
- trigger: "manual",
- title: t.title,
- content: t.content,
- html: !0,
- animation: t.animation,
- container: t.container,
- template: t.template,
- selector: t.element
- }).popover("show"), s = i.data("bs.popover") ? i.data("bs.popover").tip() : i.data("popover").tip(),
- s.attr("id", t.id), this._scrollIntoView(s), this._reposition(s, t), a ? this._center(s) : void 0;
- }, n.prototype._reposition = function(t, n) {
- var o, r, s, a, l, c, u;
- if (a = t[0].offsetWidth, r = t[0].offsetHeight, u = t.offset(), l = u.left, c = u.top,
- o = e(i).outerHeight() - u.top - t.outerHeight(), 0 > o && (u.top = u.top + o),
- s = e("html").outerWidth() - u.left - t.outerWidth(), 0 > s && (u.left = u.left + s),
- u.top < 0 && (u.top = 0), u.left < 0 && (u.left = 0), t.offset(u), "bottom" === n.placement || "top" === n.placement) {
- if (l !== u.left) return this._replaceArrow(t, 2 * (u.left - l), a, "left");
- } else if (c !== u.top) return this._replaceArrow(t, 2 * (u.top - c), r, "top");
- }, n.prototype._center = function(n) {
- return n.css("top", e(t).outerHeight() / 2 - n.outerHeight() / 2);
- }, n.prototype._replaceArrow = function(e, t, n, i) {
- return e.find(".arrow").css(i, t ? 50 * (1 - t / n) + "%" : "");
- }, n.prototype._scrollIntoView = function(n) {
- return e("html, body").stop().animate({
- scrollTop: Math.ceil(n.offset().top - e(t).height() / 2)
});
- }, n.prototype._onResize = function(n, i) {
- return e(t).on("resize.tour-" + this._options.name, function() {
- return clearTimeout(i), i = setTimeout(n, 100);
- });
- }, n.prototype._setupKeyboardNavigation = function() {
- var t = this;
- return this._options.keyboard ? e(i).on("keyup.tour-" + this._options.name, function(e) {
- if (e.which) switch (e.which) {
- case 39:
- return e.preventDefault(), t._current < t._steps.length - 1 ? t.next() : t.end();
+ }, this._callOnPromiseDone(n, o), n) : void 0;
+ }, n.prototype.setCurrentStep = function(e) {
+ return null != e ? (this._current = e, this.setState("current_step", e)) : (this._current = this.getState("current_step"),
+ this._current = null === this._current ? null : parseInt(this._current, 10)), this;
+ }, n.prototype._showNextStep = function() {
+ var e, t, n, i = this;
+ return n = this.getStep(this._current), t = function() {
+ return i.showStep(n.next);
+ }, e = this._makePromise(null != n.onNext ? n.onNext(this) : void 0), this._callOnPromiseDone(e, t);
+ }, n.prototype._showPrevStep = function() {
+ var e, t, n, i = this;
+ return n = this.getStep(this._current), t = function() {
+ return i.showStep(n.prev);
+ }, e = this._makePromise(null != n.onPrev ? n.onPrev(this) : void 0), this._callOnPromiseDone(e, t);
+ }, n.prototype._debug = function(e) {
+ return this._options.debug ? t.console.log("Bootstrap Tour '" + this._options.name + "' | " + e) : void 0;
+ }, n.prototype._isRedirect = function(e, t) {
+ return null != e && "" !== e && e.replace(/\?.*$/, "").replace(/\/?$/, "") !== t.replace(/\/?$/, "");
+ }, n.prototype._redirect = function(t, n) {
+ return e.isFunction(t.redirect) ? t.redirect.call(this, n) : t.redirect === !0 ? (this._debug("Redirect to " + n),
+ i.location.href = n) : void 0;
+ }, n.prototype._isOrphan = function(t) {
+ return null == t.element || !e(t.element).length || e(t.element).is(":hidden") && "http://www.w3.org/2000/svg" !== e(t.element)[0].namespaceURI;
+ }, n.prototype._showPopover = function(t, n) {
+ var i, o, r, s, a, l, c = this;
+ return l = e.extend({}, this._options), r = e.isFunction(t.template) ? e(t.template(n, t)) : e(t.template),
+ o = r.find(".popover-navigation"), a = this._isOrphan(t), a && (t.element = "body",
+ t.placement = "top", r = r.addClass("orphan")), i = e(t.element), r.addClass("tour-" + this._options.name),
+ t.options && e.extend(l, t.options), t.reflex && i.css("cursor", "pointer").on("click.tour-" + this._options.name, function() {
+ return c._current < c._steps.length - 1 ? c.next() : c.end();
+ }), t.prev < 0 && o.find("*[data-role=prev]").addClass("disabled"), t.next < 0 && o.find("*[data-role=next]").addClass("disabled"),
+ t.template = r.clone().wrap("
").parent().html(), i.popover({
+ placement: t.placement,
+ trigger: "manual",
+ title: t.title,
+ content: t.content,
+ html: !0,
+ animation: t.animation,
+ container: t.container,
+ template: t.template,
+ selector: t.element
+ }).popover("show"), s = i.data("bs.popover") ? i.data("bs.popover").tip() : i.data("popover").tip(),
+ s.attr("id", t.id), this._reposition(s, t), a ? this._center(s) : void 0;
+ }, n.prototype._reposition = function(t, n) {
+ var o, r, s, a, l, c, u;
+ if (a = t[0].offsetWidth, r = t[0].offsetHeight, u = t.offset(), l = u.left, c = u.top,
+ o = e(i).outerHeight() - u.top - t.outerHeight(), 0 > o && (u.top = u.top + o),
+ s = e("html").outerWidth() - u.left - t.outerWidth(), 0 > s && (u.left = u.left + s),
+ u.top < 0 && (u.top = 0), u.left < 0 && (u.left = 0), t.offset(u), "bottom" === n.placement || "top" === n.placement) {
+ if (l !== u.left) return this._replaceArrow(t, 2 * (u.left - l), a, "left");
+ } else if (c !== u.top) return this._replaceArrow(t, 2 * (u.top - c), r, "top");
+ }, n.prototype._center = function(n) {
+ return n.css("top", e(t).outerHeight() / 2 - n.outerHeight() / 2);
+ }, n.prototype._replaceArrow = function(e, t, n, i) {
+ return e.find(".arrow").css(i, t ? 50 * (1 - t / n) + "%" : "");
+ }, n.prototype._scrollIntoView = function(n, i) {
+ var o, r, s, a, l, c = this;
+ return n ? (o = e(n), r = e(t), s = o.offset().top, l = r.height(), a = Math.max(0, s - l / 2),
+ this._debug("Scroll into view. ScrollTop: " + a + ". Element offset: " + s + ". Window height: " + l + "."),
+ e("body").stop().animate({
+ scrollTop: Math.ceil(a)
+ }, function() {
+ return i(), c._debug("Scroll into view. Animation end element offset: " + o.offset().top + ". Window height: " + r.height() + ".");
+ })) : i();
+ }, n.prototype._onResize = function(n, i) {
+ return e(t).on("resize.tour-" + this._options.name, function() {
+ return clearTimeout(i), i = setTimeout(n, 100);
+ });
+ }, n.prototype._setupMouseNavigation = function() {
+ var t = this;
+ return e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=next]:not(.disabled)").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=next]:not(.disabled)", function(e) {
+ return e.preventDefault(), t.next();
+ }), e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=prev]:not(.disabled)").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=prev]:not(.disabled)", function(e) {
+ return e.preventDefault(), t.prev();
+ }), e(i).off("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=end]").on("click.tour-" + this._options.name, ".popover.tour-" + this._options.name + " *[data-role=end]", function(e) {
+ return e.preventDefault(), t.end();
+ });
+ }, n.prototype._setupKeyboardNavigation = function() {
+ var t = this;
+ if (this._options.keyboard) return e(i).on("keyup.tour-" + this._options.name, function(e) {
+ if (e.which) switch (e.which) {
+ case 39:
+ return e.preventDefault(), t._current < t._steps.length - 1 ? t.next() : t.end();
- case 37:
- if (e.preventDefault(), t._current > 0) return t.prev();
- break;
+ case 37:
+ if (e.preventDefault(), t._current > 0) return t.prev();
+ break;
- case 27:
- return e.preventDefault(), t.end();
- }
- }) : void 0;
- }, n.prototype._makePromise = function(t) {
- return t && e.isFunction(t.then) ? t : null;
- }, n.prototype._callOnPromiseDone = function(e, t, n) {
- var i = this;
- return e ? e.then(function() {
- return t.call(i, n);
- }) : t.call(this, n);
- }, n.prototype._showBackdrop = function(e) {
- return null === this.backdrop.overlay ? (this._showOverlay(), null != e ? this._showOverlayElement(e) : void 0) : void 0;
- }, n.prototype._hideBackdrop = function() {
- return null !== this.backdrop.overlay ? (this.backdrop.$element && this._hideOverlayElement(),
- this._hideOverlay()) : void 0;
- }, n.prototype._showOverlay = function() {
- return this.backdrop = e("
", {
- "class": "tour-backdrop"
- }), e("body").append(this.backdrop);
- }, n.prototype._hideOverlay = function() {
- return this.backdrop.remove(), this.backdrop.overlay = null;
- }, n.prototype._showOverlayElement = function(t) {
- var n, i, o;
- return i = e(t), n = e("
"), o = i.offset(), o.top = o.top, o.left = o.left,
- n.width(i.innerWidth()).height(i.innerHeight()).addClass("tour-step-background").offset(o),
- i.addClass("tour-step-backdrop"), e("body").append(n), this.backdrop.$element = i,
- this.backdrop.$background = n;
- }, n.prototype._hideOverlayElement = function() {
- return this.backdrop.$element.removeClass("tour-step-backdrop"), this.backdrop.$background.remove(),
- this.backdrop.$element = null, this.backdrop.$background = null;
- }, n;
- }(), t.Tour = n;
- }(jQuery, window);
-}.call(this), define("bootstrap-tour", [ "bootstrap" ], function(e) {
+ case 27:
+ return e.preventDefault(), t.end();
+ }
+ });
+ }, n.prototype._makePromise = function(t) {
+ return t && e.isFunction(t.then) ? t : null;
+ }, n.prototype._callOnPromiseDone = function(e, t, n) {
+ var i = this;
+ return e ? e.then(function() {
+ return t.call(i, n);
+ }) : t.call(this, n);
+ }, n.prototype._showBackdrop = function() {
+ return this.backdrop.backgroundShown ? void 0 : (this.backdrop = e("
", {
+ "class": "tour-backdrop"
+ }), this.backdrop.backgroundShown = !0, e("body").append(this.backdrop));
+ }, n.prototype._hideBackdrop = function() {
+ return this._hideOverlayElement(), this._hideBackground();
+ }, n.prototype._hideBackground = function() {
+ return this.backdrop.remove(), this.backdrop.overlay = null, this.backdrop.backgroundShown = !1;
+ }, n.prototype._showOverlayElement = function(t) {
+ var n, i, o;
+ if (!this.backdrop.overlayElementShown) return this.backdrop.overlayElementShown = !0,
+ i = e(t), n = e("
"), o = i.offset(), o.top = o.top, o.left = o.left, n.width(i.innerWidth()).height(i.innerHeight()).addClass("tour-step-background").offset(o),
+ i.addClass("tour-step-backdrop"), e("body").append(n), this.backdrop.$element = i,
+ this.backdrop.$background = n;
+ }, n.prototype._hideOverlayElement = function() {
+ return this.backdrop.overlayElementShown ? (this.backdrop.$element.removeClass("tour-step-backdrop"),
+ this.backdrop.$background.remove(), this.backdrop.$element = null, this.backdrop.$background = null,
+ this.backdrop.overlayElementShown = !1) : void 0;
+ }, n;
+ }(), t.Tour = n;
+}(jQuery, window), define("bootstrap-tour", [ "bootstrap" ], function(e) {
return function() {
var t;
return t || e.Tour;
@@ -21958,7 +21984,7 @@ function() {
content: [ '
', '
You are using the new secured platform. If you want to recover your documents from the old platform click here .
', "Please click
Next
to take a quick tour." ].join(""),
placement: "bottom"
}, {
- element: ".navbar .action-create-file",
+ element: ".navbar-inner > .nav .action-create-file, .navbar .right-buttons-dropdown > .nav > .btn:not(:hidden)",
title: "New document",
content: 'Click the
New document
button to create a new document.',
placement: "left",
@@ -21966,7 +21992,7 @@ function() {
}, {
element: ".document-panel .collapse-button",
title: "Toggle document",
- content: [ '
Click the Select document
button to switch to another document.
', "
NOTE: Use
Ctrl+[
and
Ctrl+]
shortcuts to toggle quickly." ].join(""),
+ content: [ '
Click the Select document
button to switch to another document.
', "Use
Ctrl+[
and
Ctrl+]
shortcuts to toggle quickly." ].join(""),
placement: "left",
reflex: !0
}, {
@@ -21976,21 +22002,21 @@ function() {
placement: "right",
reflex: !0
}, {
- element: "#extension-buttons .button-synchronize",
+ element: ".navbar-inner > .nav .button-synchronize, .navbar .right-buttons-dropdown > .nav > .btn:not(:hidden)",
title: "Synchronize",
- content: '
Once imported/exported, use the Synchronize
button to force the synchronization (this is done automatically every 3 minutes).
',
- placement: "bottom",
+ content: '
Once imported or exported, use the Synchronize
button to force the synchronization
This is done automatically every 3 minutes.',
+ placement: "left",
reflex: !0
}, {
- element: "#extension-buttons .button-publish",
- title: "Update publications",
- content: 'Once published, use the
Publish
button to update your publication.',
- placement: "bottom",
+ element: ".navbar-inner > .nav .button-publish, .navbar .right-buttons-dropdown > .nav > .btn:not(:hidden)",
+ title: "Update publication",
+ content: 'Once published, use the
Publish
button to update the publication.',
+ placement: "left",
reflex: !0
}, {
element: ".navbar-inner",
title: "Happy StackWriting!",
- content: [ 'Enjoy, and don\'t forget to rate
StackEdit on
Chrome Web Store .' ].join(""),
+ content: [ 'Enjoy, and don\'t forget to rate
StackEdit on
Chrome Web Store ...' ].join(""),
placement: "bottom"
} ]), e.has(n, "welcomeTour") || i.start(), t(".action-welcome-tour").click(function() {
i.restart();
@@ -22043,7 +22069,7 @@ function() {
var e = [];
t.each(x, function(t) {
t.range.start.row < C ? e.push(t) : v.session.removeMarker(t.id);
- }), x = e, b = setTimeout(d, 700);
+ }), x = e, b = setTimeout(d, 2e3);
}
}
var f = new o("spellCheck", "Spell Check", !0, !0, !0);
@@ -22075,7 +22101,7 @@ function() {
});
}, f;
}), define("text!html/userCustomSettingsBlock.html", [], function() {
- return '
Allows users to implement their own extension.
\n
\n
More info ';
+ return '
Allows users to implement their own extension.
\n
\n
More info ';
}), define("extensions/userCustom", [ "jquery", "underscore", "utils", "classes/Extension", "fileSystem", "settings", "text!html/userCustomSettingsBlock.html" ], function($, _, utils, Extension, fileSystem, settings, userCustomSettingsBlockHTML) {
var userCustom = new Extension("userCustom", "UserCustom extension", !0);
userCustom.settingsBlock = userCustomSettingsBlockHTML, userCustom.defaultConfig = {
@@ -22152,7 +22178,7 @@ function() {
});
});
};
-}(jQuery), define("jquery-waitforimages", function() {}), define("eventMgr", [ "jquery", "underscore", "crel", "utils", "logger", "classes/Extension", "settings", "text!html/settingsExtensionsAccordion.html", "extensions/yamlFrontMatterParser", "extensions/markdownSectionParser", "extensions/partialRendering", "extensions/buttonMarkdownSyntax", "extensions/googleAnalytics", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", "extensions/dialogOpenHarddrive", "extensions/documentTitle", "extensions/documentSelector", "extensions/documentPanel", "extensions/documentManager", "extensions/workingIndicator", "extensions/notifications", "extensions/markdownExtra", "extensions/toc", "extensions/mathJax", "extensions/emailConverter", "extensions/scrollLink", "extensions/buttonFocusMode", "extensions/buttonSync", "extensions/buttonPublish", "extensions/buttonShare", "extensions/buttonStat", "extensions/buttonHtmlCode", "extensions/buttonViewer", "extensions/welcomeTour", "extensions/spellCheck", "extensions/userCustom", "bootstrap", "jquery-waitforimages" ], function(e, t, n, i, o, r, s, a) {
+}(jQuery), define("jquery-waitforimages", function() {}), define("eventMgr", [ "jquery", "underscore", "crel", "utils", "logger", "classes/Extension", "settings", "text!html/settingsExtensionsAccordion.html", "extensions/yamlFrontMatterParser", "extensions/markdownSectionParser", "extensions/partialRendering", "extensions/buttonMarkdownSyntax", "extensions/googleAnalytics", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", "extensions/dialogManageSharing", "extensions/dialogOpenHarddrive", "extensions/documentTitle", "extensions/documentSelector", "extensions/documentPanel", "extensions/documentManager", "extensions/workingIndicator", "extensions/notifications", "extensions/markdownExtra", "extensions/toc", "extensions/mathJax", "extensions/emailConverter", "extensions/scrollLink", "extensions/buttonFocusMode", "extensions/buttonSync", "extensions/buttonPublish", "extensions/buttonStat", "extensions/buttonHtmlCode", "extensions/buttonViewer", "extensions/welcomeTour", "extensions/spellCheck", "extensions/userCustom", "bootstrap", "jquery-waitforimages" ], function(e, t, n, i, o, r, s, a) {
function l(e) {
return t.chain(h).map(function(t) {
return t.enabled && t[e];
@@ -22253,7 +22279,7 @@ function() {
var s = l("onCreateButton"), c = document.createDocumentFragment();
t.each(s, function(e) {
c.appendChild(i(e));
- }), document.getElementById("extension-buttons").appendChild(c), o.log("onCreateEditorButton");
+ }), document.querySelector(".extension-buttons").appendChild(c), o.log("onCreateEditorButton");
var u = l("onCreateEditorButton"), d = document.createDocumentFragment();
t.each(u, function(e) {
d.appendChild(i(e));
@@ -22552,9 +22578,9 @@ function() {
});
}, r;
}), define("text!html/bodyIndex.html", [], function() {
- return '
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
\n
\n
\n
The following documents will be\n deleted locally:
\n
Please choose a destination\n folder:
\n
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide the link URL and an optional title:
\n
\n \n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide the image URL and an optional title:
\n
\n \n
\n
\n \n
\n
\n
\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
\n Are you sure you want to delete " "?\n
\n
\n NOTE: This will not delete the file on synchronized\n locations.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide a link to a Markdown document.
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please select your Markdown files here:
\n
\n \n
\n
Or drag and drop your Markdown files here:
\n
Drop\n files here
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please select your HTML files here:
\n
\n \n
\n
Or drag and drop your HTML files here:
\n
Drop\n files here
\n
Or insert your HTML code here:
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n This will save " " to your \n Google Drive
\n account and keep it synchronized.\n
\n
\n
\n NOTE: \n \n You can move or rename the file afterwards within Google\n Drive. \n Real time collaborative documents can\'t be open outside\n StackEdit. \n Real time collaborative documents can\'t have multiple\n synchronized locations. \n \n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n This will save " " to your \n Dropbox
\n account and keep it synchronized.\n
\n
\n
\n NOTE: \n \n Dropbox file path does not depend on document title. \n The title of your document will not be synchronized. \n Destination folder must exist. \n Any existing file at this location will be overwritten. \n \n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n " " is synchronized with the\n following location(s):\n
\n
\n
\n NOTE: Removing a synchronized location will not delete any\n file.\n \n
\n " " is not synchronized yet. \n NOTE: You can add synchronized locations by\n exporting your document using \n Google Drive
\n or \n Dropbox
\n sub-menu.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n
\n NOTE: You can use a\n YAML front matter to specify the title and the tags/labels of your publication.
\n Interpreted variables: title, tags
\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n " " is published on the following\n location(s):\n
\n
\n
\n \n " " is not published yet. \n
\n NOTE: You can add publications using the Publish on
sub-menu.\n \n
\n \n
\n
\n
\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
StackEdit has stopped because another instance was running in\n the same browser.
\n
If you want to reopen StackEdit, click on\n "Reload". \n
\n \n
\n
\n
\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
This will delete all your local documents.
\n
Are you sure? \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
This will delete all existing local documents.
\n
Are you sure? \n
\n \n
\n
\n
\n\n\n
\n
';
+ return '
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
\n
\n
\n
The following documents will be\n deleted locally:
\n
Please choose a destination\n folder:
\n
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide the link URL and an optional title:
\n
\n \n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide the image URL and an optional title:
\n
\n \n
\n
\n \n
\n
\n
\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
\n Are you sure you want to delete " "?\n
\n
\n NOTE: This will not delete the file on synchronized\n locations.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please provide a link to a Markdown document.
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please select your Markdown files here:
\n
\n \n
\n
Or drag and drop your Markdown files here:
\n
Drop\n files here
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
Please select your HTML files here:
\n
\n \n
\n
Or drag and drop your HTML files here:
\n
Drop\n files here
\n
Or insert your HTML code here:
\n
\n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n This will save " " to your \n Google Drive
\n account and keep it synchronized.\n
\n
\n
Options...
\n
\n Tip: You can move or rename the file afterwards within Google\n Drive.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n This will save " " to your \n Dropbox
\n account and keep it synchronized.\n
\n
\n
\n NOTE: \n \n Dropbox file path does not depend on document title. \n The title of your document will not be synchronized. \n Destination folder must exist. \n Any existing file at this location will be overwritten. \n \n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n " " is synchronized with the\n following location(s):\n
\n
\n
\n NOTE: Removing a synchronized location will not delete any\n file.\n \n
" " is not synchronized yet.
\n
\n Tip: You can add synchronized locations by\n exporting your document using \n Google Drive
\n or \n Dropbox
\n sub-menu.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n
\n Tip: You can use a\n YAML front matter to specify the title and the tags/labels of your publication.
\n Interpreted variables: title, tags
\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n " " is published on the following\n location(s):\n
\n
\n
\n NOTE: Removing a publish location will not delete the actual publication.\n \n
\n " " is not published yet.\n
\n
\n Tip: You can add publications using the Publish on
sub-menu.\n \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n " " can be shared using the following link(s):\n
\n
\n
To share this document within StackEdit you need first to publish it as a Gist in\n Markdown format.\n
\n
\n Tip: You can open any URL within StackEdit using viewer#!url=
.\n \n
\n \n
\n
\n
\n\n\n
\n\n\n
\n
\n
\n\n \n
\n
StackEdit has stopped because another instance was running in\n the same browser.
\n
If you want to reopen StackEdit, click on\n "Reload". \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
\n
Please click OK to proceed. \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
This will delete all your local documents.
\n
Are you sure? \n
\n \n
\n
\n
\n\n\n
\n
\n
\n\n \n
\n
This will delete all existing local documents.
\n
Are you sure? \n
\n \n
\n
\n
\n\n\n
\n
';
}), 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
\n
\n
\n
\n
\n
\n\n\n\n
\n\n
\n
\n
\n\n \n
\n
StackEdit has stopped because another instance was running in\n the same browser.
\n
If you want to reopen StackEdit, click on\n "Reload". \n
\n \n
\n
\n
\n';
+ return '\n
\n
\n
\n\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n\n\n\n
\n\n
\n
\n
\n\n \n
\n
StackEdit has stopped because another instance was running in\n the same browser.
\n
If you want to reopen StackEdit, click on\n "Reload". \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 \n
Examples: \n
<title><%= documentTitle %></title>\n
<div><%- documentHTML %></div>\n
<%\n
if(publishAttributes.provider.providerId == "github") print(documentMarkdown);\n
%>\n
\n
\n
More\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() {
@@ -26664,16 +26690,10 @@ function() {
token: "markup.list",
regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
next: "listblock-start"
- }, {
- token: "text",
- regex: "\\\\\\$"
}, {
token: "constant.language.escape",
regex: "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(",
next: "mathblock"
- }, {
- token: [ "constant.language.escape", "keyword", "constant.language.escape" ],
- regex: "(\\$)(.*)(\\$)"
}, {
token: [ "keyword", "text" ],
regex: "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
@@ -26684,6 +26704,12 @@ function() {
basic: [ {
token: "constant.language.escape",
regex: /\\[\\`*_{}\[\]()#+\-.!]/
+ }, {
+ token: "text",
+ regex: "\\\\\\$"
+ }, {
+ token: [ "constant.language.escape", "keyword", "constant.language.escape" ],
+ regex: "(\\$)(.*?)(\\$)"
}, {
token: "code",
regex: "(`+)(.*?[^`])(\\1)"
@@ -27041,26 +27067,26 @@ function() {
};
}), define("core", [ "jquery", "underscore", "crel", "ace", "constants", "utils", "storage", "settings", "eventMgr", "shortcutMgr", "mousetrap", "text!html/bodyIndex.html", "text!html/bodyViewer.html", "text!html/settingsTemplateTooltip.html", "text!html/settingsUserCustomExtensionTooltip.html", "storage", "uilayout", "pagedown-ace", "libs/ace_mode", "ace/requirejs/text!ace/css/editor.css", "ace/requirejs/text!ace/theme/textmate.css", "ace/ext/spellcheck", "ace/ext/searchbox" ], function(e, t, n, i, o, r, s, a, l, c, u, d, h, p, f) {
function g() {
- T = !0, $ = !0;
+ $ = !0, D = !0;
var e = r.currentTime;
- e > L + 1e3 && (L = e, l.onUserActive());
+ e > B + 1e3 && (B = e, l.onUserActive());
}
function m() {
- return r.currentTime - L > o.USER_IDLE_THRESHOLD && ($ = !1), $ && D;
+ return r.currentTime - B > o.USER_IDLE_THRESHOLD && (D = !1), D && L;
}
function v() {
- if (T !== !1 && D !== !1) {
- void 0 === _ && (_ = r.randomString(), s.frontWindowId = _);
+ if ($ !== !1 && L !== !1) {
+ void 0 === F && (F = r.randomString(), s.frontWindowId = F);
var t = s.frontWindowId;
- t != _ && (D = !1, void 0 !== A && clearInterval(A), e(".modal").modal("hide"),
+ t != F && (L = !1, void 0 !== _ && clearInterval(_), e(".modal").modal("hide"),
e(".modal-non-unique").modal("show"));
}
}
function b() {
- B === !0 && (B = !1, l.onOfflineChanged(!1));
+ I === !0 && (I = !1, l.onOfflineChanged(!1));
}
function y() {
- B === !0 && navigator.onLine === !0 && I + o.CHECK_ONLINE_PERIOD < r.currentTime && (I = r.currentTime,
+ I === !0 && navigator.onLine === !0 && M + o.CHECK_ONLINE_PERIOD < r.currentTime && (M = r.currentTime,
e.ajax({
url: "//www.google.com/jsapi",
timeout: o.AJAX_TIMEOUT,
@@ -27070,8 +27096,8 @@ function() {
}));
}
function w() {
- r.setInputRadio("radio-layout-orientation", a.layoutOrientation), r.setInputValue(M, window.theme),
- M.change(), r.setInputChecked("#input-settings-lazy-rendering", a.lazyRendering),
+ r.setInputRadio("radio-layout-orientation", a.layoutOrientation), r.setInputValue(R, window.theme),
+ R.change(), r.setInputChecked("#input-settings-lazy-rendering", a.lazyRendering),
r.setInputValue("#input-settings-editor-font-family", a.editorFontFamily), r.setInputValue("#input-settings-editor-font-size", a.editorFontSize),
r.setInputValue("#input-settings-max-width", a.maxWidth), r.setInputValue("#textarea-settings-default-content", a.defaultContent),
r.setInputValue("#input-settings-publish-commit-msg", a.commitMsg), r.setInputChecked("#input-settings-gdrive-full-access", a.gdriveFullAccess),
@@ -27082,7 +27108,7 @@ function() {
function x(t) {
var n = {};
n.layoutOrientation = r.getInputRadio("radio-layout-orientation");
- var i = r.getInputValue(M);
+ var i = r.getInputValue(R);
n.lazyRendering = r.getInputChecked("#input-settings-lazy-rendering"), n.editorFontFamily = r.getInputTextValue("#input-settings-editor-font-family", t),
n.editorFontSize = r.getInputIntValue("#input-settings-editor-font-size", t, 1, 99),
n.maxWidth = r.getInputIntValue("#input-settings-max-width", t, 1), n.defaultContent = r.getInputValue("#textarea-settings-default-content"),
@@ -27093,15 +27119,15 @@ function() {
t.isPropagationStopped() || (e.extend(a, n), s.settings = JSON.stringify(a), s.theme = i);
}
function C(e) {
- e === !0 || R.state.north.isClosed ? (P.hide(), N.hide()) : (P.show(), N.show());
+ e === !0 || P.state.north.isClosed ? (N.hide(), O.hide()) : (N.show(), O.show());
}
function k(e) {
- e === !0 || R.state.east.isClosed ? O.hide() : O.show();
+ e === !0 || P.state.east.isClosed ? z.hide() : z.show();
}
function E() {
- z = i.edit("wmd-input"), z.setOption("spellcheck", !0), z.renderer.setShowGutter(!1),
- z.renderer.setPrintMarginColumn(!1), z.renderer.setPadding(o.EDITOR_DEFAULT_PADDING),
- z.session.setUseWrapMode(!0), z.session.setNewLineMode("unix"), z.session.setMode("libs/ace_mode"),
+ j = i.edit("wmd-input"), j.setOption("spellcheck", !0), j.renderer.setShowGutter(!1),
+ j.renderer.setPrintMarginColumn(!1), j.renderer.setPadding(o.EDITOR_DEFAULT_PADDING),
+ j.session.setUseWrapMode(!0), j.session.setNewLineMode("unix"), j.session.setMode("libs/ace_mode"),
function(e) {
function n(n) {
var i = e.lines[n];
@@ -27126,7 +27152,7 @@ function() {
e.lines.splice(0, e.lines.length), e.states.splice(0, e.states.length), e.currentLine = 0,
i();
};
- }(z.session.bgTokenizer), c.configureAce(z), l.onAceCreated(z);
+ }(j.session.bgTokenizer), c.configureAce(j), l.onAceCreated(j);
}
function S() {
var t = {
@@ -27136,15 +27162,17 @@ function() {
livePaneResizing: !0,
enableCursorHotkey: !1,
resizerDblClickToggle: !1,
- north__spacing_open: 6,
- north__spacing_closed: 6,
+ resizeWithWindow: !1,
+ north__spacing_open: 1,
+ north__spacing_closed: 1,
spacing_open: 35,
spacing_closed: 35,
togglerLength_open: 60,
togglerLength_closed: 60,
stateManagement__enabled: !1,
- center__minWidth: 200,
- center__minHeight: 200,
+ north__minSize: 49,
+ center__minWidth: 300,
+ center__minHeight: 300,
fxSettings: {
easing: "easeInOutQuad",
duration: 350
@@ -27156,13 +27184,13 @@ function() {
"north" == e ? C(!0) : "east" == e && k(!0);
},
onresize_end: function(e) {
- if (void 0 !== z && "center" == e) {
- z.resize();
- var t = (z.renderer.$size.scrollerHeight - z.renderer.lineHeight) / 2;
- 0 > t && (t = 0), z.renderer.setScrollMargin(0, t, 0, 0), setTimeout(function() {
- var e = (z.renderer.$size.scrollerWidth - a.maxWidth) / 2;
- e < o.EDITOR_DEFAULT_PADDING && (e = o.EDITOR_DEFAULT_PADDING), e !== z.renderer.$padding && (z.renderer.setPadding(e),
- z.resize(!0));
+ if (void 0 !== j && "center" == e) {
+ j.resize();
+ var t = (j.renderer.$size.scrollerHeight - j.renderer.lineHeight) / 2;
+ 0 > t && (t = 0), j.renderer.setScrollMargin(0, t, 0, 0), setTimeout(function() {
+ var e = (j.renderer.$size.scrollerWidth - a.maxWidth) / 2;
+ e < o.EDITOR_DEFAULT_PADDING && (e = o.EDITOR_DEFAULT_PADDING), e !== j.renderer.$padding && (j.renderer.setPadding(e),
+ j.resize(!0));
}, 5);
}
l.onLayoutResize(e);
@@ -27170,54 +27198,62 @@ function() {
};
l.onLayoutConfigure(t), "horizontal" == a.layoutOrientation ? (e(".ui-layout-south").remove(),
e(".preview-container").html('
'),
- R = e("body").layout(e.extend(t, {
+ P = e("body").layout(e.extend(t, {
east__resizable: !0,
east__size: .5,
- east__minSize: 260
+ east__minSize: 300
}))) : "vertical" == a.layoutOrientation && (e(".ui-layout-east").remove(), e(".preview-container").html('
'),
- R = e("body").layout(e.extend(t, {
+ P = e("body").layout(e.extend(t, {
south__resizable: !0,
south__size: .5,
south__minSize: 200
}))), a.maxWidth && e("#preview-contents").css("max-width", a.maxWidth + 30 + "px"),
e(".navbar").click(function() {
- R.allowOverflow("north");
+ P.allowOverflow("north");
}), e(".ui-layout-toggler-south").addClass("btn btn-info").html('
'),
e(".ui-layout-toggler-east").addClass("btn btn-info").html('
');
var n = e(".ui-layout-toggler-north").addClass("btn btn-info").html('
'), i = e('