-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
76 lines (66 loc) · 1.83 KB
/
test.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<script>
'use strict';
</script>
<meta charset="utf-8">
<title>iot-proxy: Devices smart management</title>
<style>
html,
body {
height: 100%;
margin: 0;
}
body {
background-color: #fff;
font-family: sans-serif;
overflow: hidden;
background: #4CAF50;
}
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.topnav {
overflow: hidden;
background-color: #333;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 14px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
height: 100%;
background-color: #4CAF50;
text-shadow: 0px 1px 0px #2f6627;
color: white;
font-weight: bold;
}
</style>
</head>
<body>
<script>
function fsend(message){
document.getElementById('mainFrame').contentWindow.postMessage(message, '*');
}
</script>
<div id="mainmenu" class="topnav">
<a tid="HEADER" class="active" href="#home">Manage eWeLink devices via Blockly and GoogleSheets</a>
<a tid = "HOWITWORKS" onclick="fsend('scriptInfo')"><i class="fa fa-info"></i> How it works?</a>
<a tid = "SAVEPROJECT" onclick="fsend('downloadScript')"><i class="fa fa-download"></i> Save project</a>
<a tid = "OPENPROJECT" onclick="fsend('uploadScript')")><i class="fa fa-upload"></i> Open</a>
<a tid = "DEVLOGIN" onclick="fsend('openLoginPopup')"><i class="fa fa-user"></i> Login</a>
<a tid = "SETLANG" onclick="fsend('setLang')"><i class="fas fa-globe"></i> RU</a>
</div>
<iframe id="mainFrame" style="border: 0;width: 100%; height: 94%;" src="https://46.101.222.66/frame.html"></iframe>
</body>
</html>