blob: 31e383b584081c74b5078dbbe0df04d0fc41822a (
plain)
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
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="css/jquery/jquery.terminal.css" type="text/css">
<!-- CodeMirror -->
<link rel="stylesheet" href="css/codemirror/codemirror.css" type="text/css">
<link rel="stylesheet" href="css/codemirror/show-hint.css" type="text/css">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<!-- App -->
<link rel="stylesheet" href="css/codeq.css" type="text/css">
<link rel="stylesheet" href="css/codeq/console.css" type="text/css">
<link rel="stylesheet" href="css/codeq/hint.css" type="text/css">
<title>CodeQ</title>
</head>
<body>
<!-- the status bar at the top of each page -->
<div class="navbar navbar-inverse navbar-fixed-top" id="topbar">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" title="Intelligent tutor system">CodeQ</a>
<ul class="nav navbar-nav">
<li style="display: none;" id="navigation-login"><a href="">Login</a></li>
<li style="display: none;" id="navigation-language"><a href="">Language</a></li>
<li style="display: none;" id="navigation-problem"><a href="">Problem</a></li>
<li style="display: none;" id="navigation-python"><a href="">Python</a></li>
<li style="display: none;" id="navigation-prolog"><a href="">Prolog</a></li>
</ul>
<a class="navbar-brand" id="title"></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<p class="navbar-text" id="signed-in-title">Signed in as Franc Jožef</p>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
<span class="glyphicon glyphicon glyphicon-user"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li><a href="#">Login or Signup</a></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
<li><a href="#"><span class="glyphicon glyphicon glyphicon-wrench" aria-hidden="true"></span></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- login screen -->
<div id="screen_login" style="text-align: center;">
<h1>CodeQ Login</h1>
<hr>
<table style="margin: 0 auto;">
<tbody>
<tr>
<td style="text-align: right;">Username:</td>
<td><input type="text" name="username" id="username"></td>
</tr>
<tr>
<td style="text-align: right;">Password:</td>
<td><input type="password" name="password" id="password"></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<button type="button" id="submit">Login</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- main screen: programming language selection, settings, etc. -->
<div id="screen_language" style="text-align: center; display: none;">
<h1>CodeQ Select Language</h1>
<hr>
<br>
<a id="choose-prolog">Prolog</a><br>
<a id="choose-python">Python</a>
</div>
<!-- problem selection screen for a specific language: groups of problems, with descriptions -->
<div id="screen_problem" style="text-align: center; display: none;">
<h1>CodeQ Select Problem</h1>
<hr>
<table style="margin: 0 auto;">
<tbody>
<tr>
<td style="text-align: right;">Problem:</td>
<td>
<select name="problem_group" id="problem_group" style="min-width: 10em;">
</select>
<select name="problem" id="problems" style="min-width: 10em;">
</select>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<button type="button" id="submit_problem">Select</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- problem screen: prolog -->
<div class="container-fluid quadrants block1" id="screen_prolog" style="display: none;">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
<div class="description"></div>
<div class="block-label">Instructions</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block2">
<nav class="navbar navbar-default">
<div class="container-fluid">
<button type="button" class="btn btn-default navbar-btn btn-plan">Plan</button>
<button type="button" class="btn btn-default navbar-btn btn-hint">Hint</button>
<button type="button" class="btn btn-default navbar-btn btn-test">Test</button>
</div>
</nav>
<div class="code_editor"></div>
<div class="block-label">Code</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block3">
<div class="console"></div>
<div class="block-label">Console</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block4">
<div class="hints"></div>
<div class="block-label">Hints</div>
</div>
</div><!--/row-->
</div><!--container-->
<!-- problem screen: python -->
<div class="container-fluid quadrants block1" id="screen_python" style="display: none;">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
<div class="description"></div>
<div class="block-label">Instructions</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block2">
<nav class="navbar navbar-default">
<div class="container-fluid">
<button type="button" class="btn btn-default navbar-btn btn-plan">Plan</button>
<button type="button" class="btn btn-default navbar-btn btn-hint">Hint</button>
<button type="button" class="btn btn-default navbar-btn btn-test">Test</button>
<button type="button" class="btn btn-default navbar-btn btn-run">Run</button>
<button type="button" class="btn btn-default navbar-btn btn-stop">Stop</button>
</div>
</nav>
<div class="code_editor"></div>
<div class="block-label">Code</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block3">
<div class="console"></div>
<div class="block-label">Console</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 block block4">
<div class="hints"></div>
<div class="block-label">Hints</div>
</div>
</div><!--/row-->
</div><!--container-->
<!-- Covers the whole screen with a semi-transparent block, so no input events can be triggered below.
Used as a wait screen; must be the last element in the DOM.
It is active after load, javascript turns it off after initialization. -->
<div id="disabled" style="position: fixed; left: 0; right: 0; top: 0; bottom: 0; cursor: wait; background-color: rgba(0, 0, 0, 0.7);"></div>
<!-- jQuery stuff -->
<script src="js/jquery/jquery-1.11.3.js"></script>
<script src="js/engine.io.js"></script>
<script src="js/jquery/jquery.terminal-0.8.8.js"></script>
<script src="js/jquery/jquery.history.js"></script>
<!-- Q promise library -->
<script src="js/q.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap/bootstrap.min.js"></script>
<!-- Cordova/PhoneGap -->
<script type="text/javascript" src="cordova.js"></script>
<!-- CodeMirror stuff -->
<script src="js/codemirror/codemirror.js"></script>
<script src="js/codemirror/matchbrackets.js"></script>
<script src="js/codemirror/prolog.js"></script>
<script src="js/codemirror/python.js"></script>
<script src="js/codemirror/show-hint.js"></script>
<!-- codeq app -->
<script src="js/codeq/core.js"></script>
<script src="js/codeq/navigation.js"></script>
<script src="js/codeq/comms.js"></script>
<script src="js/codeq/console.js"></script>
<script src="js/codeq/hint.js"></script>
<script src="js/codeq/prolog.js"></script>
<script src="js/codeq/python.js"></script>
<script src="js/codeq/login.js"></script>
<script src="js/codeq/language.js"></script>
<script src="js/codeq/problem.js"></script>
</body>
</html>
|