forked from 1lann/Mimic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
233 lines (179 loc) · 6.59 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
<!DOCTYPE html>
<html>
<head>
<title>Mimic</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-139882744-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-139882744-1');
</script>
<script src="scripts/lib/prefixfree.min.js"></script>
<link rel="icon" href="https://www.computercraft.info/favicon.ico" type="image/gif" >
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/style.css" type="text/css"/>
</head>
<body oncontextmenu="return false;">
<div class="sidebar-container">
<ul class="sidebar"></ul>
</div>
<div class="computer-container">
<button id="exit-fullscreen" class="btn btn-default pull-right" style="display: none;">
Exit
</button>
<button id="actions-pull-down-btn" class="btn btn-default">
<span class="glyphicon glyphicon-chevron-down"></span>
</button>
<div id="actions-pull-down" class="btn-group-vertical" style="display: none;">
<button id="terminate-btn" class="btn btn-default">Terminate</button>
<button id="shutdown-btn" class="btn btn-default">Shutdown</button>
<button id="reboot-btn" class="btn btn-default">Reboot</button>
<a id="screenshot-btn" class="btn btn-default">Take Screenshot</a>
<button id="fullscreen-btn" class="btn btn-default">Enter Fullscreen</button>
<button data-toggle="modal" data-target="#cpudel-modal" class="btn btn-default">Delete Computer</button>
<button data-toggle="modal" data-target="#credits-modal" class="btn btn-default">Credits</button>
</div>
<form id="mobile-form">
<input id="mobile-input" type="password"/>
</form>
<canvas id="canvas" class="computer-canvas" tabindex='1'></canvas>
<canvas id="overlay-canvas" class="computer-canvas" tabindex='1'></canvas>
<div id="mobile-keyboard"></div>
</div>
<div class="editor-container" style="display: none;">
<div class="editor-header">
<h1 id="editor-title"></h1>
<p id="editor-file-path"></p>
<a id="download-file-btn" class="btn btn-default pull-right">Download</a>
<a id="delete-file-btn" class="btn btn-default pull-right">Delete</a>
</div>
<div id="editor"></div>
</div>
<div class="modal fade" id="credits-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×
</button>
<h3 class="modal-title">Credits</h3>
</div>
<div class="modal-body">
<p><strong>Made By</strong></p>
<p>GravityScore and 1lann</p>
<br>
<p><strong>Modified By</strong></p>
<p>
<span style="color:#FF0000;">Every</span><span style="color:#999999;">OS</span>
</p>
<br>
<p><strong>ComputerCraft By</strong></p>
<p>Dan200</p>
<br>
<p><strong>ComputerCraft:Tweaked By</strong></p>
<p>SquidDev</p>
<br>
<a href="https://github.com/jasonthekitten/Mimic" target="_blank">GitHub Repository</a><br>
</div>
</div>
</div>
</div>
<div class="modal fade" id="cpudel-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×
</button>
<h3 class="modal-title">Delete Computer?</h3>
</div>
<div class="modal-body">
<p>All data will be lost. It cannot be restored without a backup.</p>
<button id="delete-btn" class="btn btn-danger">Delete!</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="clipboard-permission-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×
</button>
<h3 class="modal-title">Please Enable Clipboard</h3>
</div>
<div class="modal-body">
<h3>It's not you... It's your browser!</h3>
<p>Your browser has disabled clipboard permissions. Please enable clipboard permissions.</p><br/>
<p>If a permission dialogue pops up, click allow, else:</p>
<ul>
<li>On Desktop Chrome, goto lock icon > Site settings > Clipboard > Allow</li>
<li>On Mobile Chrome, goto 3-dot icon > Settings > Site Settings > Clipboard > Ask (default)</li>
<li>If not using Chrome, please check your web browsers website for more info on how to enable the clipboard.</li>
</ul>
</div>
</div>
</div>
</div>
<div class="loader-container">
<div class="loader">
<div class="duo duo1">
<div class="dot dot-a"></div>
<div class="dot dot-b"></div>
</div>
<div class="duo duo2">
<div class="dot dot-a"></div>
<div class="dot dot-b"></div>
</div>
</div>
</div>
<noscript>
<div class="noscript-container">
<h3>Javascript is Disabled!</h3>
<p>You need Javascript to use Mimic!</p>
<p>Please enable it, or download a better browser.</p>
<a href="http://www.google.com/chrome">Get Google Chrome</a>
</div>
</noscript>
</body>
<script src="scripts/lib/jquery.min.js"></script>
<script src="scripts/lib/bootstrap.min.js"></script>
<script src="scripts/lib/ace/src-min-noconflict/ace.js" charset="utf-8"></script>
<script src="scripts/lib/Blob.js"></script>
<script src="scripts/lib/FileSaver.js"></script>
<script src="scripts/lib/CapsLock.compressed.js"></script>
<script src="scripts/ui/sidebar.js"></script>
<script src="scripts/ui/keyboard.js"></script>
<script src="scripts/ui/ui.js"></script>
<script src="scripts/lib/purl.js"></script>
<script src="scripts/lib/lua5.1.5.js"></script>
<script src="scripts/lib/browserfs.min.js"></script>
<script src="scripts/globals.js"></script>
<script src="scripts/code.js"></script>
<script src="scripts/core.js"></script>
<script src="scripts/computer.js"></script>
<script src="scripts/filesystem.js"></script>
<script src="scripts/render.js"></script>
<script src="scripts/event.js"></script>
<script src="scripts/apis/bit32.js"></script>
<script src="scripts/apis/fs.js"></script>
<script src="scripts/apis/http.js"></script>
<script src="scripts/apis/os.js"></script>
<script src="scripts/apis/peripheral.js"></script>
<script src="scripts/apis/redstone.js"></script>
<script src="scripts/apis/term.js"></script>
<script>
//
// Main Entry Point
//
window.onresize();
ui.beforeLoad();
$(document).ready(function() {
core.run();
});
</script>
</html>