mirror of
https://github.com/actix/actix-website
synced 2025-06-29 16:24:58 +02:00
cn home page for cn
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user