-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmuText.html
82 lines (70 loc) · 2.74 KB
/
EmuText.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<title>Emu LiveText</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
<link rel="icon" type="image/x-icon" href="resources/32x32.ico">
<style>
li {
font-family:'Yu Gothic', 'Meiryo', 'Courier New';
font-size: 30px;
white-space: pre-line;
list-style-type: none;
}
button {
display: flex;
justify-content: center;
margin: 5px;
background-color: #d7b347;
border-color: #9d8027;
border-style: outset
}
button:hover {
background-color: #c5a33d;
border-color: #8e731f;
}
button:active {
background-color: #ab8d31;
border-color: #7a6219
}
</style>
</head>
<body style="background-color:#e5f1ec">
<a href="https://github.com/j-ac/EmuText">
<img src="resources/github.png"; width="100"; height="41">
</a>
<p style="justify-content:center; white-space:pre-line; display:flex; font-family:'Yu Gothic', Meiryo, 'Courier New'; font-size: 48px">Emu LiveText
エミュライブテキスト</p>
<script>
var changeFontSize = function(change) {
var styleBlock = document.querySelector('style');
var fontRule = styleBlock.sheet.cssRules[0];
currentFontSize = parseInt(fontRule.style.fontSize);
fontRule.style.fontSize = currentFontSize + change + 'px';
}
var changeFont = function() {
var styleBlock = document.querySelector('style');
var fontRule = styleBlock.sheet.cssRules[0];
currentFont = fontRule.style.fontFamily;
console.log(currentFont)
if (currentFont.includes("Yu Gothic") && currentFont.includes("Courier New")){
fontRule.style.fontFamily = 'Hiragino Mincho, Yu Mincho, Meiryo, Times New Roman';
}
else {
fontRule.style.fontFamily = 'Yu Gothic, Meiryo, Courier New';
}
}
</script>
<div style="display: flex; justify-content:center;">
<button onclick=changeFontSize(2);>Increase Font Size</button>
<button onclick = changeFontSize(-2);>Decrease Font Size</button>
</div>
<div style="display: flex; justify-content:center">
<button onclick=changeFont();>Change Font</button>
</div>
<div style="display: flex; justify-content:center">
<img src="resources/instructions.png"; id="screenshot"; width="480"; height="432"; style="display: flex; justify-content:center; margin:10px"; title="For best results with no black bars, select a size from Bizhawk->View->Window Size. Using a size of at least 3x eliminates blur.">
</div>
<p style="margin-left: 3%; margin-top: 0%; margin-bottom: 0%; font-family:'Yu Gothic', Meiryo, 'Courier New'; font-size: 20px; color:black"> <em><a href="https://github.com/j-ac/EmuText" style="color:black">github.com/j-ac/EmuText</a></em></p>
<script src="client.js"></script>
</body>
</html>