Ver código fonte

Update head.html

shimingxy 5 anos atrás
pai
commit
d642a11423
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      docs/_includes/head.html

+ 5 - 2
docs/_includes/head.html

@@ -2,7 +2,7 @@
 		<meta charset="UTF-8" />
 		<meta name="viewport" content="width=device-width, initial-scale=1" />
 		<meta name="generator" content="MaxKey v2.0.0" />
-		<title>MaxKey is leading-edge Identity and Access Management System-Single Sign On(SSO)</title>
+		<title id="maxkey_title">MaxKey is leading-edge Identity and Access Management System-Single Sign On(SSO)</title>
 		
 		<link rel="shortcut icon" type="image/x-icon" href="{{ "/images/favicon.ico" | prepend: site.baseurl }}?{{ site.time | date: "%Y%m%d%H%M" }}" title="MaxKey">
         <!-- syntax highlighting CSS -->
@@ -32,7 +32,10 @@
 			if(!currentLang){//判断IE浏览器使用语言
 				currentLang = navigator.browserLanguage;
 			}
-			alert(currentLang);
+			
+			if(currentLang.substr(1,2).toLowerCase()=="zh"){
+				document.getElementById("maxkey_title").innerHTML="MaxKey-业界领先的企业级IAM身份管理和身份认证产品";
+			}
 		</script>