瀏覽代碼

Transférer les fichiers vers 'MyWebProject/dist'

Gregoire Thomas 4 年之前
父節點
當前提交
57f3251545
共有 3 個文件被更改,包括 121 次插入0 次删除
  1. 96 0
      MyWebProject/dist/MyWebApp.js
  2. 15 0
      MyWebProject/dist/favicon.js
  3. 10 0
      MyWebProject/dist/index.html

File diff suppressed because it is too large
+ 96 - 0
MyWebProject/dist/MyWebApp.js


+ 15 - 0
MyWebProject/dist/favicon.js

@@ -0,0 +1,15 @@
+const head = document.querySelector('head');
+
+if (head) {
+  [16, 32, 96, 160, 196].forEach((resolution) => {
+    const link = document.createElement('link');
+    link.setAttribute('rel', 'icon');
+    link.setAttribute(
+      'href',
+      `https://kitware.github.io/vtk-js/icon/favicon-${resolution}x${resolution}.png`
+    );
+    link.setAttribute('sizes', `${resolution}x${resolution}`);
+    link.setAttribute('type', 'image/png');
+    head.appendChild(link);
+  });
+}

+ 10 - 0
MyWebProject/dist/index.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+  </head>
+  <body>
+    <script type="text/javascript" src="MyWebApp.js"></script>
+  </body>
+</html>

Some files were not shown because too many files changed in this diff