More verbose error slide (HTTP necessary)
authorJakub Holy <jakub.holy@iterate.no>
Sun, 24 Mar 2013 22:30:50 +0000 (23:30 +0100)
committerJakub Holy <jakub.holy@iterate.no>
Sun, 24 Mar 2013 22:30:50 +0000 (23:30 +0100)
plugin/markdown/markdown.js

index 11a6fc2ea7f7406caa97136ea9f3c28e99f35f16..3e312034a326985851194bc6fbe7629aed8a133e 100644 (file)
         return text;
 
     };
-    
+
     var twrap = function(el) {
       return '<script type="text/template">' + el + '</script>';
     };
-    
+
     var slidifyMarkdown = function(markdown, separator, vertical) {
 
         separator = separator || '^\n---\n$';
                             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>';
                         }
                     }
                 };