-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
109 lines (88 loc) · 2.51 KB
/
blog.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Blog</title>
<link href="static/css/bootstrap.min.css" rel="stylesheet">
<link href="static/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="static/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="static/js/marked.min.js"></script>
<style>
.language-javascript.hljs {
overflow-x: auto;
}
img {
max-width: 960px;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
border: 1px solid #cbcbcb;
}
table td,
table th {
border-left: 1px solid #cbcbcb;
border-width: 0 0 0 1px;
font-size: inherit;
margin: 0;
overflow: visible;
padding: .5em 1em;
}
table thead {
background-color: #e0e0e0;
color: #000;
text-align: left;
vertical-align: bottom;
}
table td {
background-color: transparent;
border-bottom: 1px solid #cbcbcb;
min-width: 70px;
}
table tbody>tr:last-child>td {
border-bottom-width: 0;
}
</style>
</head>
<body>
<main>
<div class="container">
<div class="section">
<div class="col-sm-10 col-sm-offset-1 main" id="content">
</div>
</div>
</div>
</main>
</body>
<script>
window.onload = function () {
loadContent();
}
function loadContent() {
var fileName = location.search.substring(7);
var requestUrl = 'markdown/' + fileName
document.title = decodeURI(fileName);
$.ajax({
type: 'GET',
url: requestUrl,
success: function (response) {
document.getElementById('content').innerHTML = marked.parse(response);
},
error: function (err) {
console.log(err);
}
})
}
</script>
</html>