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

fix index page

This commit is contained in:
krircc
2018-06-23 15:54:08 +08:00
parent 88300abd1f
commit a2d543f8bc
4 changed files with 128 additions and 85 deletions

View File

@ -13,20 +13,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js" integrity="sha384-XTs3FgkjiBgo8qjEjBk0tGmf3wPrWtA6coPfQDfFEY8AnYJwjalXCiosYRBIBZX8" crossorigin="anonymous"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/actix.js"></script>
<script src="/js/actix.js" async></script>
{{ template "_internal/google_analytics.html" . }}
<script type="text/javascript" async>
window.onload = function(){
if (window.location.href.indexOf("http://localhost:1314/cn/") == 0) {
var actix_home = document.getElementById("act-home")
actix_home.style.display = "none"
}
if (window.location.href.indexOf("http://localhost:1313/") == 0) {
var actix_home_cn = document.getElementById("act-home-cn")
actix_home_cn.style.display = "none"
}
}
</script>
</body>
</html>