File tree Expand file tree Collapse file tree 2 files changed +42
-8
lines changed
Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > Thai, Lao</ title >
4+ < link rel ="stylesheet " href ="../styles.css ">
5+ < meta charset ="UTF-8 ">
6+ < style >
7+ .kor , table .kor tr td {
8+ font-family : 'Noto Sans KR' , 'Noto Sans' ;
9+ }
10+ </ style >
11+ </ head >
12+ < body align ="center ">
13+ < h1 > Thai, Lao</ h1 > < a href ="../ "> < c > Back to scripts</ c > </ a > < hr >
14+ < form name ="form "> < table class ="three "> < tr >
15+ < td >
16+ < textarea placeholder ="Latin transliteration " name ="leftarea " id ="leftarea " onclick ="lathan() " onkeyup ="lathan() "> </ textarea >
17+ </ td >
18+ < td >
19+ < textarea id ="transcript " class ="kor transcript "> < span style ="color: #e0f2ff80 "> Latin transcription</ span > </ div >
20+ </ td >
21+ < td >
22+ < textarea placeholder ="Hangul text " name ="rightarea " id ="rightarea " class ="kor " onclick ="hanlat() " onkeyup ="hanlat() "> </ textarea >
23+ </ td >
24+ </ tr > </ table > </ form >
25+
26+ < table class ="letters kor " align ="center "> < tr >
27+ < td >
28+ ㄱ< br > < c > g< br > /k/</ c >
29+ </ td >
30+ </ tr > </ table >
31+
32+ < script async ="" src ="thai-lao.js "> </ script >
33+ </ body >
34+ </ html >
Original file line number Diff line number Diff line change 11function toggleLoops ( ) {
2- const thaiElement = document . getElementById ( 'thai' ) ;
3- const thaiFont = window . getComputedStyle ( thaiElement ) . fontFamily ;
4- const laoElement = document . getElementById ( 'lao' ) ;
5- const laoFont = window . getComputedStyle ( laoElement ) . fontFamily ;
2+ let thaiElement = document . getElementById ( 'thai' ) ;
3+ let thaiFont = window . getComputedStyle ( thaiElement ) . fontFamily ;
4+ let laoElement = document . getElementById ( 'lao' ) ;
5+ let laoFont = window . getComputedStyle ( laoElement ) . fontFamily ;
66
77 if ( thaiFont . includes ( 'Noto Sans Thai Looped' ) ) {
8- thaiElement . style . fontFamily = '"Noto Sans, Noto Sans Thai Normal"' ;
8+ thaiElement . style . fontFamily = '"Noto Sans", " Noto Sans Thai Normal"' ;
99 }
1010 if ( thaiFont . includes ( 'Noto Sans Thai Normal' ) ) {
11- thaiElement . style . fontFamily = '"Noto Sans, Noto Sans Thai Looped"' ;
11+ thaiElement . style . fontFamily = '"Noto Sans", " Noto Sans Thai Looped"' ;
1212 }
1313
1414 if ( laoFont . includes ( 'Noto Sans Lao Looped' ) ) {
15- laoElement . style . fontFamily = '"Noto Sans, Noto Sans Lao Normal"' ;
15+ laoElement . style . fontFamily = '"Noto Sans", " Noto Sans Lao Normal"' ;
1616 }
1717 if ( laoFont . includes ( 'Noto Sans Lao Normal' ) ) {
18- laoElement . style . fontFamily = '"Noto Sans, Noto Sans Lao Looped"' ;
18+ laoElement . style . fontFamily = '"Noto Sans", " Noto Sans Lao Looped"' ;
1919 }
2020}
You can’t perform that action at this time.
0 commit comments