-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.html
executable file
·31 lines (31 loc) · 1022 Bytes
/
file.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
<HTML>
<Body>
<script language="javascript">
var GET = {};
var query = window.location.search.substring(1).split("&");
for (var i = 0, max = query.length; i < max; i++) {
if (query[i] === "") // check for trailing & with no param
continue;
var param = query[i].split("=");
GET[decodeURIComponent(param[0])] = decodeURIComponent(param[1] || "");
} //use GET.file
function populatePre(url) {
var xhr = new XMLHttpRequest();
xhr.onload = function () {
document.getElementById('content').textContent = this.responseText;
};
xhr.open('GET', url);
xhr.send();
}
populatePre(GET.file);
</script>
<bootmark id="content"></bootmark>
<script src="https://unpkg.com/bootmark@latest/dist/bootmark.bundle.min.js"></script>
<script>
$.fn.bootmark.options.html = {
theme: 'cyborg',
toc: false
};
</script>
</Body>
</HTML>