Skip to content
This repository
Newer
Older
100644 49 lines (46 sloc) 2.114 kb
c975e1ea » spicyj
2011-05-23 Subtraction 1
1 <!DOCTYPE html>
7041f1ba » jeresig
2013-04-23 Re-run the linter on the exercises.
2 <html data-require="math graphie graphie-helpers-arithmetic word-problems">
3 <head>
c6949fe0 » jeresig
2013-04-17 Running the clean-exercises.py script against the exercises.
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
f5737c10 » petercollingridge
2014-03-18 Addition exercises
5 <title>Subtract within 5</title>
ac1415e8 » spicyj
2014-03-05 Use requirejs for module loading
6 <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
c975e1ea » spicyj
2011-05-23 Subtraction 1
7 </head>
8 <body>
4e4cb9b1 » beneater
2012-04-10 lint: tabs->spaces and jQuery->$ for exercises
9 <div class="exercise">
f5737c10 » petercollingridge
2014-03-18 Addition exercises
10 <div class="vars">
11 <var id="A">randRange(2, 5)</var>
12 <var id="B">randRange(1, A - 1)</var>
13 </div>
c975e1ea » spicyj
2011-05-23 Subtraction 1
14
f5737c10 » petercollingridge
2014-03-18 Addition exercises
15 <div class="problems">
16 <div>
17 <div class="question">
18 <div class="graphie">
19 init({
20 range: [[0, 12], [-1, 1]]
21 });
93d08d14 » marcia
2011-07-06 Change subtraction 1 hints to count dots like addition 1
22
f5737c10 » petercollingridge
2014-03-18 Addition exercises
23 var equation = rand(2) === 0 ?
24 "\\Huge{\\blue{" + A + "} - \\red{" + B + "} = {?}}" :
25 "\\Huge{{?} = \\blue{" + A + "} - \\red{" + B + "}}"
662307ae » marcia
2011-06-10 Add number line helpers
26
f5737c10 » petercollingridge
2014-03-18 Addition exercises
27 label([0, 0], equation, "right");
28 </div>
4e4cb9b1 » beneater
2012-04-10 lint: tabs->spaces and jQuery->$ for exercises
29 </div>
f5737c10 » petercollingridge
2014-03-18 Addition exercises
30 <div class="solution" data-forms="integer"><var>A - B</var></div>
31 <div class="hints">
32 <div class="graphie" id="circles" style="float: left;">
33 drawCircles(A, BLUE);
34 </div>
35 <div class="graphie" data-update="circles">
36 crossOutCircles(A, B, RED);
37 </div>
38 <p style="clear: left;">
39 <span data-if="isSingular(A)">We began with <code>\blue{<var>A</var>}</code> dot and crossed out <code>\red{<var>B</var>}</code> of them.</span>
40 <span data-else="">We began with <code>\blue{<var>A</var>}</code> dots and crossed out <code>\red{<var>B</var>}</code> of them.</span>
41 </p>
42 <p data-if="isSingular(A - B)">We are left with <var>A - B</var> dot.</p>
43 <p data-else="">We are left with <var>A - B</var> dots.</p>
4e4cb9b1 » beneater
2012-04-10 lint: tabs->spaces and jQuery->$ for exercises
44 </div>
45 </div>
46 </div>
47 </div>
7041f1ba » jeresig
2013-04-23 Re-run the linter on the exercises.
48 </body>
49 </html>
Something went wrong with that request. Please try again.