main
usa.yimian.xyz 3 years ago
parent 7404736202
commit 6edb6de786
  1. 2
      pm2.json
  2. 10
      src/framework.html

@ -2,7 +2,7 @@
"name": "wIoT-webpage", "name": "wIoT-webpage",
"script": "src/index.js", "script": "src/index.js",
"restart_delay": 43200000, "restart_delay": 43200000,
"instances": "2", "instances": "1",
"env": { "env": {
"NODE_ENV": "development" "NODE_ENV": "development"
}, },

@ -2,19 +2,19 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>wIoT WebPage</title> <title>wIoT WebPage</title>
<script type="text/javascript">lang = ['en'];block_aplayer = true;</script> <script type="text/javascript">lang = ['en'];block_aplayer = true;</script>
<script src="https://cdn.yimian.xyz/ushio-js/ushio-head.min.js" charset="utf-8"></script> <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" charset="utf-8"></script>
</head> </head>
<body> <body>
<div id="main"></div> <div id="main"></div>
<script type="text/javascript"> <script type="text/javascript">
setInterval(()=>{ setInterval(()=>{
$.get('/GET?path='+page.path, res => { $.get('/GET?path='+window.location.pathname, res => {
$('#main').html(res); $('#main').html(res);
}) })
}, 1000); }, 2000);
</script> </script>
<script src="https://cdn.yimian.xyz/ushio-js/ushio-footer.min.js" charset="utf-8"></script>
</body> </body>
</html> </html>

Loading…
Cancel
Save