-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (65 loc) · 2.88 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
<!DOCTYPE html>
<html>
<head>
<title>InDiProv Frontend</title>
<link type="text/css" href="index.css" rel="stylesheet" />
<link type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="col-md-12">
<h1>Spoof Logging Data</h1>
Client: <input type="text" id="clientname"><br>
Session: <input type="text" id="sessionname">
<div class="col-md-12">
<div class="col-xs-12 col-sm-6 pull-left">
<h2>Post Vertex Log</h1>
Vertex type: <select id="verttype">
<option value="Agent">Agent</option>
<option value="Activity">Activity</option>
<option value="Entity">Entity</option>
</select><br>
Vertex name: <input type="text" id="vertname"><br>
Vertex start: <input type="text" id="vertstart"><br>
Vertex end: <input type="text" id="vertend"><br>
<button type="button" onclick="postVertex()">Submit</button>
</div>
<div class="col-xs-12 col-sm-6 pull-left">
<h2>Post Edge Log</h1>
Edge type: <select id="edgetype">
<option value="wasGeneratedBy">Entity wasGeneratedBy Activity</option>
<option value="wasDerivedFrom">Entity wasDerivedFrom Entity</option>
<option value="wasAttributedTo">Entity wasAttributedTo Agent</option>
<option value="used">Activity used Entity</option>
<option value="wasInformedBy">Activity wasInformedBy Activity</option>
<option value="wasAssociatedWith">Activity wasAssociatedWith Agent</option>
<option value="actedOnBehalfOf">Agent actedOnBehalfOf Agent</option>
</select><br>
First Vertex name: <input type="text" id="firstvertname"><br>
Second Vertex name: <input type="text" id="secondvertname"><br>
<button type="button" onclick="postEdge()">Submit</button>
</div>
</div>
</div>
<div class="col-md-12">
<h1>Query Activities</h1>
<div class="col-xs-12 col-sm-6 pull-left">
From timestamp: <input type="text" id="fromtimestamp"><br>
To timestamp: <input type="text" id="totimestamp"><br>
Group by: <select id="activitydim">
<option value="wasAssociatedWith">wasAssociatedWith Agent</option>
<option value="used">used Entity</option>
<option value="wasGeneratedBy">generated Entity</option>
</select><br>
<button type="button" onclick="refreshChart()">Draw Chart</button>
</div>
<div class="col-md-12" id="gantt-chart"></div>
</div>
</div>
<script src="node_modules/d3/build/d3.js"></script>
<script src="gantt-chart-d3.js"></script>
<script src="index.js"></script>
</body>
</html>