ShowHeadAdditions.html 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="UTF-8">
  6. <body>
  7. <script>window.markdeepOptions={mode:"script"};</script>
  8. <script src="./markdeep.min.js"></script>
  9. <div>Document &lt;head&gt; additions:<br/>
  10. <textarea cols="80" rows="40" id="HeadDisplayBox"></textarea></div>
  11. <script>
  12. // Get the complete Markdeep and hljs stylesheet
  13. FullStylesheet=window.markdeep.stylesheet();
  14. // It should consist of three <style> tags which we pick apart
  15. StyleTagList=FullStylesheet.split("<style>");
  16. // The second one defines section number, which we do not want, so we
  17. // just drop it. The other two are Markdeep and hljs styles.
  18. MarkdeepStylesheet="<style>"+StyleTagList[1];
  19. HLJSStylesheet="<style>"+StyleTagList[3];
  20. // Now lets show the user what we found
  21. document.getElementById("HeadDisplayBox").textContent=
  22. "<!-- Markdeep styles -->\r\n"
  23. +MarkdeepStylesheet
  24. +"\r\n\r\n<!-- hljs styles -->\r\n"
  25. +HLJSStylesheet
  26. +"\r\n\r\n<!-- MathJax invocation -->\r\n<script type=\"text/javascript\" async=\"\" src=\"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\">\r\n";
  27. </script>
  28. </body>
  29. </html>