-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.html
78 lines (78 loc) · 2.26 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!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: 40px 0px;
}
#bod {
margin: 0px 20px;
}
#links {
float: right;
}
li {
list-style: none;
text-indent: -20px;
padding-left: 10px;
}
p {
margin: 0 0 10px;
}
</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('README.md', function(text){
var converter = new Showdown.converter();
var html = converter.makeHtml(text);
html = html.replace(/Depender\.Client\.md/g, 'index.html');
document.getElementById('bod').innerHTML = html;
var readme = document.getElementById('readmeLink');
readme.parentNode.removeChild(readme);
});
};
</script>
</head>
<body>
<div id="links">
<ul style="margin: 20px">
<li id="readmeLink">See the <a href="README.md">ReadMe.md</a></li>
<li><a href="http://localhost:8000/depender/test">View the test for django</a>*</li>
<li><a href="http://localhost/depender/php/test.html">View the test for php</a>**</li>
<li><a href="http://localhost/depender/php/index.php">View the php chooser interface</a>**</li>
</ul>
<ul style="margin: 20px">
<li>* this links to localhost:8000; you may need to adjust it</li>
<li>** this links to localhost (port 80); you may need to adjust it</li>
</ul>
</div>
<div id="bod">
</div>
</body>
</html>