Update index.html
Browse files- index.html +5 -5
index.html
CHANGED
@@ -190,10 +190,10 @@
|
|
190 |
font-weight: bold;
|
191 |
}
|
192 |
</style>
|
193 |
-
<link id="googleFont" href="https://fonts.googleapis.com/css?
|
194 |
<style id="fontFamily">
|
195 |
-
body
|
196 |
-
font-family: "Noto Sans JP"
|
197 |
}
|
198 |
</style>
|
199 |
<style id="text-shadowPreview">
|
@@ -856,8 +856,8 @@
|
|
856 |
document.getElementById("googleFontInput").addEventListener("change", function () {
|
857 |
let f = document.getElementById("fontFamily");
|
858 |
let i = this;
|
859 |
-
document.getElementById("googleFont").setAttribute("href", "https://fonts.googleapis.com/css?
|
860 |
-
f.textContent = 'body
|
861 |
});
|
862 |
|
863 |
document.getElementById("fontColor").addEventListener("change", function () {
|
|
|
190 |
font-weight: bold;
|
191 |
}
|
192 |
</style>
|
193 |
+
<link id="googleFont" href="https://fonts.googleapis.com/css?family=Noto+Sans+JP" rel="stylesheet">
|
194 |
<style id="fontFamily">
|
195 |
+
body {
|
196 |
+
font-family: "Noto Sans JP";
|
197 |
}
|
198 |
</style>
|
199 |
<style id="text-shadowPreview">
|
|
|
856 |
document.getElementById("googleFontInput").addEventListener("change", function () {
|
857 |
let f = document.getElementById("fontFamily");
|
858 |
let i = this;
|
859 |
+
document.getElementById("googleFont").setAttribute("href", "https://fonts.googleapis.com/css?family=" + i.value.trim());
|
860 |
+
f.textContent = 'body { font-family: "' + i.value.trim() + '"; }';
|
861 |
});
|
862 |
|
863 |
document.getElementById("fontColor").addEventListener("change", function () {
|