index.html 1.3 KB
<!DOCTYPE html>
<html lang="zh-Hans">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>
  <meta name="keywords"
    content="afk journey,AFK,AFK2,RPG,RPGGAMES,MMORPG,FREEGAME,FARLIGHT,IDLE RPG,Strategy RPG,Gacha,Journey,Open World" />
  <link rel="icon"
    href="https://oss-resource.farlightgames.com/p/SDK/200000/0/100000/2023-04-23/D:/img/f92c62a9048640b522cdb0fd00eb379b.ico">
</head>

<body>
  <div id="app"></div>
</body>
<style>
  .grecaptcha-badge {
    display: none !important;
    opacity: 0;
  }
</style>
<script>
  (function (win) {
    var doc = win.document;
    var docEl = doc.documentElement;
    var tid;
    function refreshRem () {
      var width = docEl.getBoundingClientRect().width;
      if (width > 600) { // 最大宽度
        width = 600;
      }
      var rem = width / 10;
      docEl.style.fontSize = rem + 'px';
    }

    win.addEventListener('resize', function () {
      clearTimeout(tid);
      tid = setTimeout(refreshRem, 300);
    }, false);
    win.addEventListener('pageshow', function (e) {
      if (e.persisted) {
        clearTimeout(tid);
        tid = setTimeout(refreshRem, 300);
      }
    }, false);

    refreshRem();

  })(window);
</script>

</html>

</html>