forked from asciidoctor/docgist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
268 lines (242 loc) · 11.6 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" href="favicon.ico">
<title>DocGist</title>
<script>
(function () {
var f = function () {
};
if (!window.console) {
window.console = {
log: f, info: f, warn: f, debug: f, error: f
};
}
}());
window.performance = (window.performance || {
'now': function now() {
return Date.now();
}
});
window.FIREBASE_URL = 'https://sweltering-fire-785.firebaseio.com/';
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.firebase.com/js/client/2.2.4/firebase.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/codemirror.min.js"></script>
<script src="//cdn.firebase.com/libs/firepad/1.2.0/firepad.min.js"></script>
<script src="js/asciidoctor-all.min.js"></script>
<script src="js/base64.js"></script>
<script src="js/gist.js"></script>
<script src="js/docgist.js"></script>
<!-- Bootstrap -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/codemirror.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/theme/neo.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/theme/elegant.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/theme/midnight.min.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/addon/runmode/runmode.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/addon/mode/loadmode.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/mode/meta.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/mode/cypher/cypher.min.js"></script>
<script src="js/codemirror-asciidoc.js"></script>
<script src="js/colorize.js"></script>
<script>
CodeMirror.modeURL = '//cdnjs.cloudflare.com/ajax/libs/codemirror/5.10.0/mode/%N/%N.min.js';
</script>
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/default.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/darkula.min.css" rel="stylesheet" class="dark">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/languages/asciidoc.min.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" rel="stylesheet">
<link href="//google-code-prettify.googlecode.com/svn/loader/skins/desert.css" rel="stylesheet" class="dark">
<script src="//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
<script src="js/uuid-1.4.7.js"></script>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400">
<link rel="stylesheet" href="style/asciidoctor.css" id="theme-stylesheet">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
ignoreClass: "nostem|nostem|nolatexmath"
},
asciimath2jax: {
delimiters: [["\\$", "\\$"]],
ignoreClass: "nostem|nostem|noasciimath"
},
Safe: {
allow: {
URLs: "safe",
classes: "safe",
cssIDs: "safe",
styles: "safe",
fontsize: "all",
require: "safe"
},
safeProtocols: {
http: true,
https: true,
file: false,
javascript: false
}
}
});
</script>
<script type="text/javascript"
src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.5.3/MathJax.js?config=TeX-MML-AM_HTMLorMML,Safe&delayStartupUntil=configured"></script>
<link rel="stylesheet" href="style/docgist-extra.css">
<body>
<nav id="main-menu" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu-items"
aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">
<i class="fa fa-pencil-square-o"></i> DocGist
</a>
</div>
<div class="collapse navbar-collapse" id="main-menu-items">
<ul class="nav navbar-nav" id="navbar-buttons">
<li class="dropdown" id="file-button">
<a class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#"
title="Create, edit, save and open documents">
<i class="fa fa-file-text-o"></i> File
<span class="caret"></span>
</a>
<ul class="dropdown-menu scrollable-menu" id="file-menu">
<li id="source-button" class="disabled">
<a id="gist-link" href="javascript:;" target="_blank"
title="See the source document rendered on this page">
<i class="fa fa-fw fa-file-text-o"></i> View source
</a>
</li>
<li><a id="new-empty" href="javascript:;">
<i class="fa fa-fw fa-file-o"></i> New empty document
</a></li>
<li><a id="new-copy" href="javascript:;">
<i class="fa fa-fw fa-files-o"></i> New copy of current document
</a></li>
<li class="disabled"><a id="save-button" href="javascript:;">
<i class="fa fa-fw fa-floppy-o"></i> <span>Save</span>
</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Recent documents</li>
</ul>
</li>
<li><a class="btn btn-default navbar-btn disabled" id="edit-button" href="javascript:;">
<i class="fa fa-fw fa-pencil"></i> Edit
</a></li>
<li class="dropdown" id="theme-button">
<a class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#"
title="Load theme stylesheet">
<i class="fa fa-paint-brush"></i> Theme
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="theme-menu">
</ul>
</li>
<li class="dropdown" id="highlighter-button">
<a class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#"
title="Choose syntax highlighter for source code">
<i class="fa fa-code"></i> Highlight
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="highlighter-menu">
</ul>
</li>
<li class="dropdown" id="attributes-button">
<a class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#"
title="Attributes to set or unset">
<i class="fa fa-cog"></i> Attributes
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="attributes-menu">
</ul>
</li>
<li class="dropdown">
<a class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#"
title="Share this page">
<i class="fa fa-share-alt"></i> Share
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a id="twitter-share" href="" target="_blank" data-toggle="tooltip" title="Tweet">
<i class="fa fa-fw fa-twitter-square"></i> Twitter
</a></li>
<li><a id="facebook-share" href="" target="_blank" data-toggle="tooltip"
title="Share link on Facebook">
<i class="fa fa-fw fa-facebook-square"></i> Facebook
</a></li>
<li><a id="google-plus-share" href="" target="_blank" data-toggle="tooltip"
title="Share link on Google+">
<i class="fa fa-fw fa-google-plus-square"></i> Google+
</a></li>
<li><a id="google-short-url-share" href="javascript:;" data-toggle="tooltip"
title="Get a short link to this page">
<i class="fa fa-fw fa-link"></i> Short URL
</a></li>
</ul>
</li>
<li>
<form class="navbar-form navbar-right">
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-link"></i>
</span>
<input type="text" class="span2 form-control" id="gist-id"
placeholder="GitHub Gist/File / Dropbox URL">
</div>
</form>
</li>
</ul>
</div>
</div>
</nav>
<div id="editor-wrapper">
<textarea id="editor" style="display: none;"></textarea>
</div>
<div id="content-wrapper">
<div id="content">
<img alt="loading" src="images/loading.gif" style="margin: 5em;">
</div>
</div>
<div id="footer">
<div id="footer-text"></div>
</div>
<div id="share-short-url-form" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>
<i class="fa fa-link"></i> Share
</h3>
</div>
<div class="modal-body">
<form>
<fieldset>
<label for="share-url">Copy and share the link!</label> <input class="form-control" type="text"
id="share-url" autofocus>
<label> <input type="checkbox" id="short-url-remove-header-footer">
Remove header and footer of the target page.
</label>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
</body>
</html>