[修复] 翻译问题

main
PJ568 1 year ago
parent 1fd3f0b1de
commit 86bba0f245

@ -15,6 +15,13 @@ function loadingFade() {
// loadingPage.remove(); // loadingPage.remove();
// $('#loading').remove(); // $('#loading').remove();
position.style.display = 'none'; position.style.display = 'none';
}
loadingBackground.style.opacity=opacity;
opacity-=0.4;
},100);
}
function initTranslate() {
try{ try{
translate.service.use('client.edge'); translate.service.use('client.edge');
translate.listener.start(); translate.listener.start();
@ -31,7 +38,4 @@ function loadingFade() {
catch(e){console.log('翻译系统出错:' + e);} catch(e){console.log('翻译系统出错:' + e);}
} }
loadingBackground.style.opacity=opacity; window.addEventListener('load', initTranslate);
opacity-=0.4;
},100);
}
Loading…
Cancel
Save