-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·102 lines (87 loc) · 4.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="js/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/bootstrap-toggle.min.css">
<script src="js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" href="css/googlefonts-exo2.css">
<link rel="stylesheet" href="css/codemirror.css">
<script src="js/codemirror.js"></script>
<script src="js/mode/simple.js"></script>
<script src="js/mode/clike.js"></script>
<script src="js/mode/javascript.js"></script>
<script src="js/mode/python.js"></script>
<link rel="stylesheet" href="css/addon/dialog.css">
<script src="js/addon/searchcursor.js"></script>
<script src="js/addon/search.js"></script>
<script src="js/addon/dialog.js"></script>
<script src="js/addon/matchbrackets.js"></script>
<script src="js/addon/closebrackets.js"></script>
<script src="js/keymap/vim.js"></script>
<link rel="stylesheet" href="css/ide.css">
<script src="js/ide.js"></script>
<title>CUST Online IDE</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">
CUST Online IDE
</a>
</div>
<ul class="nav navbar-nav navbar-left hidden-xs">
<li><a id="apiLink" target="_blank" href="http://oj.cust.edu.cn"><span class="glyphicon glyphicon-random" aria-hidden="true"></span></a></li>
<li><a id="apiLink" href="javascript:autoFormat()"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a></li>
</ul>
<div class="navbar-form navbar-right">
<div class="input-group">
<select class="form-control" id="selectLanguageBtn">
<option value="C" mode="text/x-csrc">C (gcc 5.4.0)</option>
<option value="C++" mode="text/x-c++src">C++ (g++ 5.4.0)</option>
<option value="Java" mode="text/x-java">Java (OpenJDK 1.8)</option>
<option value="Python3" mode="text/x-python">Python (3.5.3)</option>
<option value="Python2" mode="text/x-python">Python (2.7.9)</option>
<option value="JavaScript" mode="text/javascript">JavaScript (Node 8.16.1)</option>
<option value="Kotlin" mode="text/x-kotlin">Kotlin (Kotlin 1.3.50)</option>
<option value="Scala" mode="text/x-scala">Scala (Scala 2.13.0)</option>
</select>
</div>
<button class="btn btn-success" id="runBtn" data-loading-text="正在运行...">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span> 运行 (F9)
</button>
<div class="vertical-spacer"></div>
<input type="checkbox" id="vimCheckBox" data-toggle="toggle" data-on="Vim Editor" data-off="Normal Editor" data-onstyle="primary">
</div>
</div>
</nav>
<div id="sourceEditor"></div>
<div class="container-fluid">
<div class="row labels">
<div id="inputLabel" class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<h4>
<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> 输入 Input <small>可以粘贴样例到此处</small>
</h4>
</div>
<div id="outputLabel" class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<h4>
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 输出 Output <small id="emptyIndicator">暂无</small>
<small class="pull-right" id="statusLine"></small>
</h4>
</div>
</div>
<div class="row ioEditors">
<div id="inputEditor" class="col-xs-6 col-sm-6 col-md-6 col-lg-6"></div>
<div id="outputEditor" class="col-xs-6 col-sm-6 col-md-6 col-lg-6"></div>
</div>
</div>
</body>
</html>