-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
247 lines (226 loc) · 9.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Primary Meta Tags -->
<title>Code Editor — Preview, Edit , Upload and Download</title>
<meta name="title" content="Code Editor — Preview, Edit , Upload and Download">
<meta name="description"
content="Code Editor — Preview, Edit , Upload and Download - Hey Folks this is Simple Web Based Code Editor , No Need To use Nano or vim for your server now. Simply put it in the public Directory and enjoy.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="#">
<meta property="og:title" content="Code Editor — Preview, Edit , Upload and Download">
<meta property="og:description"
content="Code Editor — Preview, Edit , Upload and Download - Hey Folks this is Simple Web Based Code Editor , No Need To use Nano or vim for your server now. Simply put it in the public Directory and enjoy.">
<meta property="og:image" content="./src/images/CodeEditor.PNG">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="#">
<meta property="twitter:title" content="Code Editor — Preview, Edit , Upload and Download">
<meta property="twitter:description"
content="Code Editor — Preview, Edit , Upload and Download - Hey Folks this is Simple Web Based Code Editor , No Need To use Nano or vim for your server now. Simply put it in the public Directory and enjoy.">
<meta property="twitter:image" content="./src/images/CodeEditor.PNG">
<link rel="shortcut icon" href="./src/icons/icon-192x192.png" type="image/x-icon">
<link rel="icon" href="./src/icons/icon-192x192.png" type="image/x-icon">
<!-- These meta tags are Apple-specific, and set the web application to run in full-screen mode with a black status bar. Learn more at https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Code Editor — Preview, Edit , Upload and Download" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<!-- Imports the manifest to represent the web application. A web app must have a manifest to be a PWA. -->
<link rel="manifest" href="./manifest.json" />
<script src="https://code.jquery.com/jquery-3.6.3.min.js"
integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./src/css/style.css">
<link rel="stylesheet" href="./src/css/contextmenu.css">
<!-- <link rel="stylesheet" href="./src/css/photon.min.css"> -->
</head>
<body oncontextmenu="return false;">
<div class="container">
<div class="iframe">
<div>
<span>Terminal<span>
<button class="btn close-modal" id="close-shell">×</button>
</div>
<iframe src="./src/php/shell.php" frameborder="0" id='terminal' style="display: none;"></iframe>
</div>
<div class="save"><img src="./src/images/Actions-document-save-as-icon.png" alt=""></div>
<div class="alert">Message</div>
<div class="loader"><img src="./src/images/loading_simple.gif" alt=""></div>
<div class="menu"><img src="./src/images/icons8-menu-rounded-50.png" alt=""></div>
<div class="sidebar" id="sidebar">
</div>
<div>
<div class="tabs">
</div>
<div id="editor">
</div>
</div>
</div>
<!-- Modals -->
<div class="modal" id="modal1">
<div class="header">
<div class="title">Create Folder</div>
<button class="btn close-modal">×</button>
</div>
<div class="body">
<input type="text" name="" id="folder">
</div>
<div class="header">
<button class="btn" id="cfolder">Save</button>
</div>
</div>
<!-- Modal File Create -->
<div class="modal" id="modal2">
<div class="header">
<div class="title">Create File</div>
<button class="btn close-modal">×</button>
</div>
<div class="body">
<input type="text" name="" id="file">
</div>
<div class="header">
<button class="btn" id="cfile">Save</button>
</div>
</div>
<!-- Setting Modal -->
<div class="modal" id="setting_modal">
<div class="header">
<div class="title">Setting</div>
<button class="btn close-modal">×</button>
</div>
<div class="body">
<div>
<label for="fontSize">Text Editor FontSize : </label>
<select id="fontSize" value="12">
<option value="10px">10px</option>
<option value="12px">12px</option>
<option value="14px">14px</option>
<option value="16px">16px</option>
<option value="18px">18px</option>
<option value="20px">20px</option>
</select>
</div>
<br>
<div>
<label for="sfontSize">System FontSize : </label>
<select id="sfontSize" value="12">
<option value="10px">10px</option>
<option value="12px">12px</option>
<option value="14px">14px</option>
<option value="16px">16px</option>
<option value="18px">18px</option>
<option value="20px">20px</option>
</select>
</div>
<br>
<div>
<label for="sIconSize">System Icon Size : </label>
<select id="sIconSize">
<option value="20px">20px</option>
<option value="25px">25px</option>
<option value="30px">30px</option>
<option value="35px">35px</option>
</select>
</div>
<br>
<div>
<label for="Appthemes">App Theme : </label>
<select id="Appthemes" value="dark">
<option value="light">light</option>
<option value="dark">dark</option>
</select>
</div>
<br>
<hr>
<br>
<div>
<label for="cDir">Change Direcrtory Path</label>
<input type="text" id="cDir" width="70%">
<button class="btn" onclick="codeEditor.changeDirectory()">Change</button>
</div>
</div>
<div class="header">
<button class="btn" id="SettingSave">Save</button>
</div>
</div>
<!-- Modal File Rename -->
<div class="modal" id="modal3" >
<div class="header">
<div class="title">Rename</div>
<button class="btn close-modal">×</button>
</div>
<div class="body">
<input type="text" name="" id="fileRename">
</div>
<div class="header">
<button class="btn" id="fRename">Save</button>
</div>
</div>
<!--SideBar Item Context Menu -->
<ul class="context-menu menu2">
<li class="menu-item">
<a href="#" class="menu-btn" id="openFolder">
<i class="fa fa-folder-open"></i>
<span class="menu-text">Open</span>
</a>
</li>
<li class="menu-separator"></li>
<li class="menu-item" id="shareFolder">
<button type="button" class="menu-btn">
<i class="fa fa-link"></i>
<span class="menu-text" id="fshare">Download</span>
</button>
</li>
<li class="menu-item" id="rename" data-target="#modal3">
<button type="button" class="menu-btn">
<i class="fa fa-edit"></i>
<span class="menu-text" >Rename</span>
</button>
</li>
<li class="menu-item" id="folderDelete">
<button type="button" class="menu-btn">
<i class="fa fa-trash"></i>
<span class="menu-text">Delete</span>
</button>
</li>
</ul>
<!-- Opened File Context Menu -->
<!-- Folder Context Menu -->
<ul class="context-menu menu3">
<li class="menu-item">
<a href="#" class="menu-btn" >
<i class="fa fa-folder-open"></i>
<span class="menu-text">Close</span>
</a>
</li>
<li class="menu-separator"></li>
<li class="menu-item" id="shareFolder">
<button type="button" class="menu-btn">
<i class="fa fa-link"></i>
<span class="menu-text" >Copy Path</span>
</button>
</li>
<li class="menu-item" >
<button type="button" class="menu-btn">
<i class="fa fa-edit"></i>
<span class="menu-text" >File Size</span>
</button>
</li>
<li class="menu-item">
<button type="button" class="menu-btn">
<i class="fa fa-trash"></i>
<span class="menu-text">Properties</span>
</button>
</li>
</ul>
<script src="./src/js/offline.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ext-language_tools.min.js"></script>
<script src="./src/js/jquery.fcup.js"></script>
<script src="./src/js/longpress.min.js"></script>
<script src="./src/js/index.js" type="module"></script>
</body>
</html>