forked from LudovicPatey/zooviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (141 loc) · 8.47 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Zoo Viewer 0.2</title>
<!-- Zoo Viewer 0.2
Developped by Ludovic Patey
Source code available at https://github.com/LudovicPatey/zooviewer
License : MIT
-->
<!-- Graph libraries -->
<script type="text/javascript" src="libs/svg-pan-zoom.min.js"></script>
<script type="text/javascript" src="libs/viz.js"></script>
<script type="text/javascript" src="libs/svg_mathjax.js"></script>
<script type="text/javascript" src="libs/canvg.min.js"></script>
<!-- Javascript framework -->
<link rel="stylesheet" type="text/css" media="screen,print" href="libs/jquery-ui-1.12.1/jquery-ui.min.css" />
<script type="text/javascript" src="libs/jquery-3.2.1.js"></script>
<script type="text/javascript" src="libs/jquery-ui-1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="libs/jquery.ui-contextmenu.min.js"></script>
<!-- Zoo viewer -->
<link rel="stylesheet" type="text/css" media="screen,print" href="styles/default.css" />
<script type="text/javascript" src="scripts/tools/tools.js"></script>
<script type="text/javascript" src="scripts/tools/patches.js"></script>
<script type="text/javascript" src="scripts/window/window.js"></script>
<script type="text/javascript" src="scripts/window/proofs.js"></script>
<script type="text/javascript" src="scripts/window/compare.js"></script>
<script type="text/javascript" src="scripts/zoo/zoo.js"></script>
<script type="text/javascript" src="scripts/zoo/graph.js"></script>
<script type="text/javascript" src="scripts/zoo/export.js"></script>
<script type="text/javascript" src="scripts/zoo/select.js"></script>
<script type="text/javascript" src="scripts/zoo/contextmenu.js"></script>
<script type="text/javascript" src="scripts/panel/panel.js"></script>
<script type="text/javascript" src="scripts/panel/diffs.js"></script>
<script type="text/javascript" src="scripts/panel/filter.js"></script>
<script type="text/javascript" src="scripts/panel/legend.js"></script>
<script type="text/javascript" src="scripts/panel/contextual.js"></script>
<!-- MathJax -->
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_SVG">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']]
},
SVG : {
mtextFontInherit: true
}
});
Zoo.init();
</script>
</head>
<body>
<div id="size"></div>
<div id="panel">
<fieldset id="zoo">
<legend>Zoo</legend>
<div>
<h3><label>Database</label></h3>
<p><select onchange="Zoo.load(this.value)">
<option default="default" value="data/menagerie.json">Computability menagerie</option>
<option value="data/rmzoo.json">Reverse mathematics</option>
<option value="data/e-verse.json">Enumeration degrees</option>
<option value="data/randomness.json">Randomness zoo</option>
<option value="custom">Load a custom zoo</option>
</options>
</select></p>
<p><input type="file" onchange="Zoo.loadLocal(this.files)" /></p>
<h3 class="local_modifications"><label>Local modifications</label></h3>
<p></p>
</div>
</fieldset>
<fieldset id="legend">
<legend>Legend</legend>
<div>
<div>
<h3><label>Edges</label></h3>
<p>Choose the kind of edge</p>
<p id="edge_function"><select onchange="Legend.changeEdgeKind(this.value)"></select></p>
<ul>
<li><input type="checkbox" checked="checked" disabled="disabled" /><div class="arrow impl"> </div> Non-strict implication</li>
<li><input type="checkbox" checked="checked" disabled="disabled" /><div class="arrow strictimpl"> </div> Strict implication</li>
<li><input type="checkbox" onclick="Graph.setOption('displayNonImplications', $(this).is(':checked'))" /><div class="arrow nonimpl"> </div> Non-implication</li>
<li><input type="checkbox" onclick="Graph.setOption('displayWeakOpenImplications', $(this).is(':checked'))" /><div class="arrow weakopen"> </div> Weak open implication</li>
<li><input type="checkbox" onclick="Graph.setOption('displayStrongOpenImplications', $(this).is(':checked'))" /><div class="arrow strongopen"> </div> Strong open implication</li>
</ul>
</div>
<div>
<h3><label>Nodes</label></h3>
<p>Choose the node coloring function</p>
<p id="coloring_function"><select onchange="Legend.changeColoring(this.value)"></select></p>
<ul>
</ul>
</div>
</div>
</fieldset>
<fieldset id="filter">
<legend>Filter</legend>
<div>
<div class="restrict_tags">
<h3><label><input type="checkbox" checked="checked"> Restrict to nodes tagged by any of</label></h3>
<div><p id="tags"></p>
<div style="clear:both; height: 7px;"> </div>
</div>
</div>
<div class="restrict_comparable">
<h3><label><input type="checkbox"> Restrict to nodes in between</label></h3>
<div>
<ul class="options">
<li><label class="provably_comparable"><input type="checkbox" checked="checked" /> Only provably in-between</label></li>
<!-- <li><label class="only_in_between"><input type="checkbox" checked="checked" /> Only nodes in-between</label></li> -->
</ul>
<ul class="nodes"></ul>
<p style="text-align: right"><input type="button" value="In between selected nodes" onclick="Filter.addToList(this)" /></p>
</div>
</div>
<div class="exclude_nodes">
<h3><label><input type="checkbox"> Exclude the following nodes</label></h3>
<div>
<ul class="nodes"></ul>
<p style="text-align: right"><input type="button" value="Exclude selected nodes" onclick="Filter.addToList(this)" /></p>
</div>
</div>
<p style="text-align: right"><input type="button" onclick="Filter.applyFilter()" value="Apply all the filters" /></p>
</div>
</fieldset>
<fieldset id="contextual">
<legend>Contextual</legend>
<div></div>
</fieldset>
</div>
<svg id="defs" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" xmlns:ev="http://www.w3.org/2001/xml-events" style="overflow: hidden; ">
<defs><pattern x="0" y="0" width="20" height="80" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<g><rect x="0" y="0" width="10" height="80"></rect></g><g><rect x="10" y="0" width="10" height="80"></rect></g></pattern></defs>
</svg>
<div id="graph"></div>
<div id="window">Hello</div>
<div id="block"> </div>
</body>
</html>