Debian Codegraph @

modules/hwloc/utils/netloc/draw/netloc_draw.html

raw
1 <!--
2 Copyright © 2016-2018 Inria. All rights reserved.
3 $COPYRIGHT$
4
5 Additional copyrights may follow
6 See COPYING in top-level directory.
7
8 $HEADER$
9 -->
10
11 <!DOCTYPE html>
12 <html>
13 <head>
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
15 <script type="text/javascript" src="visdist/vis.min.js"></script>
16 <link href="visdist/vis.min.css" rel="stylesheet" type="text/css"/>
17 <style type="text/css">
18 #mynetwork {
19 width: auto;
20 height: 800px;
21 border: 1px solid lightgray;
22 }
23 </style>
24
25 <title>Network topology</title>
26 </head>
27 <body>
28 <input type="file" id="files" name="files[]"/>
29 <select id="selectPartition">
30 <option value="" disabled="disabled">Choose a partition</option>
31 </select>
32 <select id="selectColors">
33 <option value="" disabled="disabled">Choose a color mode</option>
34 </select>
35 <input id="reload" type="button" value="Reload"/>
36 <input id="searchValue" type="text" name="searchValue"/>
37 <select id="selectSearch">
38 <option value="" disabled="disabled">Choose a search field</option>
39 <option value="hostname" >Hostname</option>
40 <option value="id" >Id</option>
41 <option value="type" >Type</option>
42 <option value="part" >Partition</option>
43 <option value="topo" >Hwloc topologies</option>
44 <option value="title" >Description</option>
45 </select>
46 <input id="search" type="button" value="Search"/>
47 <input id="fit" type="button" value="Fit"/>
48 <input id="imageCreate" type="button" value="Generate image link"/>
49 <span id="imageLink"></span>
50 <input id="removeSel" type="button" value="Remove selected"/>
51 <input id="expandSel" type="button" value="Expand selected"/>
52
53 <div id="mynetwork"></div>
54 <span id="removeButton"></span>
55 <pre id="description"></pre>
56
57 <script type="text/javascript" src="netloc_draw.js"></script>
58 <script type="text/javascript">
59 /* Add Event Listeners */
60 document.getElementById("files").addEventListener("change", handleFileSelect);
61 document.getElementById("selectPartition").addEventListener("change", draw);
62 document.getElementById("selectColors").addEventListener("change", nodeColors);
63 document.getElementById("reload").addEventListener("click", draw);
64 document.getElementById("searchValue").addEventListener("keydown", function(event){if(event.keyCode==13)search();});
65 document.getElementById("search").addEventListener("click", search);
66 document.getElementById("fit").addEventListener("click", function(){network.fit({animation:true});});
67 document.getElementById("imageCreate").addEventListener("click", prepareImage);
68 document.getElementById("removeSel").addEventListener("click", function(){network.deleteSelected();});
69 document.getElementById("expandSel").addEventListener("click", expandSelected);
70 </script>
71 </body>
72 </html>