www

My personal website(s)
Log | Files | Refs

footer.html (1518B)


      1 <section id="raw_include_README_md"></section>
      2 </main>
      3 <footer>
      4   <span class='copyright'>
      5     Content and design by Vincent Demeester
      6     (<a rel='licence' href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Some rights reserved</a>)
      7   </span>
      8 </footer>
      9 <script src="https://unpkg.com/xregexp/xregexp-all.js"></script>
     10 <script type="text/javascript" src="/.fancyindex/addNginxFancyIndexForm.js"></script>
     11 <script type="text/javascript" src="/.fancyindex/showdown.min.js"></script>
     12 <script type="text/javascript" defer>
     13  var converter = new showdown.Converter();
     14  $( "#raw_include_HEADER_md" ).load( "HEADER.md", function (){
     15    var elem = document.querySelector("#raw_include_HEADER_md");
     16    // strip leading whitespace so it isn't evaluated as code
     17    var text = elem.innerHTML;
     18    // console.log("text =", text);
     19    text = text.replace(/\n[ ]*/g, '\n');
     20    // console.log("text =", text);
     21    var html = converter.makeHtml(text);
     22    // console.log("html =", html);
     23    // here, have some HTML
     24    elem.innerHTML = html;
     25  });
     26  $( "#raw_include_README_md" ).load( "README.md", function (){
     27    var elem = document.querySelector("#raw_include_README_md");
     28    // strip leading whitespace so it isn't evaluated as code
     29    var text = elem.innerHTML;
     30    // console.log("text =", text);
     31    text = text.replace(/\n[ ]*/g, '\n');
     32    // console.log("text =", text);
     33    var html = converter.makeHtml(text);
     34    // console.log("html =", html);
     35    // here, have some HTML
     36    elem.innerHTML = html;
     37  });
     38 </script>
     39 </body>
     40 </html>