-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
102 lines (100 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head>
<script>
const params = new URLSearchParams(document.location.search);
let version = params.get('version');
const electron = params.get('electron');
version = version.charAt(0).toUpperCase() + version.substr(1)
const namespace = 'QuickStart.' + version + '.dll';
</script>
<meta charset="UTF-8">
<title>electron-edge-js Quick Start</title>
<script src="renderer.js"></script>
<link rel="stylesheet" href="default.css">
</head>
<body>
<h3 id="test">
Quick start for electron-edge-js module using .NET
<script>
document.write(version);
</script>
and Electron
<script>
document.write(electron);
</script>
</h3>
<table>
<tr>
<th style="background: #c4d4e5" colspan="2">
<strong>
Calling inline c# code
</strong>
</th>
</tr>
<tr>
<th class="method">Method</th>
<th>Result</th>
</tr>
<tr>
<td class="method">GetPersonInfo</td>
<td><pre id="getItem"></pre></td>
</tr>
</table>
<br/>
<table>
<tr>
<th style="background: #c4d4e5" colspan="2">
<strong>
Calling local methods from
<script>
document.write(namespace)
</script>
</strong>
</th>
</tr>
<tr>
<th class="method">Method</th>
<th>Result</th>
</tr>
<tr>
<td class="method">GetAppDomainDirectory</td>
<td><pre id="getAppDomainDirectory"></pre></td>
</tr>
<tr>
<td class="method">GetCurrentTime</td>
<td><pre id="getCurrentTime"></pre></td>
</tr>
<tr>
<td class="method">Handle .NET Exception</td>
<td><pre id="handleException"></pre></td>
</tr>
<tr>
<td class="method">UseDynamicInput</td>
<td><pre id="useDynamicInput"></pre></td>
</tr>
</table>
<br/>
<table>
<tr>
<th style="background: #c4d4e5" colspan="2">
<strong>
Calling external library methods using
<script>
document.write(namespace)
</script>
wrapper
</strong>
</th>
</tr>
<tr>
<th class="method">Method</th>
<th>Result</th>
</tr>
<tr>
<td class="method">GetPersonInfo</td>
<td><pre id="getPerson"></pre></td>
</tr>
</table>
</body>
</html>