-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprivacy-policy-qiniu.html
85 lines (72 loc) · 2.44 KB
/
privacy-policy-qiniu.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
<!DOCTYPE html>
<html lang="en" mode="ios" class="hydrated">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
<meta http-equiv="cache-control" content="max-age=0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
<meta http-equiv="pragma" content="no-cache">
<link rel="icon" href="favicon.ico">
<style>
.markdown p {
white-space: pre-line;
}
.markdown blockquote {
margin: 0;
padding-left: 1.4rem;
border-left: 4px solid #dadada;
}
</style>
<script src="https://cdn.staticfile.org/marked/4.0.1/marked.min.js"></script>
<script>
let content = "";
let info = null;
let i18n = null;
let language = window.navigator.language;
if (language.startsWith("zh-CN")) {
language = "zh-CN";
} else if (language.startsWith("en")) {
language = "en";
} else {
language = "zh-TW";
}
fetch("privacy-policy-info.json?v=" + new Date().getTime()).then(
function (response) {
return response.json();
}).then(function (json) {
info = json;
i18n = json["i18n"][language];
document.title = i18n["title"];
render();
});
fetch("privacy-policy-" + language + ".md?v=" + new Date().getTime()).then(function (response) {
return response.text();
}).then(function (_content) {
content = _content;
render();
});
function render() {
if (info && content) {
let header = "# " + i18n["title"];
header += "\n\n";
header += i18n["effectiveTime"] + new Date(info["updateInfo"]["effectiveTime"]).toLocaleDateString()
header += "\n";
header += i18n["updateTime"] + new Date(info["updateInfo"]["updateTime"]).toLocaleDateString()
header += "\n\n\n";
let footer = "\n\n\n";
footer += i18n["developer"] + i18n["developerName"]
content = header + content + footer
document.getElementById('content').innerHTML = marked.parse(content);
}
}
</script>
<title>畅课(TronClass)隐私政策</title>
</head>
<body>
<div id="content" class="markdown">Loading ......</div>
</body>
</html>