-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (144 loc) · 5.78 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>d3 Tree</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-select.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<!-- Bootstrap Nav Menu -->
<ul class="navbar-nav mr-auto">
<div class="navbar-header">
<a class="navbar-brand" href="#">d3 Tree</a>
</div>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="expand" id="expand_all_option" autocomplete="off" checked>Expand All
</label>
<label class="btn btn-secondary">
<input type="radio" name="expand" id="collapse_all_option" autocomplete="off">Collapse All
</label>
</div>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
<div class="btn-group btn-group-toggle node_selection_group" data-toggle="buttons" >
<label class="btn btn-secondary active">
<input type="checkbox" class="node_selection" name="node_selection[]" autocomplete="off" id="node_selection_streams" checked>Streams
</label>
<label class="btn btn-secondary active">
<input type="checkbox" class="node_selection" name="node_selection" autocomplete="off" id="node_selection_apps" checked>Apps
</label>
<label class="btn btn-secondary active">
<input type="checkbox" class="node_selection" name="node_selection" autocomplete="off" id="node_selection_sheets" checked>Sheets
</label>
</div>
<li class="nav-item">
<a class="nav-link" href="#"></a>
</li>
<li class="nav-item" data-toggle="tooltip" data-placement="bottom" title="Refresh Dataset">
<a class="btn btn-secondary" href="javascript:refresh()"><i class="fas fa-sync-alt"></i></a>
</li>
<li class="nav-item invisible" id="data_refreshed_message">
<span class="nav-link"><span style="font-weight:bold;color:#FFF;">Data refreshed!</span></span>
</li>
</ul>
<!-- Search Bootstrap Select -->
<div class="col-lg-5">
<select class="selectpicker" data-live-search="true" title="Find a Stream, App or Sheet" data-width="100%" data-size="10">
<optgroup label="Streams" id="select_streams">
</optgroup>
<optgroup label="Apps" id="select_apps">
</optgroup>
<optgroup label="Sheets" id="select_sheets">
</optgroup>
</select>
</div>
</nav>
<!-- Side Panel Modal -->
<div id="slider" class="side-panel " >
<span class="slider-title" id="sheet_name"></span><br/>
<span>Created at: </span><span id="created_at"></span><br/>
<span>Published on: </span><span id="published_on"></span><br/>
<span>Last Loaded: </span><span id="last_loaded"></span><br/>
<hr/>
<p style="font-weight: bold">Owner:</p>
<p id="owner"></p>
<p style="font-weight: bold">Application:</p>
<p id="app_name"></p>
<p style="font-weight: bold">Stream:</p>
<p id="stream_name"></p>
<hr/>
<span class="slider-title">Access:</span><br/>
<div style="position:absolute;
bottom: 0;
width: 96%;
margin-bottom: 10px;
">
<hr/>
<a href="" id="node_url" role="button" class="btn btn-primary" target="_new">Jump to</a>
<span class="slider-close"><button type="button" id="slider-close-button" class="btn btn-outline-dark">Close</button></span>
</div>
</div>
<!-- Loading Modal -->
<div id="loading_modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Refreshing dataset...</h5>
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button> -->
</div>
<div class="modal-body">
<p class="text-center"><img src="css/loading.gif" alt="Loading..."></p>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-primary">Save changes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div> -->
</div>
</div>
</div>
<div id="legend">
<table width="100%">
<tr>
<td class="" style="font-size: 20px">Root</td>
<td class="text-center"><div class="circle" style="background: #28a745"></div></td>
</tr>
<tr>
<td class="" style="font-size: 20px">Stream</td>
<td class="text-center"><div class="circle" style="background: #dc3545"></div></td>
</tr>
<tr>
<td class="" style="font-size: 20px">App</td>
<td class="text-center"><div class="circle" style="background: #007bff"></div></td>
</tr>
<tr>
<td class="" style="font-size: 20px">Sheet</td>
<td class="text-center"><div class="circle" style="background: #FFF; border-width: 2px; border-style: solid; border-color: #000;"></div></td>
</tr>
</table>
</div>
<!-- d3 Tree -->
<div id="render"></div>
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="js/jquery.slidereveal.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/index.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script>
$('#slider').slideReveal({
trigger: $("#slider-close-button"),
position: "right",
push: false,
overlay: true
});
</script>
</body>
</html>