mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 15:09:05 +00:00
changed font for korean, fixed markup warning
This commit is contained in:
parent
2987fee9b6
commit
b8ea35657a
2 changed files with 8 additions and 3 deletions
|
@ -6,6 +6,7 @@ const MediaPlayer = () => {
|
|||
|
||||
// use it as a guard to avoid multiple set states inside updateTime
|
||||
const lastSetPercentageRef = useRef<undefined | number>(undefined);
|
||||
const language = useStore((state) => state.language);
|
||||
|
||||
const requestRef = useRef();
|
||||
const videoRef = createRef<HTMLVideoElement>();
|
||||
|
@ -71,7 +72,11 @@ const MediaPlayer = () => {
|
|||
<track id={"track"} ref={trackRef} kind="metadata" default />
|
||||
</video>
|
||||
<div id={"subtitle-container"}>
|
||||
<p ref={subtitleRef} id={"subtitle"} />
|
||||
<p
|
||||
ref={subtitleRef}
|
||||
id={"subtitle"}
|
||||
style={language === "ko" ? { fontFamily: "sans-serif" } : {}}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -17,8 +17,8 @@ const MainPage = () => {
|
|||
This is a web reimplementation of the Serial Experiments Lain PSX game
|
||||
with the aim to provide multi-language support.
|
||||
<br />
|
||||
<h3><b>Please make sure to read the <Link to="/notes">notes</Link> before you
|
||||
start playing.</b></h3>
|
||||
<b>Please make sure to read the <Link to="/notes">notes</Link> before you
|
||||
start playing.</b>
|
||||
<br />
|
||||
<br />
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue