forked from judge0/ide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·213 lines (193 loc) · 13.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Online code editor that allows you to write and execute code from a rich set of languages.">
<meta name="author" content="Herman Zvonimir Došilović">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Sunstone Online Code editor">
<meta property="og:description" content="Online code editor that allows you to write and execute code from a rich set of languages.">
<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>
var require = {
paths: {
"vs": "https://unpkg.com/monaco-editor/min/vs",
"monaco-vim": "https://unpkg.com/monaco-vim/dist/monaco-vim",
"monaco-emacs": "https://unpkg.com/monaco-emacs/dist/monaco-emacs"
}
};
</script>
<script src="https://unpkg.com/monaco-editor/min/vs/loader.js"></script>
<script src="https://unpkg.com/monaco-editor@0.32.1/min/vs/editor/editor.main.nls.js"></script>
<script src="https://unpkg.com/monaco-editor@0.32.1/min/vs/editor/editor.main.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js" integrity="sha256-t8GepnyPmw9t+foMh3mKNvcorqNHamSKtKRxxpUEgFI=" crossorigin="anonymous"></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/ide.js"></script>
<link type="text/css" rel="stylesheet" href="css/ide.css">
<title>Sunstone Code Editor</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="https://d1nu44pjiysgk4.cloudfront.net/placement/logo1665655782789.png" alt="logo">
</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="downloadSource()"><i class="download icon"></i> Download</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">
<select id="select-language" class="ui 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="1011" mode="UNKNOWN">Bosque (latest)</option> <!– Unknown mode. Help needed. –>-->
<!-- <option value="75" mode="c">C (Clang 7.0.1)</option>-->
<!-- <option value="1013" mode="c">C (Clang 9.0.1)</option>-->
<!-- <option value="1001" mode="c">C (Clang 10.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="71" mode="python">Python (3.8.1)</option>
<option value="70" mode="python">Python (2.7.17)</option>
<option value="63" mode="javascript">JavaScript (Node.js 12.14.0)</option>
<option value="50" mode="c">C (GCC 9.2.0)</option>
<option value="54" mode="cpp">C++ (GCC 9.2.0)</option>
<!-- <option value="51" mode="csharp">C# (Mono 6.6.0.161)</option>-->
<option value="1022" mode="csharp">C# (Mono 6.10.0.104)</option>
<!-- <option value="1021" mode="csharp">C# (.NET Core SDK 3.1.302)</option>-->
<!-- <option value="1023" mode="csharp">C# Test (.NET Core SDK 3.1.302, NUnit 3.12.0)</option>-->
<!-- <option value="76" mode="cpp">C++ (Clang 7.0.1)</option>-->
<!-- <option value="1014" mode="cpp">C++ (Clang 9.0.1)</option>-->
<!-- <option value="1002" mode="cpp">C++ (Clang 10.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="1015" mode="cpp">C++ Test (Clang 10.0.1, Google Test 1.8.1)</option>-->
<!-- <option value="1012" mode="cpp">C++ Test (GCC 8.4.0, Google Test 1.8.1)</option>-->
<!-- <option value="1003" mode="c">C3 (latest)</option> <!– Replacement mode. Help needed. –>-->
<!-- <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="1024" mode="fsharp">F# (.NET Core SDK 3.1.302)</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="1004" mode="java">Java (OpenJDK 14.0.1)</option>-->
<!-- <option value="1005" mode="java">Java Test (OpenJDK 14.0.1, JUnit Platform Console Standalone 1.6.2)</option>-->
<!-- <option value="78" mode="kotlin">Kotlin (1.3.70)</option>-->
<!-- <option value="64" mode="lua">Lua (5.3.5)</option>-->
<!-- <option value="1006" mode="c">MPI (OpenRTE 3.1.3) with C (GCC 8.3.0)</option>-->
<!-- <option value="1007" mode="cpp">MPI (OpenRTE 3.1.3) with C++ (GCC 8.3.0)</option>-->
<!-- <option value="1008" mode="python">MPI (OpenRTE 3.1.3) with Python (3.7.3)</option>-->
<!-- <option value="1009" mode="python">Nim (stable)</option> <!– Replacement mode. Help needed. –>-->
<!-- <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="1010" mode="python">Python for ML (3.7.3)</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 (vbnc 0.0.0.5943)</option> <!– (vbnc 0.0.0.5943) –>-->
</select>
</div>
<div class="item fitted borderless wide screen only">
<div class="ui input">
<input id="compiler-options" type="text" placeholder="Compiler options"></input>
</div>
</div>
<div class="item borderless wide screen only">
<div class="ui 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>
<div id="navigation-message" class="item borderless">
<span class="navigation-message-text"></span>
</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>
</div>
</div>
<!-- <div id="site-footer">
<div id="editor-status-line"></div>
<span>© 2016-2022 <a href="https://judge0.com?ref=ide">Judge0</a>
<span id="status-line"></span>
</div> -->
</body>
</html>