-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocumentation.html
More file actions
42 lines (38 loc) · 3.05 KB
/
Copy pathdocumentation.html
File metadata and controls
42 lines (38 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebGrader Help</title>
<link rel="stylesheet" href="css/webgrader.css">
<style>
.doc { max-width: 720px; margin: 2rem auto; padding: 0 1.25rem 3rem; line-height: 1.55; }
.doc h1 { font-size: 1.6rem; }
.doc h2 { font-size: 1.15rem; margin-top: 1.75rem; }
</style>
</head>
<body>
<div class="doc">
<h1>WebGrader Help</h1>
<p>WebGrader is an interactive browser autograder for introductory HTML (and later CSS and JavaScript).</p>
<h2>Learner workflow</h2>
<ol>
<li>Read the assignment prompt.</li>
<li>Edit the source in the editor tabs.</li>
<li>Press <strong>Run / Restart</strong> to load your page in the preview.</li>
<li>Interact with the preview if the assignment asks you to.</li>
<li>Press <strong>Grade</strong> to check your work and send a score.</li>
</ol>
<p>If you edit source after Running, <strong>Grade</strong> stays disabled until you Run again so the grader always sees the code you last previewed.</p>
<p>The <strong>Console</strong> panel shows <code>console.log</code> / warn / error output, uncaught JavaScript errors, and failed resource loads (<code><img></code>, scripts, etc.) from the preview. It clears on each Run / Restart. Messages from the surrounding Tsugi page or the browser Network panel are not mirrored here.</p>
<p>Some assignments also check that your HTML or CSS source validates (optional <code>html_validate</code> / <code>css_validate</code> tests), or run accessibility checks on the preview with axe-core (<code>axe_validate</code>). Fix any reported issues and Grade again.</p>
<h2>Instructors</h2>
<p>If the assignment includes a reference solution, instructors see a <strong>Load solution</strong> button in Learner view. It fills <em>editable</em> editors with the solution (readonly tabs are left alone) so you can Run and Grade it. Re-select the built-in from Settings (or use Import JSON) if an older placement copy is missing the <code>solution</code> field.</p>
<p>In <strong>Edit</strong> mode, assignment instructions use a rich text editor (CKEditor), same pattern as other Tsugi tools. Saved HTML is sanitized when shown to learners.</p>
<p>Use <strong>Export to Udemy</strong> in Edit to preview compatibility (per-test status, warnings, suggested repairs) and download a ZIP of starter / solution / Jasmine evaluation files for manual paste into a Udemy Web Development coding exercise. Not every WebGrader feature exports — see the compatibility panel.</p>
<h2>Reset and autosave</h2>
<p>Your source is autosaved for this placement. Use <strong>Reset to starter</strong> to discard your work and restore the assignment starter code.</p>
<h2>Security note</h2>
<p>Student pages run in a same-origin iframe so the grader can inspect the DOM. This is an educational environment, not a hostile-code sandbox. Infinite loops in student JavaScript can freeze the browser tab; use Run / Restart to rebuild the preview after fixing the code.</p>
</div>
</body>
</html>