forked from maxg/handx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (118 loc) · 3.14 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example Handout</title>
</head>
<body>
<!-- optional: nav.table-of-contents becomes a table of contents -->
<nav class="table-of-contents"></nav>
<main>
<div class="markdown">
The page title is automatically added as a page heading.
The configured class and semester are added to the header, and the department is added to the footer.
Use a `div` with class `markdown` for [Markdown] conversion of body content.
[Markdown]: https://en.wikipedia.org/wiki/Markdown
## Section
Use `##` for sections.
### Subsection
Use `###` for subsections.
Use `####` if necessary.
**Bold**, *italic*, and `code` inline styles.
+ Bulleted lists
+ itemized with `+`
+ or `-`
+ or `*`
Definition
: a statement of the exact meaning of a word
list
: a number of connected items or names written or printed consecutively
0. Lists
0. within
0. lists
0. within
0. lists
⚠️
You must escape `<` characters.
Sorry.
⚠️
```java
// code block
public static void main(String[] args) {
System.out.println("Syntax-highlighted code");
}
// you still need to escape < characters
```
<pre>
Fixed-width block with **inline** *styles*.
</pre>
| simple tables | A | B | C |
|---------------|---|---|---|
| created with `\|`-and-`-` ASCII art | 1 | 2 | 3 |
<table>
<tr>
<td>
*Note:* Markdown conversion [recursively](https://en.wikipedia.org/wiki/Recursion) converts HTML elements.
</td>
<td class="no-markdown">
<p>Add class `no-markdown` to *prevent* conversion.</p>
</td>
<td>
Special handling for inline tags: <span>span</span>, <em>em</em>, <strong>strong</strong>, <code>code</code>, <sub>sub</sub>, <sup>sup</sup>.
</td>
</tr>
</table>
<div class="reading-exercises">
# Exercise 1
Exercises are in a `<div class="exercises">`.
Use `#` for exercise titles.
Highlight questions using `##`:
## What is the airspeed velocity of an unladen swallow?
[x] Checkboxes
[x] *with* **styles**
[ ] `and code`
( ) Radio buttons
(x) *with* **styles**
( ) `and code`
Use Markdown blockquote (`>`) for explanations.
> The answer is: 42.
---
# Exercise 2
Separate multiple exercises with a Markdown horizontal rule (`---`).
[x] OK
Dropdowns and text fields have normal and `code` versions:
[[ Drop, (down) ]]
[[` code, (correct()), incorrect), (incorrect, incorrect() `]]
= text field
= `code text field`
> Explanation with `inline_code` and a code block:
>
> ```java
> public void blockOfCode() { }
> ```
---
# Exercise 3
Text fields can also be checked against a regular expression:
= /regular expression|regexp?/ regex
= `/a +b +c/ a b c`
---
# Exercise 4 {.exercise-expand .exercise-no-iterate}
This exercise starts expanded, and its explanation is always revealed after the first attempt.
[x] Don't check me
> Fooled you!
</div>
## Another section
And so on, and so on.
</div>
<div class="with-content">
<h2>Yet another section</h2>
<p>
Use a <code>div</code> with class <code>with-content</code> for body content in HTML.
</p>
</div>
</main>
<!-- optional: footer containing © becomes a copyright message -->
<footer>©</footer>
<script src="../../web/handout/handout-page.js"></script>
</body>
</html>