-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproformaEditor.html
More file actions
221 lines (187 loc) · 9.93 KB
/
proformaEditor.html
File metadata and controls
221 lines (187 loc) · 9.93 KB
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
<!DOCTYPE html>
<html lang="en">
<!-- See the file js/editor.js for the version number of this software, its license etc -->
<head>
<meta charset="utf-8">
<title>ProFormA-Editor</title>
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/jquery.ui.theme.css ">
<link rel="stylesheet" href="css/codemirror.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jquery-ui.min.js"></script>
<!-- <script src="js/jquery.validate.js"></script> -->
<script src="js/util.js"></script>
<script src="js/config.js"></script>
<script src="js/java.js"></script>
<script src="js/file.js"></script>
<script src="js/modelsol.js"></script>
<script src="js/test.js"></script>
<script src="js/taskdata.js"></script>
<script src="js/task.js"></script>
<script src="js/dynamic-list.js"></script>
<script src="js/filereflist.js"></script>
<script src="js/editor.js"></script>
<script src="js/zip.js"></script>
<script src="js/zipper.js"></script>
<script src="js/mime-types.js"></script>
<script src="js/codemirror-compressed.js"></script>
<script src="js/closetag.js"></script>
<script src="js/loncapa.js"></script>
<script src="js/xmllint.js"></script>
</head>
<body>
<noscript><b>Javascript needs to be enabled for this website to work!</b></noscript>
<div class="pagecontainer">
<div id='task'>
<div id="tabs">
<ul>
<li id="main_tab"><a href="#tabs-1">Task</a></li>
<li id="ms_tab"><a href="#tabs-3">Submission</a></li>
<li id="test_tab"><a href="#tabs-4">Testsuite</a></li>
<li id="file_tab"><a href="#tabs-2">Files</a></li>
<!--<li id="debug_output"><a href="#tabs-Debug">Output</a></li>-->
<!-- <li id="FAQ"><a href="#tabs-6">FAQ</a></li>
<li id="manual"><a href="#tabs-5">Manual</a></li> -->
</ul>
<div id="tabs-1">
<div class='ui-widget ui-widget-content ui-corner-all' >
<h3 class='ui-widget-header'>Task</h3>
<p><label for='xml_title'>Title<span class='red'>*</span>: </label>
<input class='maxinput' id='xml_title'/>
</p>
<p><label for='xml_programming-language'>Programming Language:</label>
<select id='xml_programming-language'></select>
</p>
<p><span><label for='xml_description'>Description<span class='red'>*</span>: </label>
<textarea rows='8' cols='80' id='xml_description' name='xml_description'
title = 'What the students will see.'></textarea>
</span><br>
<label></label>
<iframe id=preview title="HTML Preview"></iframe>
</p>
<span id="multimediadropzone"><p><span id='multimediasection'></span></p></span>
<span id="downloaddropzone"><p></span><span id='downloadsection' ></span></p></span>
<span id="templatedropzone"><p></span><span id='templatesection' ></span></p></span>
<span id="visiblefiledropzone"><p></span><span id='visiblesection' ></span></p></span>
<!-- onfocus='this.rows=10;' onmouseout='this.rows=10;' -->
<p><label for='xml_lang'>Language: </label>
<select id='xml_lang'>
<option value='en'>English</option>
<option selected='selected' value='de'>German</option>
</select>
<label for='xml_uuid' style="display: none">UUID: </label>
<input class='mediuminput' id='xml_uuid' readonly style="display: none"/></p>
<span id="xml_task_internal_description"/>
</div>
<!-- programming language options are set with script!!! -->
<!-- <div class='ui-widget ui-widget-content ui-corner-all'>
<h3 class='ui-widget-header'>Programming language</h3>
<p><label for='xml_programming-language'>Name and version<span class='red'>*</span>: </label>
<select id='xml_programming-language'>
</select></p>
</div> -->
<span id='otherSoftware1'></span>
<span id='gradinghintsection'></span>
</div>
<div id="tabs-2" class="drop_zone">
<span id='filesection' ></span>
<p>
<button id='addFile' style="display: none">New file</button>
<button id='loadFile' style="display: none">Open file...</button>
<input class='xml_load_and_create_file' type='file' style='display:none' onchange='FileWrapper.onReadAndCreateFile(this)'/>
<!-- <span class='drop_zone_text'>Drop Your File(s) Here!</span>-->
</p>
</div>
<div id="tabs-3">
<span id='modelsolutionsection'></span>
<p><button id='addModelsol'>New model solution</button></p>
<div class='ui-widget ui-widget-content ui-corner-all'>
<h3 class='ui-widget-header'>Submission</h3>
<p><label>Skeleton Code for Editor</label>
<textarea id='code_template' rows='10' cols='80'></textarea>
</p>
<h3 class='ui-widget-header'>Restrictions</h3>
<p><button id="button_generate_restrictions">Generate from Model Solution #1</button></p>
<p><label>Maximum Size [B]</label>
<input class='shortinput' id='xml_submission_size'></input>
</p>
<p>
<div id="files_restriction"></div>
</p>
<input type='file' id='dummy_file_upload_button' style="display: none"/>
</div>
<div id="submission_preview">
<div class='ui-widget ui-widget-content ui-corner-all'>
<h3 class='ui-widget-header'>EXPERIMENTAL: Submission Preview</h3>
<p>
<label for='grader_uri'>Grader URI: </label>
<input class='mediuminput' id='grader_uri' value="http://"/>
<button id='submit_test'>Submit Model Solution #1</button>
</p>
<p>
<label>Result:</label>
<textarea id='submit_response' rows='20' cols='80'></textarea>
</p>
</div>
</div>
</div>
<div id="tabs-4">
<span id='testsection'></span>
<p>
<span id='testbuttons'></span>
<!-- buttons for adding a test are set with script!!! -->
</p>
</div>
</div> <!-- tabs -->
<div id='rightPanel' class="ui-corner-all">
<div class="ui-widget-header ui-corner-all"><h2>ProFormA-Editor</h2></div>
<div id='rightPanelButtonList' class="ui-widget-content ui-corner-all">
<!-- <p><button id='addGH'>Add grading hint</button></p> -->
<!-- <p><button id='addGH'>Add grading hint</button></p> -->
<!-- not needed for Praktomat -->
<br>
<p><button id=button_new onclick='var makesure =
window.confirm("All content will be deleted. Do you want to continue?");
if(makesure){location.reload();}' type='button'>New Task</button>
</p>
<p><button id="button_load">Open Task...</button></p>
<p><!-- Load TASK.XML from file or zip-->
<input id="upload_xml_file" type="file" onchange="uploadTaskFile(this);"/>
</p>
<p><button onclick='convertToXML(); zipme()' type='button' id='buttonZip'>Save zip file</button></p>
<!-- <br><br><a onclick='convertToXML(); downloadFile(this)' id='downloadOutput1'
download='task.xml'>Download TASK.XML</a> -->
<!-- <p><button id="button_save_xml">Save xml File</button>
</p> -->
<br>
<p><a href="doc/manual.html">Manual</a>
<a href="doc/faq.html">FAQ</a>
<a href="doc/beispiel.html">File Samples</a></p>
<p><a href="doc/contact.html">Contact</a></p>
<br>
<p><button id=reload_editor onclick='var makesure =
window.confirm("All content will be deleted. Do you want to continue?");
if(makesure){location.reload();}' type='button'>Reload Editor</button>
</p>
<p>
<br>
<div id="codeversion"></div>
<a href="" id="dummyAnchor" style="display:none">click here to download your file</a>
</p>
</div>
<div id="form-remarks">
<p>(All elements marked with <span class='red'>*</span> are required.)</p>
<p> </p>
</div>
</div> <!-- right panel -->
</div> <!-- task container -->
<div id="end-container" class='clear'></div> <!-- because of float -->
<p></p>
<!-- empty textarea is needed when an error-message is shown to avoid hiding other elements -->
<textarea id="empty" rows='4' style="border: none" readonly></textarea>
<p></p>
<textarea id="error-message" class="ui-state-error" rows='4' readonly>Error Console:</textarea>
</div> <!-- pagecontainer -->
</body>
</html>