forked from kekingcn/kkFileView-home-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirect.ejs
23 lines (23 loc) · 1017 Bytes
/
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
<!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="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script>
window.rootPath = '<%= rootPath %>';
window.defaultLanguage = '<%= defaultLanguage %>';
var lang = Cookies.get('docsite_language');
if (!lang) {
lang = '<%= defaultLanguage %>';
}
// window.location = window.rootPath + '/' + lang + '/index.html';
window.location = 'https://kkfileview.keking.cn/zh-cn/index.html'
</script>
</body>
</html>