-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.html.erb
22 lines (19 loc) · 1.37 KB
/
view.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%-
# generate form id, based on host and port
form_id = Digest::SHA1.hexdigest("--" + host.to_s + "--" + port.to_s + "--")
-%>
<form role="form" action="/pun/sys/dashboard/noVNC-1.3.0/vnc.html" accept-charset="UTF-8" method="get">
<input type="hidden" name="autoconnect" id="autoconnect" value="true" autocomplete="off">
<input type="hidden" name="path" id="path" value="rnode/<%= host %>/<%= port %>/websockify" autocomplete="off">
<input type="hidden" name="resize" id="resize" value="remote" autocomplete="off">
<input type="hidden" name="password" id="password" value="<%= password %>" autocomplete="off">
<div class="row">
<div class="col-sm-6">
<div class="form-group"><label for="compression">Compression</label><input class="form-control custom-range" type="range" min="0" max="9" value="6" name="compression" id="compression"><small class="form-text text-muted">0 (low) to 9 (high)</small></div>
</div>
<div class="col-sm-6">
<div class="form-group"><label for="quality">Image Quality</label><input class="form-control custom-range" type="range" min="0" max="9" value="2" name="quality" id="quality"><small class="form-text text-muted">0 (low) to 9 (high)</small></div>
</div>
</div>
<input type="submit" name="commit" value="Connect to VNC Server" class="btn btn-primary" formtarget="_blank" data-disable-with="Connect to VNC Server">
</form>