Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Files

Latest commit

dc22f14 · Aug 13, 2018

History

History
72 lines (69 loc) · 2.05 KB

File metadata and controls

72 lines (69 loc) · 2.05 KB
layout title sitemap
docs
404 Not Found
false

404 Not Found

<style> body { display: none; } </style> <script> var UrlList = { 'docs': ['{%- include get_link.html name="getting-started" lang="cn" -%}', '{%- include get_link.html name="getting-started" lang="en" -%}'], 'contact': ['{%- include get_link.html name="support" lang="cn" -%}', '{%- include get_link.html name="support" lang="en" -%}'], 'feedback': ['{%- include get_link.html name="support" lang="cn" -%}', '{%- include get_link.html name="support" lang="en" -%}'], 'log': ['{%- include get_link.html name="change-log" lang="cn" -%}', '{%- include get_link.html name="change-log" lang="en" -%}'], {%- for m1 in site.data.docs-sidebar.order -%} {%- assign doc_menu = m1.sub | first -%} '{{m1.name}}': ['{%- include get_link.html name=doc_menu.name lang="cn" -%}', '{%- include get_link.html name=doc_menu.name lang="en" -%}'], {%- for m2 in m1.sub -%} '{{m2.name}}': ['{%- include get_link.html name=m2.name lang="cn" -%}', '{%- include get_link.html name=m2.name lang="en" -%}'], {%- endfor -%} {%- endfor -%} } function TryJump(para, search){ var redirect = ''; if(para == undefined || para == '' || para == location.pathname){ return false; } if(typeof para == 'string'){ redirect = para; } else if(typeof para == 'object') { if(MLANG() == 'cn') { redirect = para[0]; } else if (MLANG() == 'en'){ redirect = para[1]; } } if(redirect != ''){ if(search){ redirect += location.search; } location = redirect; return true; } return false; } var ok = false; if (/^\/go(\/|$)/.test(location.pathname)) { var index = location.search.substring(1); var jump = UrlList[index]; ok = TryJump(jump, false); } if(!ok){ var splits = location.pathname.split('/'); var index = ""; for (var i = splits.length - 1; i >= 0; i--) { if(index == "" || UrlList[index]==undefined) { index = splits[i]; } } var jump = UrlList[index]; ok = TryJump(jump, true); } if(!ok) { $("body").css('display', 'block'); } </script>