aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorJakub Holy <jakub.holy@iterate.no>2013-03-24 23:30:50 +0100
committerJakub Holy <jakub.holy@iterate.no>2013-03-24 23:30:50 +0100
commitf6487dc312539bb011434c7a8f9a80bc5b238a7c (patch)
tree827eb1db89be5bdc64e0e70fccca8cfef26f33f3 /plugin/markdown
parent8fd28a91858d5a530a73773591a199c1091b74c1 (diff)
downloadfosdem-2018-presentation-f6487dc312539bb011434c7a8f9a80bc5b238a7c.tar
fosdem-2018-presentation-f6487dc312539bb011434c7a8f9a80bc5b238a7c.tar.gz
More verbose error slide (HTTP necessary)
Diffstat (limited to 'plugin/markdown')
-rw-r--r--plugin/markdown/markdown.js7
1 files 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 '<script type="text/template">' + el + '</script>';
};
-
+
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 = '<section data-state="alert">ERROR: The attempt to fetch ' + url + ' failed with the HTTP status ' + xhr.status +
- '. Check your browser\'s JavaScript console for more details.</section>';
+ '. Check your browser\'s JavaScript console for more details.' +
+ '<p>Remember that you need to serve the presentation HTML from a HTTP server and the Markdown file must be there too.</p></section>';
}
}
};