Skip to content

Commit 762e1b2

Browse files
committed
Fix!!!!!
1 parent f8aefb9 commit 762e1b2

File tree

2 files changed

+42
-8
lines changed

2 files changed

+42
-8
lines changed

thai-lao/index.htm

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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>

thai-lao/loops.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
function 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
}

0 commit comments

Comments
 (0)