-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
executable file
·141 lines (114 loc) · 2.84 KB
/
index.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<html>
<head>
<title>EasyInterface</title>
<style>
body {
font-family:"Trebuchet MS", Arial, Verdana;
font-size:1em;
color:#555555;
background-color:#FFFFFF;
text-align:left;
}
a {
color:#4D87CE;
font-weight:bold;
text-decoration:none;
}
a:hover {
color:#2a65ad;
}
.title {
color: #3B3B3B;
letter-spacing: -1px;
font-size: 2.1em;
font-weight: bold;
text-align: center;
}
h1 {
color: #3B3B3B;
font-size: 1.3em;
font-weight: bold;
}
ul#app-list li {
list-style-type: none;
background: #dddddd;
margin: 5px 10px 5px -20px;
padding: 2px;
}
</style>
<script src="clients/web/lib/jquery-ui/js/jquery.js"></script>
<script>
$( function() {
// ping
$.post("server/eiserver.php",
{
eirequest: { "command" : "ping" },
})
.done( function(data) {
$("#ping").html(data);
})
.error( function(data) {
$("#eiserver").html(data);
});
/*
// execute echo
$.post("server/eiserver.php",
{
eirequest: { "command" : "execute", "app_id" : "echo", "parameters" : {"msg" : ["echo says Hola!"]} },
})
.done( function(data) {
$("#echo").html(data);
})
.error( function(data) {
$("#echo").html(data);
});
*/
// get app list
$.post("server/eiserver.php",
{
eirequest: { "command" : "app_info", "app_id" : "_ei_all" }
})
.done( function(data) {
var ap = $(jQuery.parseXML(data));
if(ap.find("ei_error").length) {
$("#eiserver").html(ap.find("ei_error").text());
} else {
$("#app-list").html("");
ap.find("ei_response").find("apps").find("app").each(
function() {
var title = $(this).find("appinfo").find("title").text();
var acronym= $(this).find("appinfo").find("acronym").text();
var desc = $(this).find("appinfo").find("short").text();
$("#app-list").append("<li><b>("+acronym+") "+title+"</b><ul><li>"+desc+"</li></ul></li>");
});
}
})
.error( function(data) {
$("#eiserver").html(data);
});
});
</script>
</head>
<body style="background-color: white;">
<div class="title">Welcome to EasyInterface</div>
<hr />
<h1>Testing EasyInterface Server</h1>
<p>
The following tests will be performed, if you do not get a corresponding success message shorly then something is wrong in your EasyInterface installation and you should refer to <a href="INSTALL.md">INSTALL.md</a>.
</p>
<table>
<tr><td>Test I:</td><td>Pinging the server:</td><td style="color:red;" id="ping">?</td></tr>
</table>
<p>
If the test were successful you can start using
the <a href="clients/web">web client</a>. For other clients
see <a href="clients/README.md">clients/README.md</a>. It is also
recommended to read Chapter 2 of the <a href="doc/manual.pdf">User
Manual</a>, which explains how to integrate your applications in
EasyInterface.
</p>
<p>This server contains the following tools:
<ul id="app-list"><li>No visible tools.</li></ul>
</p>
</body>
</html>