-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
245 lines (200 loc) · 8.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="alifstudio_data/img/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>ألف ستوديو 3</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta name="viewport" content="width=device-width" />
<!-- Bootstrap core CSS -->
<link href="alifstudio_data/css/bootstrap.min.css" rel="stylesheet" />
<!-- Bootstrap RTL core CSS -->
<link href="alifstudio_data/css/bootstrap-rtl.min.css" rel="stylesheet" />
<!-- Animation library for notifications -->
<link href="alifstudio_data/css/animate.min.css" rel="stylesheet" />
<!-- Light Bootstrap Table core CSS -->
<link href="alifstudio_data/css/light-bootstrap-dashboard.css" rel="stylesheet"/>
<!-- Light Bootstrap RTL Version CSS -->
<link href="alifstudio_data/css/light-bootstrap-dashboard-rtl.css" rel="stylesheet"/>
<!-- CSS for Demo Purpose, don't include it in your project -->
<link href="alifstudio_data/css/demo.css" rel="stylesheet" />
<!-- Fonts and icons -->
<link href="alifstudio_data/css/font-awesome.min.css" rel="stylesheet" />
<link
href="alifstudio_data/css/google_css.css"
rel="stylesheet"
type="text/css"
/>
<link
href="alifstudio_data/css/droidarabickufi.css"
rel="stylesheet"
type="text/css"
/>
<link href="alifstudio_data/css/pe-icon-7-stroke.css" rel="stylesheet" />
<link rel="stylesheet" href="alifstudio_data/dist/index.css">
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-color="green" data-image="alifstudio_data/img/sidebar-5.jpg">
<!--
Tip 1: you can change the color of the sidebar using: data-color="blue | azure | green | orange | red | purple"
Tip 2: you can also add an image using data-image tag
-->
<div class="sidebar-wrapper">
<div class="logo">
<a href="javascript:;" class="simple-text"> ألف ستوديو 3 </a>
</div>
<ul class="nav">
<li id="فتح">
<a href="javascript:;">
<i class="pe-7s-file"></i>
<p>فتح</p>
</a>
</li>
<li id="حفظ">
<a href="javascript:;">
<i class="pe-7s-pendrive"></i>
<p>حفظ</p>
</a>
</li>
<li id="ترجمة">
<a href="javascript:;">
<i class="pe-7s-angle-left-circle"></i>
<p>ترجمة</p>
</a>
</li>
<li class="active-pro">
<a href="javascript:;">
<i class="pe-7s-close-circle"></i>
<p id="خروج">خروج</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default navbar-fixed">
<div class="container-fluid">
<div class="navbar-header">
<button
type="button"
class="navbar-toggle"
data-toggle="collapse"
data-target="#navigation-example-2">
<span class="sr-only">XXXXXXXXX</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="javascript:;" id="id_filename">[File Name]</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li class="dropdown">
<a
href="javascript:;"
class="dropdown-toggle"
data-toggle="dropdown">
إعدادات
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="javascript:;">إعدادات 1</a></li>
<li><a href="javascript:;">إعدادات 2</a></li>
<li><a href="javascript:;">إعدادات 3</a></li>
<li class="divider"></li>
<li><a href="javascript:;">إعدادات 4</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="main-editor-container content" id="alifeditor">
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="pull-right">
<ul>
<li>
<a href="javascript:;" id="id_debug"></a>
</li>
</ul>
</nav>
<div style="flex-grow: 1;"></div>
<p class="copyright pull-left">ألف ستوديو 3 نسخة 1.0.0</p>
</div>
</footer>
</div>
</div>
<!-- Core JS Files -->
<!-- <script src="alifstudio_data/js/jquery-1.10.2.js" type="text/javascript"></script> -->
<script src="alifstudio_data/js/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="alifstudio_data/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Checkbox, Radio & Switch Plugins -->
<script src="alifstudio_data/js/bootstrap-checkbox-radio-switch.js"></script>
<!-- Charts Plugin -->
<!-- <script src="alifstudio_data/js/chartist.min.js"></script> -->
<!-- Notifications Plugin -->
<script src="alifstudio_data/js/bootstrap-notify.js"></script>
<!-- Google Maps Plugin -->
<!-- <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> -->
<!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
<script src="alifstudio_data/js/light-bootstrap-dashboard.js"></script>
<!-- Light Bootstrap Table DEMO methods -->
<!-- <script src="alifstudio_data/js/demo.js"></script> -->
<!-- WebUI Core ---------------------------------------------------->
<script>
document.addEventListener("DOMContentLoaded", function (event) {
if (typeof _webui_ws === "undefined") {
let webui_searchParams = new URLSearchParams(window.location.search);
if (webui_searchParams.has("webui")) {
let webui_url = webui_searchParams.get("webui");
var webui_elem = document.createElement("script");
webui_elem.async = true;
webui_elem.type = "text/javascript";
webui_elem.src = webui_url;
document.body.appendChild(webui_elem);
} else alert("Failed to get the WebUI Core link.");
}
});
// Callbacks
function webui_ready() {
// WebUI is ready
webui_debug(true);
}
</script>
<!-- ------------------------------------------------------------ -->
<script src="alifstudio_data/dist/index.js"></script>
<script>
var SyntaxCheckTimer = 0;
function alif_debug(message) {
document.getElementById("id_debug").innerHTML = '<strong>' + message + '</strong>';
}
function alif_set_file_name(name) {
document.getElementById("id_filename").innerHTML = name;
}
function alif_debug_json(debug_json) {
// Clean
ألف.نظف_من_الأخطاء();
document.getElementById("id_debug").innerHTML = '';
debug_json = debug_json.trim();
if(debug_json != ''){
const debug_r = JSON.parse(debug_json);
let msg = decodeURIComponent(escape(window.atob(debug_r.msg.trim())));
document.getElementById("id_debug").innerHTML = '<strong>السطر ' + debug_r.line + ':</strong> ' + msg;
ألف.خطأ(debug_r.line, msg);
}
}
function alif_code_OnChange() {
// CodeMirror OnChange event
webui_event("ثم_تغيير");
// Syntax check only
if (SyntaxCheckTimer)
window.clearTimeout(SyntaxCheckTimer);
SyntaxCheckTimer = window.setTimeout(function() { webui_event("فحص_الشيفرة"); }, 1500);
}
</script>
</body>
</html>