-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (108 loc) · 6.97 KB
/
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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Jiang News</title>
<link rel="stylesheet" href="static/css/reset.min.css">
<link rel="stylesheet" href="static/css/style.css">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script>
function setMainTextArea() {
var originalSitePv = document.getElementById("busuanzi_value_site_pv").textContent;
var elementMainTextArea = document.getElementById("mainTextArea");
var userLanguages = navigator.languages || [navigator.language || navigator.userLanguage];
var excited__they_may_understand_meme = userLanguages.some(function(language) {return language.indexOf("zh") === 0;});
if (excited__they_may_understand_meme){
console.log("Excited! 🚣");
elementMainTextArea.innerHTML = `
⌜<br> 不要总想搞个<br><a class="child-big">大新闻.</a><br>⌞<br>
<span class="child-small" id="busuanzi_container_site_pv"> + <span id="busuanzi_value_site_pv">${originalSitePv}</span> s </span>
`;
} else {
console.log("Aloha! 🍷🎸🎶🎵🌅 🏴");
elementMainTextArea.innerHTML = `
⌜<br> Stay young, stay simple. <br><a class="child-big">Sometimes Naïve.</a><br>⌞<br>
<span class="child-small" id="busuanzi_container_site_pv"> + <span id="busuanzi_value_site_pv">${originalSitePv}</span> sec </span>
`;
}
}
</script>
</head>
<body>
<svg viewbox="0 0 100 100" preserveaspectratio="xMidYMid slice">
<defs>
<radialgradient id="Gradient1" cx="50%" cy="50%" fx="10%" fy="50%" r=".5">
<animate attributename="fx" dur="34s" values="0%;3%;0%" repeatcount="indefinite"></animate>
<stop offset="0%" stop-color="#ff0c"></stop>
<stop offset="100%" stop-color="#ff00"></stop>
</radialgradient>
<radialgradient id="Gradient2" cx="50%" cy="50%" fx="10%" fy="50%" r=".5">
<animate attributename="fx" dur="23.5s" values="0%;3%;0%" repeatcount="indefinite"></animate>
<stop offset="0%" stop-color="#0ff9"></stop>
<stop offset="100%" stop-color="#0ff0"></stop>
</radialgradient>
<radialgradient id="Gradient3" cx="50%" cy="50%" fx="10%" fy="50%" r=".5">
<animate attributename="fx" dur="21.5s" values="0%;3%;0%" repeatcount="indefinite"></animate>
<stop offset="0%" stop-color="#f0f7"></stop>
<stop offset="100%" stop-color="#f0f0"></stop>
</radialgradient>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient1)">
<animate attributename="x" dur="20s" values="25%;0%;25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="21s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="0 50 50" to="360 50 50" dur="17s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient1)">
<animate attributename="x" dur="20s" values="25%;0%;25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="21s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="5 50 50" to="365 50 50" dur="17s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient1)">
<animate attributename="x" dur="20s" values="25%;0%;25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="21s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="10 50 50" to="370 50 50" dur="17s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient2)">
<animate attributename="x" dur="23s" values="-25%;0%;-25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="24s" values="0%;50%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="0 50 50" to="360 50 50" dur="18s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient2)">
<animate attributename="x" dur="23s" values="-25%;0%;-25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="24s" values="0%;50%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="5 50 50" to="365 50 50" dur="18s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient2)">
<animate attributename="x" dur="23s" values="-25%;0%;-25%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="24s" values="0%;50%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="10 50 50" to="370 50 50" dur="18s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient3)">
<animate attributename="x" dur="25s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="26s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="360 50 50" to="0 50 50" dur="19s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient3)">
<animate attributename="x" dur="25s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="26s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="365 50 50" to="5 50 50" dur="19s" repeatcount="indefinite"></animatetransform>
</rect>
<rect x="0" y="0" width="100%" height="100%" fill="url(#Gradient3)">
<animate attributename="x" dur="25s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animate attributename="y" dur="26s" values="0%;25%;0%" repeatcount="indefinite"></animate>
<animatetransform attributename="transform" type="rotate" from="370 50 50" to="10 50 50" dur="19s" repeatcount="indefinite"></animatetransform>
</rect>
</svg>
<div class="center-div">
<div>
<div class="child-font" id="mainTextArea">
⌜<br> 不要总想搞个<br><a class="child-big">大新闻.</a><br>⌞<br>
<span class="child-small" id="busuanzi_container_site_pv"> + <span id="busuanzi_value_site_pv"></span> s </span>
</div><br>
</div>
</div>
<script>
setMainTextArea();
</script>
</body>
</html>