-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
42 lines (34 loc) · 1.4 KB
/
index.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
<!doctype html>
<html>
<head>
<!--change the title for each page-->
<title>Project Shapeoko</title>
<!--include styles-->
<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="shapeoko.css" rel="stylesheet" />
<!--include javascript-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="js/markdown.js"></script>
</head>
<body>
<script>
//load the navbar
$("body").load("include.html");
</script>
<script>
$(document).ready(function(){
$.ajax({
//change this path to the appropriate markdown file
url:"content/index.md",
dataType: "text",
success: function(response){
//here is the magic. convert markdown to html, inject it into content div
$("#content").append(markdown.toHTML(response));
}
});
});
</script>
</body>
</html>