goals.html 863 B

123456789101112131415161718192021222324
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>Landscape Document</title>
  6. </head>
  7. <body>
  8. <div id="content"></div>
  9. <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  10. <script>
  11. // IE7+, Firefox, Chrome, Opera, Safari, otherwise IE5, IE6
  12. var xmlhttp = (window.XMLHttpRequest ?new XMLHttpRequest() :new ActiveXObject("Microsoft.XMLHTTP"));
  13. xmlhttp.onreadystatechange = function() {
  14. // assuming everything was good, parse requested file as markdown (marked.js)
  15. if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  16. //document.getElementById('content').innerHTML = marked.parse('# Marked in browser\n\nRendered by **marked**.');
  17. document.getElementById('content').innerHTML = marked.parse(xmlhttp.responseText);
  18. }
  19. }
  20. xmlhttp.open("GET", "project-goals.md", true);
  21. xmlhttp.send();
  22. </script>
  23. </body>
  24. </html>