SenY commited on
Commit
cd219c7
1 Parent(s): 2ccc099

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -190,7 +190,7 @@
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";
@@ -856,7 +856,7 @@
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
 
 
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 {
196
  font-family: "Noto Sans JP";
 
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 { font-family: "' + i.value.trim() + '"; }';
861
  });
862