forked from DoctorBud/graphviz-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (86 loc) · 2.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
<!doctype html>
<html ng-app="app" lang="en" ng-strict-di>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="shortcut icon" href="favicon.ico" />
<title>GraphvizViewer Demo</title>
<base href=".">
</head>
<body>
<div
class="container-fluid"
ng-controller="MainController as c">
<div class="row">
<div class="col-xs-12 col-md-3">
<div class="input-group input-group-sm">
<input
ng-model="c.ontology"
type="text"
class="form-control"
placeholder="Enter ontology (go, uberon, etc)"
aria-describedby="ontology-id">
<input
ng-model="c.classId"
type="text"
class="form-control"
placeholder="Enter ID of ontology class"
aria-describedby="import-class-id">
<span class="input-group-btn">
<button
type="button"
ng-disabled="c.classId.length === 0"
class="btn btn-success btn-xs btn-block"
ng-click="c.loadClass(c.classId, c.ontology)">
Display
</button>
</span>
</div>
</div>
</div>
<div class="row" ng-if="c.errorMessage">
<div class="col-xs-12">
<pre>{{c.errorMessage}}</pre>
</div>
</div>
<div class="row" ng-hide="!c.DOTSource">
<div class="col-xs-12">
<button
type="button"
class="btn btn-xs btn-default btn-block"
ng-model="c.showDOTSource"
uib-btn-checkbox xbtn-checkbox-true="1" xbtn-checkbox-false="0">
Source for <b>{{c.DOTTitle}}</b>
</button>
<div
class="pre-scrollable"
ng-if="c.showDOTSource">
<pre><code>{{c.DOTSource}}</code></pre>
</div>
</div>
</div>
<div class="row" ng-hide="!c.DOTSource">
<div class="col-xs-12">
<button
type="button"
class="btn btn-xs btn-default zoom-ul-button"
ng-click="c.zoomed = !c.zoomed">
<i class="glyphicon glyphicon-fullscreen"></i>
</button>
<div
ng-hide="!c.showDOTRender">
<div
id="DOTRender"
class="DOTRender"
ng-dblclick="c.zoomed = !c.zoomed"
ng-class="{zoom:c.zoomed}">
</div>
</div>
</div>
</div>
</div>
</body>
</html>