-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
234 lines (229 loc) · 9.94 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
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>
<script data-main="Main" src="import/jquery/require.min.js"></script>
<!--<script src="import/jquery/qunit-1.11.0.js"></script>
<script src="Tests.js"></script>-->
<link rel="stylesheet" type="text/css" href="styles/jquery-ui-1.9.2.custom.css">
<link rel="stylesheet" href="import/CodeMirror/lib/codemirror.css">
<link rel="stylesheet" href="import/CodeMirror/theme/default.css">
<link rel="stylesheet" type="text/css" href="styles/styles.css">
<link rel="stylesheet" type="text/css" href="styles/qunit-1.11.0.css">
<style type="text/css">
.CodeMirror-gutter {
width: 3em;
background: white;
}
.CodeMirror {
border: 1px solid #aaa;
}
.blockly-container {
width: 100%;
height: 500px;
}
</style>
<script id = "commandsListTemplate" type="text/x-jquery-tmpl">
<td>
<div id = "${divclass}${tab}" class = "${divclass} jstree-draggable" type = "${divclass}" rel = "${divclass}" title = "${divname}">
</div>
</td>
</script>
<script id = "toolbarButtonsTemplate" type="text/x-jquery-tmpl">
<button id = "btn_${btn}${tab}" name = "${btn}" title = "${title}">${btn}</button>
</script>
<script id = "tabTemplate" type="text/x-jquery-tmpl">
<table width = "100%">
<tr>
<th width="50%"></th>
<th></th>
<th width="250px"></th>
</tr>
<tr>
<td colspan = "3">
<div id = "title${tab}">
<b>{{html $item.data.title}}</b>
</div>
</td>
</tr>
<tr>
<td colspan = "3">
<div style = "border-style: dotted; border-color: #5F8EAD; border-width: 2px; min-height:16px">
<button id = "hideStatement${tab}" style = "float:right;"></button>
<div id = "statement${tab}" style="padding-left:5px;">
{{html $item.data.statement}}
</div>
</div>
</td>
</tr>
<tr>
<td valign = "top">
<div style = "border-style: dotted; border-color: #5F8EAD; border-width: 2px; height: 100%; min-height: 530px;">
<table width="100%">
<tr>
<td colspan = "2">
<form>
<input type = "radio" name = "group${tab}" id = "commandsMode${tab}" checked>Исполнитель
<input type = "radio" name = "group${tab}" id = "codeMode${tab}" >Python
</form>
</td>
</tr>
<tr>
<td id = "tdcommands${tab}">
<div class = "ul_commands" id = "ulCommands${tab}">
<table>
<tr>
</tr>
</table>
</div>
</td>
<td id = "tdcode${tab}">
<div id = "resizable${tab}">
<textarea id = "codearea${tab}" name = "codearea${tab}" class = "codearea"> </textarea>
</div>
</td>
</tr>
<tr>
<td id = "tdcontainer${tab}">
<iframe class="blockly-container" id="blockly-container-${tab}" src="blockly.html"></iframe>
</td>
<td>
<button id = "addWatch${tab}">Добавить наблюдение</button><br>
<table id = "watchTable${tab}" style = "background-color: #eeeeee; width: 400px"></table>
</td>
</tr>
<tr>
<td>
<button id = "btn_clear${tab}">Очистить список команд</button>
<button id = "submit${tab}">Отправить решение</button>
<button id = "loadCode${tab}">Вернуться к предыдущей версии</button>
</td>
</tr>
</table>
</div>
</td>
<td valign = "top">
<div style = "border-style: dotted; border-color: #5F8EAD; border-width: 2px; height: 100%">
<table width = "100%">
<tr>
<td>
Скорость исполнителя
<div id = "slider${tab}" style = "max-width: 270px;margin-left:5px;">
</div>
<br>
</td>
</tr>
<tr>
<td>
<div class="ui-widget-header ui-corner-all" style = "padding: 10px 4px; max-width: 270px">
<span>
{{tmpl($item.data.btns) "#toolbarButtonsTemplate"}}
{{if $item.data.maxCmdNum || $item.data.maxStep}}
<div id = "progressBar${tab}"></div>
<span>Затрачено {{if $item.data.maxCmdNum}} команд {{else}} шагов {{/if}}:</span>
<span id = "curStep${tab}">0</span>
из {{if $item.data.maxCmdNum}} ${maxCmdNum} {{else}} ${maxStep} {{/if}}
{{/if}}
</span>
</div>
</td>
</tr>
<tr>
<td id = "tdField${tab}"><div></div></td>
</tr>
</table>
</div>
</td>
<td valign = "top">
<div style = "border-style: dotted; border-color: #5F8EAD; border-width: 2px; height: 100%">
<pre id="cons${tab}" class="cons">
</div>
</td>
</tr>
</table>
</script>
</head>
<body>
<p id = "ver"></p>
<div id = "tabs">
<ul>
</ul>
</div>
<div id = "about" style="display: none">
<div id="accordion">
<h3><a href="#">О системе</a></h3>
<div>
<p>
Система разработана для проведения соревнований по информатике среди школьников младших классов.<br>
Перед участниками стоит задача набрать наибольшее количество очков, управляя передвижением
стрелочки по лабиринту и собирая бонусы на поле. <br>
</p>
</div>
<h3><a href="#">Редактирование списка команд</a></h3>
<div>
<p>
Для добавления выбранной команды, нужно перетащить ее из списка допустимых команд в поле
ввода команд на желаемую позицию.<br>
Двойной щелчок левой кнопки мыши по команде добавляет ее в конец списка команд.<br>
Количество повторений команды меняется нажатием на кнопку увеличения/уменьшения счетчика.<br>
Команда удаляется из списка, если ее вынести за границы списка команд.<br>
Также весь список очищает кнопка очистки списка команд.<br>
</p>
</div>
<h3><a href="#">Проигрывание команд</a></h3>
<div>
<p>
Кнопки проигрывания, паузы, остановки, перехода к следующей/предыдущей команде, перехода к
последней команде делают то, что непосредственно следует из названия.
</p>
</div>
<h3><a href="#">Описание лабиринта</a></h3>
<div>
<ul>
<li><b>Стрелочка</b> - бегает по лабиринту и собирает бонусы</li>
<li><b>Звездочка</b> - бонус, за него участник получает очки</li>
<li><b>Ящик</b> может быть перемещен в лабиринте по направлению движения героя, если этому
не мешают другие объекты (стена, монстр, дверь)</li>
<li><b>Дверь</b> - элемент, через который не может пройти ни один элемент лабиринта</li>
<li><b>Ключ</b> - убирает с поля все двери соответствующие данному ключу (соответствие дверей и ключей см. в каждой конкретной задаче) </li>
<li><b>Монстр</b> перемещается в лабиринте по заданной траектории, его передвижение может
быть блокировано ящиком. Если стрелочка попадает в одну клетку с монстром, считается,
что игрок проиграл. Продолжить решение задачи можно, нажав на кнопку остановки решения </li>
</ul>
</div>
<h3><a href="#">Отправка решения</a></h3>
<div>
<p>
Если участник считает, что решил задачу, он должен выбрать свое имя из списка пользователей
на первой вкладке, после этого нажать на кнопку отправки решения. Результаты тестирования
через некоторое время будут доступны во вкладке "Результаты". Таблица не обновляется автоматически,
для ее обновления нужно нажать соответствующую кнопку на вкладке с результатами.
Количество попыток не ограничено.
</p>
</div>
</div>
</div>
<div id="login-dialog" class="login-form" style="display: none">
<div id="login-error-message" style="display: none;" class="ui-state-error-text">
Ошибка авторизации. Проверьте корректность введенных данных.
</div>
<fieldset>
<label for="login">Имя пользователя</label>
<input type="text" name="login" id="login" class="text ui-widget-content ui-corner-all" />
</fieldset>
<fieldset>
<label for="password">Пароль</label>
<input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</div>
<div id="selectContest" title="Выберите турнир" style = 'display: none;'>
<div id = "contestsList">
</div>
</div>
<div id="addWatchDialog" style="display: none;">
<label for="name">Выражение</label>
<input type="text" name="name" id="watchName" class="text ui-widget-content ui-corner-all" />
</div>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>