1
0
mirror of https://github.com/actix/actix-website synced 2025-06-30 00:34:58 +02:00

cn home page for cn

This commit is contained in:
krircc
2018-06-23 11:36:37 +08:00
parent b53596e1b6
commit 4349263ff5
3 changed files with 294 additions and 137 deletions

View File

@ -15,5 +15,18 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/actix.js"></script>
{{ template "_internal/google_analytics.html" . }}
<script type="text/javascript" async>
window.onload = function(){
if (window.location.href.indexOf("https://actix.rs/cn/") == 0) {
var actix_home = document.getElementById("act-home")
actix_home.style.display = "none"
}
if (window.location.href.indexOf("https://actix.rs/") == 0) {
var actix_home_cn = document.getElementById("act-home-cn")
actix_home_cn.style.display = "none"
}
}
</script>
</body>
</html>