forked from apache/echarts-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manually-redirect.html
15 lines (15 loc) · 1.29 KB
/
manually-redirect.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html><head><meta charset="utf-8"><meta name="robots" content="noindex"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><link rel="shortcut icon" href="https://echarts.apache.org/undefined/images/favicon.png?_v_=20200710_1"><style>html, body {
margin: 0;
padding: 0
}
.main {
text-align: center;
margin: auto;
position: absolute;
top: 50%;
font-weight: normal;
}
.content {
transform: translate(-50%, -50%);
}</style></head><body><div class="main"><div class="content"><div><span>请访问 Apache ECharts 的官网 </span><a id="a1" href="https://echarts.apache.org/zh/index.html">https://echarts.apache.org</a></div><div><span>Please visit the official Apache ECharts Website at</span><a id="a2" href="https://echarts.apache.org/en/index.html">https://echarts.apache.org</a></div></div></div><script type="text/javascript">document.getElementById('a1').setAttribute('href', 'https://echarts.apache.org/zh/index.html'+((!location.pathname||location.pathname==='/')?'':location.pathname+(!location.search?'':location.search)+(!location.hash?'':location.hash)));
document.getElementById('a2').setAttribute('href', document.getElementById('a1').getAttribute('href'));</script></body>