-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.html
58 lines (48 loc) · 2.25 KB
/
config.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />
<link rel='stylesheet' type='text/css' href='assets/config.css' />
<title>LedgerSmart Config</title>
</head>
<body>
<div id="loading_div">
LOADING.....
</div>
<div id="main_config">
<input type="radio" name="appmode" id="use_as_both" value=""> Run server and client on this device<br><br>
<!--<input type="radio" name="appmode" id="use_as_server" value=""> Run server only on this device<br><br>-->
<input type="radio" name="appmode" id="use_as_client" value=""> Connect to a server<br>
<hr>
<span id="client_connect_options">
Connect Options<br>
Address <input type="text" id="client_server_ip" value=""><br>
Port <input type="number" step="1" id="client_server_port" value="">
Protocal :
<input type="radio" name="clientmode" id="client_protocal_ws" value="">http<br>
<input type="radio" name="clientmode" id="client_protocal_wss" value=""> https<br>
<br>
</span>
<span id="server_options">
Server Options<br>
<input type="radio" name="servermode" id="server_local_only" value=""> Available this device only<br>
<input type="radio" name="servermode" id="server_network_wide" value=""> Available network wide <br>
Port <input type="number" step="1" id="server_port" value="25444">
<br>
</span>
<hr>
<button type="button" id="save_config" >Save</button>
<button type="button" id="cancel_config">Cancel</button>
</div>
<div id="config_saved">
<center>
<h2>Configuration saved. <br> Click close then relaunch LedgerSmart</h2>
<h3>To change this configuration again launch ledgersmart with the -config option</h3>
<h3><button type="button" id="close_config">Close</button></h3>
</div>
<script src="./js/config.js"></script>
</body>
</html>