-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
139 lines (133 loc) · 5.22 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
<!-- Copyright 2019-2024 ETH Zurich and the DaCe authors. All rights reserved. -->
<!DOCTYPE html>
<html lang="en" class="sdfv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SDFV: SDFG Viewer</title>
<script src="./external_lib/pdfkit.standalone.js"></script>
<script src="./external_lib/blob-stream.js"></script>
<script src="./external_lib/canvas2pdf.js"></script>
<script defer src="./dist/sdfv.js"></script>
</head>
<body class="sdfv">
<div class="w3-sidebar" style="display:none;right:0;" id="sidebar">
<div class="dragbar" id="dragbar"></div>
<div class="sidebar-inner">
<button id="menuclose" class="w3-sidebar-close">
Close ×
</button>
<h3 id="sidebar-header">
Nothing selected
</h3>
<div id="sidebar-contents"></div>
</div>
</div>
<div class="container-fluid" id="header-container">
<div class="row g-2 mb-2">
<div class="col-auto">
<input type="file" id="sdfg-file-input"
accept=".sdfg,.json,.sdfgz,.sdfg.gz"
class="form-control form-control-sm">
</div>
<div class="col-auto">
<button class="btn btn-sm btn-light" id="reload">
Refresh
</button>
</div>
<div class="col-auto">
<button class="btn btn-sm btn-light" id="outline">
SDFG Outline
</button>
</div>
<div class="col-auto">
<input type="file" accept=".json" id="instrumentation-report-file-input"
style="display: none;">
<button id="load-instrumentation-report-btn"
class="btn btn-sm btn-light"
disabled="disabled"
onclick="document.getElementById('instrumentation-report-file-input').click();">
Load Instrumentation Report
</button>
</div>
<div class="col-auto" id="diff-view-btn-container">
<input type="file"
accept=".sdfg,.json,.sdfgz,.sdfg.gz"
id="second-sdfg-file-input"
style="display: none;">
<button id="diff-view-btn"
disabled="disabled"
class="btn btn-sm btn-light"
onclick="document.getElementById('second-sdfg-file-input').click();">
Compare With Other SDFG
</button>
</div>
<div class="col-auto"
id="exit-diff-view-btn-container"
style="display: none;">
<button id="exit-diff-view-btn"
class="btn btn-sm btn-light">
Exit Comparison
</button>
</div>
</div>
<div class="row g-2">
<div class="col-auto">
<div class="input-group">
<input id="search" type="text" class="form-control form-control-sm"
placeholder="Search in graph elements">
<button id="search-btn" class="btn btn-sm btn-light">
Search
</button>
</div>
</div>
<div class="col-auto d-flex align-items-center">
<div class="form-check form-switch">
<input type="checkbox" id="search-case" class="form-check-input">
<label for="search-case" class="form-check-label">
Case Sensitive
</label>
</div>
</div>
<div class="col-auto">
<div class="dropdown">
<button class="btn btn-sm btn-light dropdown-toggle" type="button"
data-bs-toggle="dropdown">
Advanced Search
</button>
<form class="dropdown-menu p-1">
<textarea id="advsearch" style="font-family: monospace"
class="form-control mb-2">(graph, element) => {
// Create a predicate that returns true for a match
// For example, finding transient arrays below
if (element && element.data.node) {
let arrname = element.data.node.attributes.data;
if (arrname) {
let arr = element.sdfg.attributes._arrays[arrname];
if (arr && arr.attributes.transient)
return true;
}
}
return false;
};</textarea>
<button id="advsearch-btn" class="btn btn-light">
Search
</button>
</form>
</div>
</div>
<div class="col-auto d-flex align-items-center">
<div id="task-info-field">
</div>
</div>
</div>
</div>
<div id="contents"></div>
<div id="diff-container" style="display: none;">
<div id="diff-contents-A" class="diff-contents">
</div>
<div id="diff-contents-B" class="diff-contents">
</div>
</div>
</body>
</html>