This repository has been archived by the owner on May 9, 2021. It is now read-only.
forked from judge0/ide
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·293 lines (271 loc) · 17.2 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Realtime Collaborative Code IDE">
<meta property="og:description" content="A proof-of-concept realtime collaborative IDE with code execution and input/output.">
<meta property="og:image" content="https://raw.githubusercontent.com/judge0/ide/master/.github/wallpaper.png">
<script
src="https://browser.sentry-cdn.com/5.27.3/bundle.tracing.min.js"
integrity="sha384-L3tHj4nHK/1p8GjYGsCd8gVcdnsl8Gx4GbI0xwa76GI9O5Igwsd9RxET9DJRVAhP"
crossorigin="anonymous"
></script>
<script>
Sentry.init({
dsn: 'https://[email protected]/5508372',
integrations: [
new Sentry.Integrations.BrowserTracing(),
],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/goldenlayout.min.js" integrity="sha256-NhJAZDfGgv4PiB+GVlSrPdh3uc75XXYSM4su8hgTchI=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/css/goldenlayout-base.css" integrity="sha256-oIDR18yKFZtfjCJfDsJYpTBv1S9QmxYopeqw2dO96xM=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/css/goldenlayout-dark-theme.css" integrity="sha256-ygw8PvSDJJUGLf6Q9KIQsYR3mOmiQNlDaxMLDOx9xL0=" crossorigin="anonymous" />
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-analytics.js"></script>
<!-- <link rel="stylesheet" href="https://firepad.io/releases/v1.5.9/firepad.css" />-->
<script src="third_party/firepad.js"></script>
<script src="third_party/monaco-editor/min/vs/loader.js"></script>
<script>
require.config({
paths: {
"vs": "third_party/monaco-editor/min/vs",
"monaco-vim": "third_party/monaco-vim",
"monaco-emacs": "third_party/monaco-emacs"
}
})
</script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet">
<script type="text/javascript" src="third_party/download.js"></script>
<script type="text/javascript" src="js/layoutConfig.js"></script>
<script type="text/javascript" src="js/ide.js"></script>
<link type="text/css" rel="stylesheet" href="css/ide.css">
<title>Realtime Collaborative Online IDE</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<div id="site-navigation" class="ui small inverted menu">
<!-- <div id="site-header" class="header item">-->
<!-- <a href="/">-->
<!-- <img id="site-icon" src="./images/judge0_icon.png">-->
<!-- <h2>Judge0 IDE</h2>-->
<!-- </a>-->
<!-- </div>-->
<div class="left menu">
<div class="ui dropdown item site-links on-hover">
File <i class="dropdown icon"></i>
<div class="menu">
<a class="item" target="_blank" href="/"><i class="file code icon"></i> New File</a>
<!-- <div class="item" onclick="save()"><i class="save icon"></i> Save (Ctrl + S)</div>-->
<div class="item" onclick="downloadSource()"><i class="download icon"></i> Download</div>
<!-- <div class="item"><i class="share icon"></i> Share</div> -->
<div id="insert-template-btn" class="item"><i class="file code outline icon"></i> Insert template
for current language</div>
</div>
</div>
<div class="link item" onclick="$('#site-settings').modal('show')"><i class="cog icon"></i> Settings</div>
<div class="item borderless" style="width: 235px">
<select id="select-language" class="ui inverted dropdown">
<!-- <option value="45" mode="UNKNOWN">Assembly (NASM 2.14.02)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="46" mode="shell">Bash (5.0.0)</option>-->
<!-- <option value="47" mode="UNKNOWN">Basic (FBC 1.07.1)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="75" mode="c">C (Clang 7.0.1)</option>-->
<!-- <option value="48" mode="c">C (GCC 7.4.0)</option>-->
<!-- <option value="49" mode="c">C (GCC 8.3.0)</option>-->
<!-- <option value="50" mode="c">C (GCC 9.2.0)</option>-->
<!-- <option value="51" mode="csharp">C# (Mono 6.6.0.161)</option>-->
<!-- <option value="76" mode="cpp">C++ (Clang 7.0.1)</option>-->
<!-- <option value="52" mode="cpp">C++ (GCC 7.4.0)</option>-->
<!-- <option value="53" mode="cpp">C++ (GCC 8.3.0)</option>-->
<option value="54" mode="cpp">C++ (GCC 9.2.0)</option>
<!-- <option value="86" mode="clojure">Clojure (1.10.1)</option>-->
<!-- <option value="77" mode="UNKNOWN">COBOL (GnuCOBOL 2.2)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="55" mode="UNKNOWN">Common Lisp (SBCL 2.0.0)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="56" mode="UNKNOWN">D (DMD 2.089.1)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="57" mode="UNKNOWN">Elixir (1.9.4)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="58" mode="UNKNOWN">Erlang (OTP 22.2)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="44" mode="plaintext">Executable</option>-->
<!-- <option value="87" mode="fsharp">F# (.NET Core SDK 3.1.202)</option>-->
<!-- <option value="59" mode="UNKNOWN">Fortran (GFortran 9.2.0)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="60" mode="go">Go (1.13.5)</option>-->
<!-- <option value="88" mode="UNKNOWN">Groovy (3.0.3)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="61" mode="UNKNOWN">Haskell (GHC 8.8.1)</option> <!– Unknown mode. Help needed. –>-->
<option value="62" mode="java">Java (OpenJDK 13.0.1)</option>
<!-- <option value="63" mode="javascript">JavaScript (Node.js 12.14.0)</option>-->
<!-- <option value="78" mode="kotlin">Kotlin (1.3.70)</option>-->
<!-- <option value="64" mode="lua">Lua (5.3.5)</option>-->
<!-- <option value="79" mode="objective-c">Objective-C (Clang 7.0.1)</option>-->
<!-- <option value="65" mode="UNKNOWN">OCaml (4.09.0)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="66" mode="UNKNOWN">Octave (5.1.0)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="67" mode="pascal">Pascal (FPC 3.0.4)</option>-->
<!-- <option value="85" mode="perl">Perl (5.28.1)</option>-->
<!-- <option value="68" mode="php">PHP (7.4.1)</option>-->
<!-- <option value="43" mode="plaintext">Plain Text</option>-->
<!-- <option value="69" mode="UNKNOWN">Prolog (GNU Prolog 1.4.5)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="70" mode="python">Python (2.7.17)</option>-->
<option value="71" mode="python">Python (3.8.1)</option>
<!-- <option value="80" mode="r">R (4.0.0)</option>-->
<!-- <option value="72" mode="ruby">Ruby (2.7.0)</option>-->
<!-- <option value="73" mode="rust">Rust (1.40.0)</option>-->
<!-- <option value="81" mode="UNKNOWN">Scala (2.13.2)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="82" mode="sql">SQL (SQLite 3.27.2)</option>-->
<!-- <option value="83" mode="swift">Swift (5.2.3)</option>-->
<!-- <option value="74" mode="typescript">TypeScript (3.7.4)</option>-->
<!-- <option value="84" mode="vb">Visual Basic.Net</option> <!– (vbnc 0.0.0.5943) –>-->
</select>
</div>
<div class="item fitted borderless wide screen only">
<div class="ui inverted transparent input">
<input id="compiler-options" type="text" placeholder="Compiler options"></input>
</div>
</div>
<div class="item borderless wide screen only">
<div class="ui inverted transparent input">
<input id="command-line-arguments" type="text" placeholder="Command line arguments"></input>
</div>
</div>
<div class="item no-left-padding borderless">
<button id="run-btn" class="ui primary labeled icon button"><i class="play icon"></i>Run (F9)</button>
</div>
<a href="https://ide.usaco.guide/" class="link item borderless">Try the New IDE!</a>
<!-- <div id="navigation-message" class="item borderless">-->
<!-- <span class="navigation-message-text"></span>-->
<!-- </div>-->
</div>
<!-- <div class="right menu">-->
<!--<!– <div id="updates" class="link item changelogfy-widget">–>-->
<!--<!– <i class="fitted bell icon"></i>–>-->
<!--<!– </div>–>-->
<!-- <div class="ui dropdown item site-links">-->
<!-- More-->
<!-- <i class="dropdown icon"></i>-->
<!-- <div class="menu">-->
<!-- <!– <a id="about" class="link item" target="_blank" href="https://judge0.com/about"><i class="info circle icon"></i> About</a> –>-->
<!-- <a id="about" class="link item" target="_blank" href="https://rapidapi.com/hermanzdosilovic/api/judge0"><i class="server icon"></i> API</a>-->
<!-- <div class="divider"></div>-->
<!-- <a class="item" target="_blank" href="https://www.patreon.com/hermanzdosilovic"><i-->
<!-- class="patreon icon"></i>-->
<!-- Become a Patron</a>-->
<!-- <a class="item" target="_blank" href="https://paypal.me/hermanzdosilovic"><i-->
<!-- class="paypal icon"></i>-->
<!-- Donate with PayPal</a>-->
<!-- <div class="divider"></div>-->
<!-- <a class="item" target="_blank" href="https://github.com/judge0/ide"><i class="github icon"></i>-->
<!-- View source-->
<!-- code on Github</a>-->
<!-- <a class="item" target="_blank" href="https://github.com/judge0/ide/issues/new"><i-->
<!-- class="exclamation circle icon"></i> Report an issue</a>-->
<!-- <div class="divider"></div>-->
<!-- <a class="item" target="_blank" href="https://forms.gle/p3KpGYSjxAbvGUft9"><i class="envelope icon"></i>-->
<!-- Subscribe-->
<!-- to Judge0 newsletter</a>-->
<!-- <a class="item" target="_blank" href="https://discord.gg/6dvxeA8"><i-->
<!-- class="discord icon"></i> Join a Discord server</a>-->
<!-- <div class="divider"></div>-->
<!-- <a class="item" target="_blank" href="mailto:[email protected]"><i-->
<!-- class="paper plane icon"></i>-->
<!-- Contact the author</a>-->
<!-- <a class="item" target="_blank" href="https://hermanz.dosilovic.com"><i class="user icon"></i> About-->
<!-- the-->
<!-- author</a>-->
<!-- <div class="divider"></div>-->
<!-- <a class="item" target="_blank"-->
<!-- href="https://www.reddit.com/submit?url=https%3A%2F%2Fide.judge0.com&title=Judge0%20IDE"-->
<!-- style="background-color: #ff4500 !important; color: white !important;"><i-->
<!-- class="reddit icon"></i> Share-->
<!-- on Reddit</a>-->
<!-- <a class="item" target="_blank"-->
<!-- href="https://twitter.com/intent/tweet?text=Judge0%20IDE&url=https%3A%2F%2Fide.judge0.com&via=hermanzvonimir"-->
<!-- style="background-color: #1da1f2 !important; color: white !important;"><i-->
<!-- class="twitter icon"></i>-->
<!-- Share on Twitter</a>-->
<!-- <a class="item" target="_blank"-->
<!-- href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fide.judge0.com"-->
<!-- style="background-color: #1877f2 !important; color: white !important;"><i-->
<!-- class="facebook icon"></i>-->
<!-- Share on Facebook</a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</div>
<div id="site-content"></div>
<div id="site-modal" class="ui modal">
<div class="header">
<i class="close icon"></i>
<span id="title"></span>
</div>
<div class="scrolling content"></div>
<div class="actions">
<div class="ui small labeled icon cancel button">
<i class="remove icon"></i>
Close (ESC)
</div>
</div>
</div>
<div id="site-settings" class="ui modal">
<i class="close icon"></i>
<div class="header">
<i class="cog icon"></i>
Settings
</div>
<div class="content">
<div class="ui form">
<div class="inline fields">
<label>Editor Mode</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="editor-mode" value="normal" checked="checked">
<label>Normal</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="editor-mode" value="vim">
<label>Vim</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="editor-mode" value="emacs">
<label>Emacs</label>
</div>
</div>
</div>
<div class="inline field">
<div class="ui checkbox">
<input type="checkbox" name="redirect-output">
<label>Redirect stderr to stdout</label>
</div>
</div>
</div>
</div>
</div>
<div id="site-footer">
<span>v0.0.1.</span>
<!-- <span id="donate-line">-->
<!-- <a class="item" target="_blank" href="https://www.patreon.com/hermanzdosilovic"><i class="patreon icon" style="color: #f06553;"></i> Become a Patron</a>-->
<!-- ·-->
<!-- <a class="item" target="_blank" href="https://paypal.me/hermanzdosilovic"><i class="paypal icon" style="color: #00457c;"></i></i> Donate with PayPal</a>-->
<!-- </span>-->
<div id="editor-status-line"></div>
<span>Powered by <a href="https://rapidapi.com/hermanzdosilovic/api/judge0">Judge0</a> and <a href="https://firepad.io/">FirePad</a>
<span id="status-line"></span>
</div>
<!-- <script>-->
<!-- let CLF_config = {-->
<!-- selector: ".changelogfy-widget",-->
<!-- app_id: "f6f982d0-3d91-4b1c-a3ce-b0eb54606c4e"-->
<!-- };-->
<!-- </script>-->
<!-- <script async src="https://widget.changelogfy.com/index.js"></script>-->
</body>
</html>