-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
148 lines (136 loc) · 4.42 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
<!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="btn-group btn-group-block" uib-dropdown keyboard-nav>
<button
id="simple-btn-keyboard-nav"
type="button"
class="btn btn-sm btn-primary btn-block"
uib-dropdown-toggle>
Examples <span class="caret"></span>
</button>
<ul
class="dropdown-menu btn-group-block"
uib-dropdown-menu
role="menu"
aria-labelledby="simple-btn-keyboard-nav">
<li ng-repeat="e in c.examples" role="menuitem">
<a ng-click="c.loadSource(e.file.default, e.title, e.url)" href="#">
{{e.title}}
</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-md-3">
<div
class="btn btn-primary btn-block btn-sm"
ngf-select="c.loadFile($files[0])"
ngf-multiple="false">
Select File
</div>
</div>
<div class="col-xs-12 col-md-3">
<div class="input-group input-group-sm">
<input
ng-model="c.importURL"
type="text"
class="form-control"
placeholder="Enter a URL to a graphviz file"
aria-describedby="import-url">
<span class="input-group-btn">
<button
type="button"
ng-disabled="c.importURL.length === 0"
class="btn btn-success btn-xs btn-block"
ng-click="c.loadURL(c.importURL)">
Load
</button>
</span>
</div>
</div>
<div class="col-xs-12 col-md-2">
<div
ngf-drop
ngf-select
ng-model="c.file"
class="drop-box"
ngf-drag-over-class="'dragover'"
ngf-multiple="false"
ngf-allow-dir="false"
accept="*"
ngf-pattern="'*'">
<i>Drop file here</i>
</div>
<div ngf-no-file-drop>
File Drag/Drop is not supported for this browser
</div>
</div>
<div class="col-xs-12 col-md-1">
<a
type="button"
href="https://github.com/DoctorBud/graphviz-viewer/blob/master/README.md"
target="_blank"
class="btn btn-sm btn-info btn-block">
<i class="glyphicon glyphicon-question-sign"></i>
</a>
</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>