-
Notifications
You must be signed in to change notification settings - Fork 13
/
code-editor.html
323 lines (306 loc) · 13.6 KB
/
code-editor.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html>
<head>
<title>Detail Admin - Code Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- bootstrap -->
<link href="css/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />
<!-- libraries -->
<link href="css/lib/bootstrap-wysihtml5.css" type="text/css" rel="stylesheet" />
<link href="css/lib/uniform.default.css" type="text/css" rel="stylesheet" />
<link href="css/lib/select2.css" type="text/css" rel="stylesheet" />
<link href="css/lib/bootstrap.datepicker.css" type="text/css" rel="stylesheet" />
<link href="css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
<!-- global styles -->
<link rel="stylesheet" type="text/css" href="css/compiled/layout.css" />
<link rel="stylesheet" type="text/css" href="css/compiled/elements.css" />
<link rel="stylesheet" type="text/css" href="css/compiled/icons.css" />
<!-- this page specific styles -->
<link rel="stylesheet" type="text/css" href="css/compiled/code-editor.css" />
<!-- open sans font -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- navbar -->
<header class="navbar navbar-inverse" role="banner">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" id="menu-toggler">
<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="index.html"><img src="img/logo.png" alt="logo" /></a>
</div>
<ul class="nav navbar-nav pull-right hidden-xs">
<li class="hidden-xs hidden-sm">
<input class="search" type="text" />
</li>
<li class="notification-dropdown hidden-xs hidden-sm">
<a href="#" class="trigger">
<i class="icon-warning-sign"></i>
<span class="count">8</span>
</a>
<div class="pop-dialog">
<div class="pointer right">
<div class="arrow"></div>
<div class="arrow_border"></div>
</div>
<div class="body">
<a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
<div class="notifications">
<h3>You have 6 new notifications</h3>
<a href="#" class="item">
<i class="icon-signin"></i> New user registration
<span class="time"><i class="icon-time"></i> 13 min.</span>
</a>
<a href="#" class="item">
<i class="icon-signin"></i> New user registration
<span class="time"><i class="icon-time"></i> 18 min.</span>
</a>
<a href="#" class="item">
<i class="icon-envelope-alt"></i> New message from Alejandra
<span class="time"><i class="icon-time"></i> 28 min.</span>
</a>
<a href="#" class="item">
<i class="icon-signin"></i> New user registration
<span class="time"><i class="icon-time"></i> 49 min.</span>
</a>
<a href="#" class="item">
<i class="icon-download-alt"></i> New order placed
<span class="time"><i class="icon-time"></i> 1 day.</span>
</a>
<div class="footer">
<a href="#" class="logout">View all notifications</a>
</div>
</div>
</div>
</div>
</li>
<li class="notification-dropdown hidden-xs hidden-sm">
<a href="#" class="trigger">
<i class="icon-envelope"></i>
</a>
<div class="pop-dialog">
<div class="pointer right">
<div class="arrow"></div>
<div class="arrow_border"></div>
</div>
<div class="body">
<a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
<div class="messages">
<a href="#" class="item">
<img src="img/contact-img.png" class="display" alt="user" />
<div class="name">Alejandra Galván</div>
<div class="msg">
There are many variations of available, but the majority have suffered alterations.
</div>
<span class="time"><i class="icon-time"></i> 13 min.</span>
</a>
<a href="#" class="item">
<img src="img/contact-img2.png" class="display" alt="user" />
<div class="name">Alejandra Galván</div>
<div class="msg">
There are many variations of available, have suffered alterations.
</div>
<span class="time"><i class="icon-time"></i> 26 min.</span>
</a>
<a href="#" class="item last">
<img src="img/contact-img.png" class="display" alt="user" />
<div class="name">Alejandra Galván</div>
<div class="msg">
There are many variations of available, but the majority have suffered alterations.
</div>
<span class="time"><i class="icon-time"></i> 48 min.</span>
</a>
<div class="footer">
<a href="#" class="logout">View all messages</a>
</div>
</div>
</div>
</div>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle hidden-xs hidden-sm" data-toggle="dropdown">
Your account
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="personal-info.html">Personal info</a></li>
<li><a href="#">Account settings</a></li>
<li><a href="#">Billing</a></li>
<li><a href="#">Export your data</a></li>
<li><a href="#">Send feedback</a></li>
</ul>
</li>
<li class="settings hidden-xs hidden-sm">
<a href="personal-info.html" role="button">
<i class="icon-cog"></i>
</a>
</li>
<li class="settings hidden-xs hidden-sm">
<a href="signin.html" role="button">
<i class="icon-share-alt"></i>
</a>
</li>
</ul>
</header>
<!-- end navbar -->
<!-- sidebar -->
<div id="sidebar-nav">
<ul id="dashboard-menu">
<li>
<a href="index.html">
<i class="icon-home"></i>
<span>Home</span>
</a>
</li>
<li>
<a href="chart-showcase.html">
<i class="icon-signal"></i>
<span>Charts</span>
</a>
</li>
<li>
<a class="dropdown-toggle" href="#">
<i class="icon-group"></i>
<span>Users</span>
<i class="icon-chevron-down"></i>
</a>
<ul class="submenu">
<li><a href="user-list.html">User list</a></li>
<li><a href="new-user.html">New user form</a></li>
<li><a href="user-profile.html">User profile</a></li>
</ul>
</li>
<li>
<a class="dropdown-toggle" href="#">
<i class="icon-edit"></i>
<span>Forms</span>
<i class="icon-chevron-down"></i>
</a>
<ul class="submenu">
<li><a href="form-showcase.html">Form showcase</a></li>
<li><a href="form-wizard.html">Form wizard</a></li>
</ul>
</li>
<li>
<a href="gallery.html">
<i class="icon-picture"></i>
<span>Gallery</span>
</a>
</li>
<li>
<a href="calendar.html">
<i class="icon-calendar-empty"></i>
<span>Calendar</span>
</a>
</li>
<li>
<a class="dropdown-toggle" href="tables.html">
<i class="icon-th-large"></i>
<span>Tables</span>
<i class="icon-chevron-down"></i>
</a>
<ul class="submenu">
<li><a href="tables.html">Custom tables</a></li>
<li><a href="datatables.html">DataTables</a></li>
</ul>
</li>
<li>
<a class="dropdown-toggle ui-elements" href="#">
<i class="icon-code-fork"></i>
<span>UI Elements</span>
<i class="icon-chevron-down"></i>
</a>
<ul class="submenu">
<li><a href="ui-elements.html">UI Elements</a></li>
<li><a href="icons.html">Icons</a></li>
</ul>
</li>
<li>
<a href="personal-info.html">
<i class="icon-cog"></i>
<span>My Info</span>
</a>
</li>
<li class="active">
<a class="dropdown-toggle" href="#">
<div class="pointer">
<div class="arrow"></div>
<div class="arrow_border"></div>
</div>
<i class="icon-share-alt"></i>
<span>Extras</span>
<i class="icon-chevron-down"></i>
</a>
<ul class="active submenu">
<li><a href="code-editor.html" class="active">Code editor</a></li>
<li><a href="grids.html">Grids</a></li>
<li><a href="signin.html">Sign in</a></li>
<li><a href="signup.html">Sign up</a></li>
</ul>
</li>
</ul>
</div>
<!-- end sidebar -->
<!-- main container -->
<div class="content">
<!-- settings changer -->
<div class="skins-nav">
<a href="#" class="skin first_nav selected">
<span class="icon"></span><span class="text">Default</span>
</a>
<a href="#" class="skin second_nav" data-file="css/compiled/skins/dark.css">
<span class="icon"></span><span class="text">Dark skin</span>
</a>
</div>
<div id="pad-wrapper">
<div class="row editor-header">
<div class="col-md-12">
<h4>Ace Code Editor</h4>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="editor">/**
* In fact, you're looking at ACE right now. Go ahead and play with it!
*
* We are currently showing off the JavaScript mode. ACE has support for 45
* language modes and 24 color themes!
*/
function add(x, y) {
var resultString = "Hello, ACE! The result of your math is: ";
var result = x + y;
return resultString + result;
}
var addResult = add(3, 2);
console.log(addResult);
// build all tooltips from data-attributes
$("[data-toggle='tooltip']").each(function (index, el) {
$(el).tooltip({
placement: $(this).data("placement") || 'top'
});
});</div>
</div>
</div>
</div>
</div>
<!-- end main container -->
<!-- scripts for this page -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/theme.js"></script>
<script src="js/ace/ace.js" type="text/javascript"></script>
<script type="text/javascript">
var editor = ace.edit("editor");
// editor.setTheme("ace/theme/github");
editor.getSession().setMode("ace/mode/javascript");
</script>
</body>
</html>