forked from Ciantic/npsimple-win32
-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.html
executable file
·37 lines (33 loc) · 935 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Aplix Foo Plugin Test</title>
</head>
<body>
<script type="text/javascript">
function scriptSimple() {
try {
alert(document.getElementById("pluginobj").scriptSimple());
}
catch(e) {
alert(e);
}
}
function foo() {
try {
alert(document.getElementById("pluginobj").foo());
}
catch(e) {
alert(e);
}
}
</script>
<p>
<button onclick='scriptSimple()'>Call scriptSimple()</button>
<button onclick='foo()'>Call foo()</button>
<object id="pluginobj" type="application/x-vnd-aplix-foo">Plugin FAILED to load</object>
</p>
<p>If the plugin is working correctly, a click on the button should open a popup dialog containing <b>42</b> as value.</p>
<p>Please try a <a href="https://foo.webvm.net/test.html">more complex test using a loader</a> that demonstrates dynamic API provisioning.</p>
</body>
</html>