-
Notifications
You must be signed in to change notification settings - Fork 1
/
redirect.ejs
30 lines (30 loc) · 1.27 KB
/
redirect.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>kkFileView - 在线文件预览</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords" content="在线,文件,预览,word,excel,ppt,office,pdf,zip,rar,压缩,文本" />
<meta name="description" content="kkFileView官网 - kkFileView使用Spring Boot搭建,易上手和部署,基本支持主流办公文档的在线预览,如doc,docx,Excel,pdf,txt,zip,rar,图片等等" />
</head>
<body>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/js-cookie/3.0.1/js.cookie.min.js" type="application/javascript"></script>
<script>
// 百度统计
var _hmt = _hmt || [];
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d06607a756285735eb4e18d467599a0c";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
window.rootPath = '<%= rootPath %>';
window.defaultLanguage = '<%= defaultLanguage %>';
var lang = Cookies.get('docsite_language');
if (!lang) {
lang = '<%= defaultLanguage %>';
}
setTimeout(() => {
window.location = window.rootPath + '/' + lang + '/index.html';
}, 500);
</script>
</body>
</html>