Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
283 lines (248 loc) · 11.1 KB
/
Copy pathindex.html
File metadata and controls
283 lines (248 loc) · 11.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Aione framework Code Playground</title>
<!-- online code editor, live preview, aione framework -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="identifier-url" content="https://aioneframework.com/" />
<meta name="title" content="Aione Framework Code Playground" />
<meta name="description" content="Aione framework code playground to edit html code and live preview the output to test responsive css framework" />
<meta name="abstract" content="Aione framework code playground to edit html code and live preview the output" />
<meta name="keywords" content="aione framework, editor, code, live, css, framework, css4, layout, playground, help" />
<meta name="author" content="OXO IT SOLUTIONS PRIVATE LIMITED" />
<meta name="revisit-after" content="10" />
<meta name="language" content="EN" />
<meta name="copyright" content="©2018 OXO IT SOLUTIONS PRIVATE LIMITED" />
<meta name="robots" content="All" />
<meta name="application-name" content="Aione Framework Code Playground">
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="https://aioneframework.com/assets/images/mstile-144x144.png" />
<meta name="msapplication-square70x70logo" content="https://aioneframework.com/assets/images/mstile-70x70.png" />
<meta name="msapplication-square150x150logo" content="https://aioneframework.com/assets/images/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="https://aioneframework.com/assets/images/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="https://aioneframework.com/assets/images/mstile-310x310.png" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="https://aioneframework.com/assets/images/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://aioneframework.com/assets/images/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://aioneframework.com/assets/images/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://aioneframework.com/assets/images/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="https://aioneframework.com/assets/images/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="https://aioneframework.com/assets/images/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="https://aioneframework.com/assets/images/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="https://aioneframework.com/assets/images/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="https://aioneframework.com/assets/images/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="https://aioneframework.com/assets/images/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="https://aioneframework.com/assets/images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="https://aioneframework.com/assets/images/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="https://aioneframework.com/assets/images/favicon-128.png" sizes="128x128" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.aioneframework.com/assets/css/aione.min.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:100,300,400">
<!-- Core-->
<script type="text/javascript" src="https://cdn.aioneframework.com/assets/js/vendor.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- <script type="text/javascript" src="https://cdn.aioneframework.com/assets/js/aione.min.js"></script> -->
<script src="http://manage.aioneframework.com/aioneframework/assets/js/aione.js"></script>
<!-- Google Analytics-->
<script type="text/javascript" src="https://aioneframework.com/assets/js/ga.js"></script>
<!-- Ace -->
<script type="text/javascript" src="ace/ace.js"></script>
<script type="text/javascript" src="assets/js/emmet.js"></script>
<script type="text/javascript" src="ace/ext-emmet.js"></script>
</head>
<body>
<div id="aione_wrapper" class="aione-wrapper layout-header-top aione-layout-wide aione-theme-arcane">
<div class="wrapper">
<div id="aione_header" class="aione-header light sticky">
<div class="wrapper">
<div class="ar aione-border-bottom pv-5">
<div class="ac l50 m50 s50">
<a href="https://aioneframework.com" target="_blank"><img src="https://aioneframework.com/assets/images/aione-framework-logo-small.png" class="aione-float-left" style="height:30px;padding-right:8px;"></a><h4 class="red m-0 font-weight-100 line-height-30">Playground</h4>
</div>
<div class="ac l50 m50 s50">
<!-- <a href="#" class="fullscreen"><i class="fa fa-arrows-alt"></i></a>
<a href="#" class="halfscreen"><i class="fa fa-close"></i></a> -->
<div class="aione-align-right mt-3 mr-25">
<a class="aione-button circle small mt-5 btn-bg white font-weight-400" href="https://darlic.com/create?utm_source=darlic-tools&utm_medium=button&utm_campaign=Create%20Free%20Website&utm_term=free-website&utm_content=Create%20your%20free%20website" target="_blank" title="Create Free Website">
<span class="icon"><i class="ion ion-md-add-circle-outline"></i></span>
<span class="text">Create Free Website</span>
</a>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div><!-- #aione-header -->
<div id="aione_main" class="aione-main fullwidth">
<div class="wrapper">
<div id="aione_content" class="aione-content ">
<div class="wrapper">
<div id="aione_page_content" class="aione-page-content m-0">
<div class="wrapper">
<div class="ar aione-play-wrapper panel-container">
<div class="ac l50 m50 s100 p-0 panel-left">
<div id="editor" class="editor"></div>
</div>
<div class="splitter">
</div>
<div class="ac l50 m50 s100 p-0 panel-right">
<div id="aione-output" class="preview"></div>
</div>
</div>
</div>
</div>
</div><!-- .wrapper -->
</div><!-- .aione-content -->
<div id="aione_copyright" class="aione-copyright light sticky">
<div class="wrapper aione-align-center font-weight-400 line-height-30">
©2018 <a href="http://oxosolutions.com" target="_blank" rel="noopener" title="OXO Solutions® is Registered TradeMark of OXO IT SOLUTIONS PVT. LTD.">OXO Solutions®</a> All rights reserved. Built with <span class="red">♥</span> and <a href="https://aioneframework.com" target="_blank" title="Homepage of Aione Framework Website"><span class="primary-color">Aione</span> <span class="secondary-color">Framework</span></a>.
</div><!-- .aione-row -->
</div><!-- .aione-copyright -->
</div><!-- .wrapper -->
</div>
</div>
</div>
<style type="text/css">
.page-container {
margin: 20px;
}
.btn-bg{
background-color: #168dc5;
}
/* horizontal panel*/
.panel-container {
height: calc( 100vh - 78px);
display: flex;
flex-direction: row;
border: 1px solid silver;
overflow: hidden;
/* avoid browser level touch actions */
xtouch-action: none;
}
.panel-left {
flex: 0 0 auto;
/* only manually resize */
padding: 10px;
width: 300px;
min-height: 200px;
min-width: 150px;
white-space: nowrap;
background: #838383;
color: white;
}
.splitter {
flex: 0 0 auto;
width: 10px;
background: url(https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/vsizegrip.png) center center no-repeat #535353;
min-height: 200px;
cursor: col-resize;
}
.panel-right {
flex: 1 1 auto;
/* resizable */
width: 100%;
min-height: 200px;
min-width: 200px;
background: #fff;
overflow-y: scroll;
}
.splitter-horizontal {
flex: 0 0 auto;
height: 18px;
background: url(https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/hsizegrip.png) center center no-repeat #535353;
cursor: row-resize;
}
.ace_scroller{
overflow-y: hidden;
overflow-x: hidden;
}
/*.aione-content {
position: absolute;
}
.aione-page-content {
margin: 0;
min-height: 580px;
}
.oxo-color{
color: #168dc5;
}
.oxo-color:hover{
color: #1570a6;
}
.primary-color{
color: #1570a6;
}
.secondary-color{
color: #414043;
}*/
.editor{
position: absolute;
top: 0;
bottom: 0;
left:0;
width: 100%;
border-right: 1px solid #e8e8e8
}
/*.preview{
position: absolute;
top: 0;
bottom: 0;
right:0;
width: 50%;
}*/
.ace_content{
background: linear-gradient( to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.05) );
background-size: 100% 28px;
}
</style>
<script>
$('.panel-left').resizable({
handleSelector: '.splitter',
resizeHeight: false
});
</script>
<script type="text/javascript">
if(window.closed){
alert("hello");
}
//require.config({paths: { "ace" : "../lib/ace"}});
//require("ace/ext/emmet");
var editor = ace.edit("editor");
//editor.setValue($('#'+value).val());
editor.setTheme("ace/theme/chrome");
editor.getSession().setMode("ace/mode/html");
editor.setAutoScrollEditorIntoView(true);
editor.setShowPrintMargin(false);
editor.setOption("enableEmmet", true);
editor.setOption('enableBasicAutocompletion',true);
editor.setAutoScrollEditorIntoView(true);
editor.getSession().on("change", function () {
var code = editor.getSession().getValue().trim();
localStorage.setItem('code',code);
$('.preview').html(code);
});
$(document).ready(function() {
editor.focus();
//set value to ace editor
if(editor.getSession().getValue() != null){
var code = localStorage.getItem('code');
$('.preview').html(code);
}
editor.setValue(localStorage.getItem('code'));
//append the character cout and append html into output box
document.getElementById('editor').addEventListener('keyup',function(){
show_stats();
init_sliders();
});
});
//get the line no and total line with character count
function show_stats(){
var currline = editor.getSelectionRange().start.row;
var wholelinetxt = editor.getSession().getLine(currline);
var current_row_characters = wholelinetxt.toString().trim().length;
var data = editor.getSession().getValue().trim().length;
var totalLines = editor.getSession().getLength();
$('.editor-data').html('Line '+(currline+1)+' of '+totalLines+' ,Char '+current_row_characters);
}
</script>
</body>
</html>