Skip to content

Commit d4f4f2f

Browse files
Merge pull request #446 from ossf/lab_format_fixup3
Lab format fixup3
2 parents 63743f3 + 7a2de3e commit d4f4f2f

File tree

6 files changed

+24
-22
lines changed

6 files changed

+24
-22
lines changed

docs/labs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here are the labs available:
1515

1616
* [hello](hello.html) - simple "Hello, world!" demo
1717
* [input1](input1.html) - input validation (simple types)
18-
* [regex](regex1.html) - regular expressions (regexes)
18+
* [regex1](regex1.html) - regular expressions (regexes)
1919
* [input2](input2.html) - input validation (more complex situations)
2020
* [csp1](csp1.html) - Content Security Policy (CSP)
2121

@@ -46,7 +46,7 @@ mappings to existing labs or people who have agreed to work on one:
4646
* Input Validation: A Few Simple Data Types - [input1](input1.html)
4747
* Sidequest: Text, Unicode, and Locales
4848
* Validating Text
49-
* Introduction to Regular Expressions - [regex](regex1.html)
49+
* Introduction to Regular Expressions - [regex1](regex1.html)
5050
* Using Regular Expressions for Text Input Validation - [input2](input2.html)
5151
* Countering ReDoS Attacks on Regular Expressions - NEED
5252
* Input Validation: Beyond Numbers and Text

docs/labs/csp1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
410410
<button type="button" class="giveUpButton">Give up</button>
411411
<br><br>
412412
<p id="correctStamp" class="small">
413-
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
413+
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
414414
</textarea>
415415
</form>
416416
</div><!-- End GitHub pages formatting -->

docs/labs/hello.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
159159
<!--
160160
You can use this an example for new labs.
161161
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
162-
<textarea id="attempt" rows="2" cols="70">...</textarea>
162+
<textarea id="attempt" rows="2" cols="65">...</textarea>
163163
-->
164164
<form id="lab">
165165
<pre><code>
166-
<input id="attempt0" type="text" size="70" spellcheck="false"
166+
<input id="attempt0" type="text" size="65" spellcheck="false"
167167
value='console.log("Goodbye.");'>
168168
</code></pre>
169169
<button type="button" class="hintButton">Hint</button>
170170
<button type="button" class="resetButton">Reset</button>
171171
<button type="button" class="giveUpButton">Give up</button>
172172
<br><br>
173173
<p id="correctStamp" class="small">
174-
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
174+
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
175175
</textarea>
176176
</form>
177177

docs/labs/input1.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,19 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
200200
<!--
201201
You can use this an example for new labs.
202202
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
203-
<textarea id="attempt" rows="2" cols="70">...</textarea>
203+
<textarea id="attempt" rows="2" cols="65">...</textarea>
204204
-->
205205
<form id="lab">
206206
<pre></code>
207207
// Set up Express framework and express-validator library
208208
const express = require("express");
209209
const app = express();
210-
const { query, matchedData, validationResult } = require('express-validator');
210+
const { query, matchedData, validationResult } =
211+
require('express-validator');
211212

212-
// Implement requests such as http://localhost:3000/invoices?id=1
213+
// Implement requests, e.g., http://localhost:3000/invoices?id=1
213214
app.get('/invoices',
214-
<input id="attempt0" type="text" size="70" spellcheck="false"
215+
<input id="attempt0" type="text" size="65" spellcheck="false"
215216
value=" query('id'),">
216217
(req, res) =&gt; { // Execute this code if /invoices seen
217218
const result = validationResult(req); // Retrieve errors
@@ -227,7 +228,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
227228
<button type="button" class="giveUpButton">Give up</button>
228229
<br><br><!-- These go in the last form if there's more than one: -->
229230
<p id="correctStamp" class="small">
230-
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
231+
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
231232
</textarea>
232233
</form>
233234

docs/labs/input2.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,19 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
191191
<!--
192192
You can use this an example for new labs.
193193
For multi-line inputs, instead of <input id="attempt" type="text" ...>, use
194-
<textarea id="attempt" rows="2" cols="70">...</textarea>
194+
<textarea id="attempt" rows="2" cols="65">...</textarea>
195195
-->
196196
<form id="lab">
197197
<pre><code>
198198
// Set up Express framework and express-validator library
199199
const express = require("express");
200200
const app = express();
201-
const { query, matchedData, validationResult } = require('express-validator');
201+
const { query, matchedData, validationResult } =
202+
require('express-validator');
202203

203-
// Implement requests such as http://localhost:3000/parts?id=1
204+
// Implement requests, e.g., http://localhost:3000/parts?id=1
204205
app.get('/parts',
205-
<input id="attempt0" type="text" size="70" spellcheck="false"
206+
<input id="attempt0" type="text" size="65" spellcheck="false"
206207
value=" ,">
207208
(req, res) =&gt; { // Execute this code if /invoices seen
208209
const result = validationResult(req); // Retrieve errors
@@ -218,7 +219,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
218219
<button type="button" class="giveUpButton">Give up</button>
219220
<br><br>
220221
<p id="correctStamp" class="small">
221-
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
222+
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
222223
</textarea>
223224
</form>
224225

docs/labs/regex1.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h3>Part 1</h2>
351351
<!--
352352
You can use this an example for new labs.
353353
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
354-
<textarea id="attempt" rows="2" cols="70">...</textarea>
354+
<textarea id="attempt" rows="2" cols="65">...</textarea>
355355
-->
356356
<form id="lab1">
357357
<pre></code>
@@ -369,7 +369,7 @@ <h3>Part 2</h2>
369369
<!--
370370
You can use this an example for new labs.
371371
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
372-
<textarea id="attempt" rows="2" cols="70">...</textarea>
372+
<textarea id="attempt" rows="2" cols="65">...</textarea>
373373
-->
374374
<form id="lab2">
375375
<pre></code>
@@ -387,7 +387,7 @@ <h3>Part 3</h2>
387387
<!--
388388
You can use this an example for new labs.
389389
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
390-
<textarea id="attempt" rows="2" cols="70">...</textarea>
390+
<textarea id="attempt" rows="2" cols="65">...</textarea>
391391
-->
392392
<form id="lab3">
393393
<pre></code>
@@ -406,7 +406,7 @@ <h3>Part 4</h2>
406406
<!--
407407
You can use this an example for new labs.
408408
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
409-
<textarea id="attempt" rows="2" cols="70">...</textarea>
409+
<textarea id="attempt" rows="2" cols="65">...</textarea>
410410
-->
411411
<form id="lab4">
412412
<pre></code>
@@ -426,7 +426,7 @@ <h3>Part 5</h2>
426426
<!--
427427
You can use this an example for new labs.
428428
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
429-
<textarea id="attempt" rows="2" cols="70">...</textarea>
429+
<textarea id="attempt" rows="2" cols="65">...</textarea>
430430
-->
431431
<form id="lab5">
432432
<pre></code>
@@ -440,7 +440,7 @@ <h3>Part 5</h2>
440440

441441
<br><br><!-- These go in the last form if there's more than one: -->
442442
<p id="correctStamp" class="small">
443-
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
443+
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
444444
</textarea>
445445

446446
</div><!-- End GitHub pages formatting -->

0 commit comments

Comments
 (0)