Blame view

application/admin/view/antis/dashboard/index.html 1.44 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
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
44
45
46
47
48
49
50
51
52
53
54
  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Embed Webpage</title>
      <style>
          .panel-intro {
              border: 1px solid #ddd;
              border-radius: 4px;
              padding: 20px;
              margin: 20px;
              box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
          }
          .iframe-container {
              position: relative;
              width: 100%;
              padding-bottom: 56.25%; /* 16:9 aspect ratio */
              height: 0;
              overflow: hidden;
          }
          .iframe-container iframe {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border: 0;
          }
      </style>
  </head>
  <body>
  <div class="panel panel-default panel-intro">
      <div class="iframe-container">
  <!--        <div>{$token}</div>-->
          <iframe src="/h6?token={$token}" frameborder="0" allowfullscreen></iframe>
      </div>	
  </div>
  </body>
  </html>
  <script>
      window.addEventListener('message', function(event) {
  //        alert(1111);
          // event.data 包含发送的消息
          console.log('Received message:', event.data);
          window.open(event.data, '_blank')
  //    	   window.location.href =event.data
          // 在这里处理收到的消息
      });
  </script>
  
  
  
  <!--<iframe src="https://antis48.sherkxuan.cn/h6"  allowfullscreen></iframe>-->