-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (23 loc) · 853 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism-coy.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"></script>
<script>
$(document).ready(function () {
var urlParams = new URLSearchParams(window.location.search);
var url = decodeURI(urlParams.get('url'));
var lang = urlParams.get('lang');
var date = new Date();
var pre = document.createElement('pre');
pre.setAttribute('data-src', url + '?date=' + date.getTime());
pre.setAttribute('class', lang);
pre.setAttribute('style', 'margin:0;');
document.body.appendChild(pre);
Prism.fileHighlight();
});
</script>
</head>
<body style="margin:0;"></body>
</html>