Skip to content

Instantly share code, notes, and snippets.

@Ttech
Created May 1, 2018 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ttech/a7efc6315cedfb9fa2efeac668e686f5 to your computer and use it in GitHub Desktop.
Save Ttech/a7efc6315cedfb9fa2efeac668e686f5 to your computer and use it in GitHub Desktop.
<div id="raw_include_README_md"></div>
<footer>
Theme available on <a href="https://GitHub.com/Naereen/Nginx-Fancyindex-Theme">GitHub</a> by <a href="https://GitHub.com/Naereen">Naereen</a>, © 2015-18, released under <a href="https://lbesson.mit-license.org/">the MIT License</a>.
</footer>
<script type="text/javascript" src="/Nginx-Fancyindex-Theme-light/addNginxFancyIndexForm.js"></script>
<script type="text/javascript" src="/Nginx-Fancyindex-Theme-light/showdown.min.js"></script>
<script type="text/javascript" defer>
var converter = new showdown.Converter();
$( "#raw_include_HEADER_md" ).load( "HEADER.md", function (){
var elem = document.querySelector("#raw_include_HEADER_md");
// strip leading whitespace so it isn't evaluated as code
var text = elem.innerHTML;
// console.log("text =", text);
text = text.replace(/\n[ ]*/g, '\n');
// console.log("text =", text);
var html = converter.makeHtml(text);
// console.log("html =", html);
// here, have some HTML
elem.innerHTML = html;
});
$( "#raw_include_README_md" ).load( "README.md", function (){
var elem = document.querySelector("#raw_include_README_md");
// strip leading whitespace so it isn't evaluated as code
var text = elem.innerHTML;
// console.log("text =", text);
text = text.replace(/\n[ ]*/g, '\n');
// console.log("text =", text);
var html = converter.makeHtml(text);
// console.log("html =", html);
// here, have some HTML
elem.innerHTML = html;
});
</script>
</body>
</html>
<!--
footer.html
© 2015-18, Lilian Besson (Naereen) and contributors,
open-sourced under the MIT License, https://lbesson.mit-license.org/
hosted on GitHub, https://GitHub.com/Naereen/Nginx-Fancyindex-Theme
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment