TiledViz
Loading...
Searching...
No Matches
vncconnection.html
1{% extends "base.html" %}
2
3{% block title %}
4 <title>noVNCConnection</title>
5{% endblock %}
6
7{% block additional_scripts_css %}
8 <link rel="stylesheet"
9 href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
10 integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0="
11 crossorigin="anonymous" />
12<header>
13 <script type="text/javascript" charset="utf-8">
14 connection_port={{ port }};
15 connection_id = {{ id }};
16 tileset_id = {{ tsid }};
17 vncpassword = "{{ vncpassword }}";
18 flaskaddr= "{{ flaskaddr }}";
19 </script>
20</header>
21{% endblock %}
22
23{% block body %}
24 <script type="text/javascript">
25 $('document').ready(autoadaptzoom)
26 </script>
27<div id="icontainer" class="container">
28 <h3>
29 Connection secure to HPC machine.
30 </h3>
31 <p> Hit &laquo; register tileset &raquo; button when VNC connection is closed </p>
32 </br>
33 <p> Click on the blue bar or in the grey border of the connection window to get hand inside it. </p>
34 <script>
35 var VNCurl="https://"+flaskaddr+"/noVNC/vnc.html?autoconnect=1&host="+flaskaddr+"&port="+connection_port+"&encrypt=1&path=/TiledViz/TVConnections/websockify&password="+vncpassword+"&true_color=1"
36 //logging=debug&
37 var vncifrm = document.createElement('iframe');
38 vncifrm.setAttribute('width', 1410);
39 vncifrm.setAttribute('height', 740);
40 vncifrm.setAttribute('src', VNCurl);
41 $("#icontainer").append(vncifrm);
42 </script>
43 <div id="management" name="buttons">
44 <form method="post">
45 <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
46 <button class="btn btn-large btn-info" id="submit" name="submit" value="Submit">Register tileset</button>
47 </form>
48 <div id="editsession" style="position: relative; top: -35px; left: 150px">
49 <a class="btn btn-large btn-danger"
50 href="/editsession?message=%7B&quot;oldsessionname&quot;%3A&quot;{{ session }}&quot;%7D" >Cancel</a>
51 </div>
52 <div id="closeconnection" style="position: relative; top: -70px; left: 300px" >
53 <a class="btn btn-large btn-danger"
54 href="/removeconnection?message=%7B&quot;oldtilesetid&quot;%3A&quot;{{ tsid }}&quot;%7D" >Remove</a>
55 </div>
56 <div style="position: relative; top: -35px;">
57 Back to session : register nodes.json in Tileset. Cancel : Back to session edition without
58 saving data. Remove
59 : Completly suppress connection.
60 </div>
61 </div>
62</div>
63{% endblock %}
64