From f6487dc312539bb011434c7a8f9a80bc5b238a7c Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Sun, 24 Mar 2013 23:30:50 +0100 Subject: [PATCH] More verbose error slide (HTTP necessary) --- plugin/markdown/markdown.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 11a6fc2..3e31203 100644 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -26,11 +26,11 @@ return text; }; - + var twrap = function(el) { return ''; }; - + var slidifyMarkdown = function(markdown, separator, vertical) { separator = separator || '^\n---\n$'; @@ -105,7 +105,8 @@ section.outerHTML = slidifyMarkdown( xhr.responseText, section.getAttribute('data-separator'), section.getAttribute('data-vertical') ); } else { section.outerHTML = '
ERROR: The attempt to fetch ' + url + ' failed with the HTTP status ' + xhr.status + - '. Check your browser\'s JavaScript console for more details.
'; + '. Check your browser\'s JavaScript console for more details.' + + '

Remember that you need to serve the presentation HTML from a HTTP server and the Markdown file must be there too.

'; } } };