SenY commited on
Commit
3caa8b1
1 Parent(s): 9eceb9c

Update index.html

Browse files
Files changed (1) hide show
  1. 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?display=swap&family=Noto+Sans+JP" rel="stylesheet">
194
  <style id="fontFamily">
195
- body, body * {
196
- font-family: "Noto Sans JP" !important;
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?display=swap&family=" + i.value.trim());
860
- f.textContent = 'body, body * { font-family: "' + i.value.trim() + '" !important; }';
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 () {