forked from MartinKem/Call-Graph-Exploration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (76 loc) · 3.27 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
<!-- BSD 2-Clause License - see ./LICENSE for details. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<!--
Alternative
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
-->
<script src="./resources/alternative/d3.v3.min.js"></script>
<script src="./resources/alternative/jquery.min.js"></script>
<link href="resources/CSS/style.css" rel="stylesheet" type="text/css">
<title>Call Graph</title>
</head>
<body>
<div id="load_page">
<!--Filereader für JSON Datei-->
<form id="jsonFile" name="jsonFile" enctype="multipart/form-data" method="post">
<fieldset style="height: 100%">
<h2>Enter JSON file to start</h2>
<div id="dropZone">You can Drop files here <br />
<input type='file' id='fileinput' accept=".json"
onchange="if (!lockOnchange){lockOnchange = true; this.setAttribute('disabled', true); loadFile()}"
style="position: relative; top: 40%">
</div>
<span id="progress_bar_description"></span>
<div id="progress_bar">
<div id="progress" class="percent">0%</div>
</div> <br />
</fieldset>
</form>
</div>
<div id="graph_page" class="invis">
<div id='graph' style="position: relative; font-family: Helvetica"></div>
<div id="top_fixed" style="position: fixed; top: 10px; left: 10px">
<form autocomplete="off" onsubmit="return false" style="overflow: auto;">
<div class="autocomplete" style="float: left; margin-right: 10px">
<input title="Enter method information to generate a new node or focus a currently shown node"
type="text" name="searchClass" id="searchInput" placeholder="Find Method" spellcheck="false">
</div>
<input title="Click to generate your entered node and to focus currently shown nodes" type="submit"
id="search" value="Find" onclick="createGraph()" disabled>
</form>
<button title="Click to toggle between a detailed and an abstract view of all nodes" id="btn"
onclick="open_close(this.innerHTML)" style="margin-top: 10px">Hide Details</button>
<button title="Click to show the entire subgraph that can be reached from the currently shown nodes"
id="showWholeGraph" onclick="createWholeGraphContextmenu();" style="margin-top: 10px">Show
Subgraph</button>
<button title="Click to hide all nodes and edges"
id="hideWholeGraph" onclick="hideWholeGraph();" style="margin-top: 10px">Hide whole Graph</button>
</div>
<div id="bottom_fixed">
<div id="totalNodes">Total Nodes:
</div>
<div id="totalEdges">Total Edges:
</div>
<div id="generatedNodes">Generated Nodes:
</div>
<div id="currentVisibleNodes">Current Nodes: 0
</div>
<div id="currentVisibleEdges">Current Edges: 0
</div>
</div>
</div>
<script src="resources/JavaScript/global.js"></script>
<script src="resources/JavaScript/index.js"></script>
<script src="resources/JavaScript/refresh.js"></script>
<script src="resources/JavaScript/contextmenu.js"></script>
<script src="resources/JavaScript/jsonPars.js"></script>
<script src="resources/JavaScript/forceTree.js"></script>
<script src="resources/JavaScript/edges.js"></script>
<script src="resources/JavaScript/nodes.js"></script>
</body>
</html>