File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 30
30
< script src ="https://code.jquery.com/jquery-3.7.1.min.js " integrity ="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo= " crossorigin ="anonymous "> </ script >
31
31
< script src ="dom-i18n.min.js "> </ script >
32
32
< link href ="main.css " rel ="stylesheet ">
33
- < script src ="main.js " defer > </ script >
34
33
35
34
<!-- Css stuffs-->
36
35
< script src ="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.3/semantic.min.js " integrity ="sha512-gnoBksrDbaMnlE0rhhkcx3iwzvgBGz6mOEj4/Y5ZY09n55dYddx6+WYc72A55qEesV8VX2iMomteIwobeGK1BQ== " crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
57
56
< i class ="ui arrow up icon "> </ i >
58
57
</ div >
59
58
< button id ="rwdmenubtn " class ="ui black big icon button "> < i class ="ui bars icon "> </ i > </ button >
60
- < div id ="mainmenu " class ="ui segment " style =" background: transparent !important; " >
59
+ < div id ="mainmenu " class ="ui segment ">
61
60
< div class ="ui container ">
62
61
< div class ="ui small stackable secondary menu ">
63
62
< div class ="item ">
@@ -594,5 +593,7 @@ <h1 i18n>Learn More
594
593
openModal ( $ ( this ) . attr ( 'src' ) ) ;
595
594
} ) ;
596
595
</ script >
596
+ <!-- Locales -->
597
+ < script src ="main.js " defer > </ script >
597
598
</ body >
598
599
</ html >
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ body.zh-cn *:not(i){
66
66
border-radius : 0 ;
67
67
margin-bottom : 0 ;
68
68
margin-top : 0 ;
69
+ background : transparent !important ;
69
70
}
70
71
71
72
# slideshowBanner .ui .basic .white .button {
@@ -85,6 +86,9 @@ body.zh-cn *:not(i){
85
86
# rwdmenubtn {
86
87
display : none;
87
88
position : absolute;
89
+ background : white;
90
+ border : 1px solid # 6cacff ;
91
+ color : # 6cacff ;
88
92
}
89
93
90
94
# mainmenu .ui .secondary .inverted .menu .link .item : not (.disabled ), .ui .secondary .inverted .menu a .item : not (.disabled ){
@@ -332,6 +336,7 @@ body.zh-cn *:not(i){
332
336
top : 0 ;
333
337
left : 0 ;
334
338
width : 100% ;
339
+ background : # fdfdfd !important ;
335
340
}
336
341
337
342
# rwdmenubtn {
Original file line number Diff line number Diff line change @@ -25,13 +25,16 @@ var i18n = domI18n({
25
25
defaultLanguage : 'en'
26
26
} ) ;
27
27
28
- let userLang = navigator . language || navigator . userLanguage ;
29
- console . log ( "User language: " + userLang ) ;
30
- userLang = userLang . split ( "-" ) [ 0 ] ;
31
- if ( ! languages . includes ( userLang ) ) {
32
- userLang = 'en' ;
33
- }
34
- i18n . changeLanguage ( userLang ) ;
28
+ $ ( document ) . ready ( function ( ) {
29
+ let userLang = navigator . language || navigator . userLanguage ;
30
+ console . log ( "User language: " + userLang ) ;
31
+ userLang = userLang . split ( "-" ) [ 0 ] ;
32
+ if ( ! languages . includes ( userLang ) ) {
33
+ userLang = 'en' ;
34
+ }
35
+ i18n . changeLanguage ( userLang ) ;
36
+ $ ( "body" ) . attr ( "class" , userLang ) ;
37
+ } ) ;
35
38
36
39
37
40
/* Main Menu */
You can’t perform that action at this time.
0 commit comments