jhzh
2024-03-23 0d29d9a2bf0d893a67f1263bb9525131a50a2128
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  <title>首页</title>
  <link rel="shortcut icon" href=./favicon.ico type=image/x-icon>
  <link href="static/css/public1.css" rel="stylesheet">
 
  <script>
      // 禁用缩放
      function addMeta() {
        //   $('head').append('<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />');
      }
      setTimeout(addMeta, 3000);
 
      // 禁用双指放大
      document.documentElement.addEventListener('touchstart', function (event) {
          if (event.touches.length > 1) {
              event.preventDefault();
          }
      }, {
          passive: false
      });
 
      // 禁用双击放大
      var lastTouchEnd = 0;
      document.documentElement.addEventListener('touchend', function (event) {
          var now = Date.now();
          if (now - lastTouchEnd <= 300) {
              event.preventDefault();
          }
          lastTouchEnd = now;
      }, {
          passive: false
      });
    </script>
</head>
<body style="height: 100%; position: absolute; width: 100%;">
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>