parent
4d86519cc8
commit
6fc55efc64
@ -0,0 +1,12 @@
|
||||
#translate>.translateSelectLanguage {
|
||||
cursor:pointer;
|
||||
position:absolute;
|
||||
padding:0.3rem;
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
color: #FFF;
|
||||
background-color: #333;
|
||||
border:2px solid #c5464a;
|
||||
}
|
||||
@media screen and (max-width: 980px){#translate>.translateSelectLanguage {left:1rem;top:1rem;font-size:.8rem;width:6rem}}
|
||||
@media screen and (min-width: 980px){#translate>.translateSelectLanguage {left:2rem;top:2rem;font-size:1rem}}
|
@ -0,0 +1,10 @@
|
||||
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();
|
Loading…
Reference in new issue