mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +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
|
// use it as a guard to avoid multiple set states inside updateTime
|
||||||
const lastSetPercentageRef = useRef<undefined | number>(undefined);
|
const lastSetPercentageRef = useRef<undefined | number>(undefined);
|
||||||
|
const language = useStore((state) => state.language);
|
||||||
|
|
||||||
const requestRef = useRef();
|
const requestRef = useRef();
|
||||||
const videoRef = createRef<HTMLVideoElement>();
|
const videoRef = createRef<HTMLVideoElement>();
|
||||||
|
@ -71,7 +72,11 @@ const MediaPlayer = () => {
|
||||||
<track id={"track"} ref={trackRef} kind="metadata" default />
|
<track id={"track"} ref={trackRef} kind="metadata" default />
|
||||||
</video>
|
</video>
|
||||||
<div id={"subtitle-container"}>
|
<div id={"subtitle-container"}>
|
||||||
<p ref={subtitleRef} id={"subtitle"} />
|
<p
|
||||||
|
ref={subtitleRef}
|
||||||
|
id={"subtitle"}
|
||||||
|
style={language === "ko" ? { fontFamily: "sans-serif" } : {}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -17,8 +17,8 @@ const MainPage = () => {
|
||||||
This is a web reimplementation of the Serial Experiments Lain PSX game
|
This is a web reimplementation of the Serial Experiments Lain PSX game
|
||||||
with the aim to provide multi-language support.
|
with the aim to provide multi-language support.
|
||||||
<br />
|
<br />
|
||||||
<h3><b>Please make sure to read the <Link to="/notes">notes</Link> before you
|
<b>Please make sure to read the <Link to="/notes">notes</Link> before you
|
||||||
start playing.</b></h3>
|
start playing.</b>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue