| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <title>Depender - A MooTools Dependency Builder</title>
- <link rel="stylesheet" href="../../styles/depender.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <style>
- h1 {
- margin: 0;
- }
- body {
- padding: 30px 0px;
- }
- #bod {
- margin: 0px 20px;
- }
- </style>
- <script src="../../showdown.js" type="text/javascript" charset="utf-8"></script>
- <script>
- function get(url, callback) {
- var xmlHttpReq = false;
- var self = this;
- // Mozilla/Safari
- if (window.XMLHttpRequest) {
- self.xmlHttpReq = new XMLHttpRequest();
- }
- // IE
- else if (window.ActiveXObject) {
- self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
- }
- self.xmlHttpReq.open('GET', url, true);
- self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- self.xmlHttpReq.onreadystatechange = function() {
- if (self.xmlHttpReq.readyState == 4) {
- callback(self.xmlHttpReq.responseText);
- }
- };
- self.xmlHttpReq.send();
- };
- window.onload = function(){
- get('Depender.Client.md', function(text){
- var converter = new Showdown.converter();
- var html = converter.makeHtml(text);
- html = html.replace(/\\?\{\#([^{}]+)\}/g, '')
- document.getElementById('bod').innerHTML = html;
- });
- };
- </script>
- </head>
- <body>
- <div id="bod">
- </div>
- </body>
- </html>
|