Skip to content

Commit cf7bea4

Browse files
authored
Add files via upload
1 parent 33f3472 commit cf7bea4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<link rel="icon" href="./logo/iot_logo.png">
88
<script type="text/javascript" src="./login/iot-user.js"></script>
9-
<script type="text/javascript" src="./js/w3.js"></script>
109
</head>
1110
<script type="text/javascript">
1211
function iot_onload() {
1312
if (iot_is_login() === false) {
14-
document.write('<div w3-include-html="./login/"></div> ');
13+
window.location.href = "./login/index.html";
1514
}
1615
else
1716
{
18-
document.write('<div w3-include-html="./main.html"></div>');
17+
window.location.href = "./main.html";
1918
}
20-
w3.includeHTML();
2119
}
2220

2321
if (window.addEventListener)

0 commit comments

Comments
 (0)