优化翻译效果

main
PJ568 1 year ago
parent fad862baa1
commit 278139b170

@ -4,6 +4,16 @@
scroll-behavior: smooth
}
.translateSelectLanguage{
z-index:1000001;
width:100%;
height:100%;
opacity:0;
cursor:pointer;
position:absolute;
left:0
}
body {
display: flex;
justify-content: center;

@ -14,29 +14,6 @@
<a class="menu_item_href" href="/?link=/lib/Sponsor.html">捐赠</a>
<a class="menu_item_href" href="/about">关于</a>
<script src="https://res.zvo.cn/translate/translate.js"></script>
<script>
try{
translate.listener.start();
translate.language.setLocal('chinese_simplified');
translate.setAutoDiscriminateLocalLanguage();
translate.language.setUrlParamControl();
}
catch(e){console.log(e);}
translate.setUseVersion2();
translate.ignore.class.push('notTranslate');
translate.execute();
</script>
<style>
.translateSelectLanguage{
z-index:1000001;
width:100%;
height:100%;
opacity:0;
cursor:pointer;
position:absolute;
left:0
}
</style>
<a id="translate" class="menu_item_href"><text><text class="hi">语言</text>🌐</text></a>
<div class="search_box"><input class="search_in" id="keyword" maxlength="18" placeholder="请键入关键词">
<div id="searchContent"></div>

@ -31,29 +31,6 @@
<a class="menu_item_href" href="application">提交<text class="hi">页面</text></a>
<a class="menu_item_href" href="?link=/lib/Sponsor.html">捐赠</a>
<a class="menu_item_href" href="about">关于</a>
<script>
try{
translate.listener.start();
translate.language.setLocal('chinese_simplified');
translate.setAutoDiscriminateLocalLanguage();
translate.language.setUrlParamControl();
}
catch(e){console.log(e);}
translate.setUseVersion2();
translate.ignore.class.push('notTranslate');
translate.execute();
</script>
<style>
.translateSelectLanguage{
z-index:1000001;
width:100%;
height:100%;
opacity:0;
cursor:pointer;
position:absolute;
left:0
}
</style>
<a id="translate" class="menu_item_href"><text><text class="hi">语言</text>🌐</text></a>
<div class="search_box"><input class="search_in" id="keyword" maxlength="18" placeholder="请键入关键词">
<div id="searchContent"></div>

@ -15,6 +15,16 @@ var time=setInterval(function () {
// loadingPage.remove();
// $('#loading').remove();
position.style.display = 'none';
try{
translate.listener.start();
translate.language.setLocal('chinese_simplified');
translate.setAutoDiscriminateLocalLanguage();
translate.language.setUrlParamControl();
}
catch(e){console.log(e);}
translate.setUseVersion2();
translate.ignore.class.push('notTranslate');
translate.execute();
}
loadingBackground.style.opacity=opacity;

Loading…
Cancel
Save