<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>thingjs-app-example</title>
  <!-- <script src="./plugins/thing.umd.min.js"></script> -->
  <script src="https://cdn.uino.cn/art2-fn/thingjs/thing.umd.min-v2.3.0.js"></script>
  <style>
    * {
      padding: 0;
      margin: 0;
    }
  </style>
</head>

<body>
  <div id="div3d">

  </div>

  <script>
    // 创建 APP
    const app = new THING.App();
    // 等待授权初始化完成
    THING.Utils.login({
      method: 'POST',
      url: 'http://10.100.41.33:18081/demo/processrequest/',
      wasmRootPath: './plugins/wasm/',
      postFields: 'post data'
    }).then(() => {
      // 加载场景
      app
        .loadBundle('./scene', {
          ignoreTheme: true,
        })
        .waitForComplete()
        .then((res) => {
          const campus = res.bundle.campuses[0]
          app.levelManager.change(campus)
        })

    })

  </script>
</body>

</html>