Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 61 lines (58 sloc) 2.203 kB
cd252b2 @marcia Add exercise -- division 0.5
marcia authored
1 <!DOCTYPE html>
cde9e9f @jeresig Re-run the exercises through the updated cleaner.
jeresig authored
2 <html data-require="math graphie graphie-helpers-arithmetic">
3 <head>
0f0c630 @cbhl Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
113bddd @spicyj Update the title tags to match real display names
spicyj authored
5 <title>Basic division</title>
ac1415e @spicyj Use requirejs for module loading
spicyj authored
6 <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
cd252b2 @marcia Add exercise -- division 0.5
marcia authored
7 </head>
8 <body>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
9 <div class="exercise">
10 <div class="vars">
11 <var id="A">randRange( 1, 10 )</var>
12 <var id="B">randFromArray( [ 1, 2, 3, 5, 10 ] )</var>
13 <var id="C">A * B</var>
14 </div>
cd252b2 @marcia Add exercise -- division 0.5
marcia authored
15
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
16 <div class="problems">
17 <div>
2aa3ccc @alopatin Get rid of excessive whitespace due to graphies in hints.
alopatin authored
18 <div class="question">
3542fde @alopatin Things that aren't interactive shouldn't be orange
alopatin authored
19 <code>\Huge\blue{<var>C</var>}\div\green{<var>B</var>}=\pink{{?}}</code>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
20 </div>
0f0c630 @cbhl Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
21 <div class="solution" data-forms="integer"><var>A</var></div>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
22 </div>
23 </div>
24 <div class="hints">
2e12f20 @jeresig Run clean-exercises on the HTML exercises, fixing the entities inside…
jeresig authored
25 <div data-if="B > 1" data-unwrap="">
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
26 <div>
2aa3ccc @alopatin Get rid of excessive whitespace due to graphies in hints.
alopatin authored
27 <p>Draw <var>C</var> circles, with <var>B</var> to each row.</p>
28 <div class="graphie" id="numbers">
29 init({
30 range: [ [ -1, B ], [ -1, A ] ],
31 scale: [ 50, 50 ]
32 });
33
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
34 for ( var i = 0; i &lt; A; i++ ) {
35 drawRow( B, A - 1 - i, "#6495ED", B * i + 1 );
36 }
37 </div>
38 </div>
39 <div>
0f0c630 @cbhl Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
40 <div class="graphie" data-update="numbers">
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
41 style({
3542fde @alopatin Things that aren't interactive shouldn't be orange
alopatin authored
42 stroke: GREEN
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
43 });
44 for ( var i = 1; i &lt; A; i++ ) {
45 path ( [ [ - 0.5 , i - 0.5 ], [ B - 0.5 , i - 0.5 ] ]);
46 }
47 </div>
48 <p>How many rows are there?</p>
49 </div>
50 </div>
e9807ff @jeresig Clean up the exercise files using the new cleaning utility.
jeresig authored
51 <p data-else="">
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
52 Dividing any number by 1 equals itself.
53 </p>
2aa3ccc @alopatin Get rid of excessive whitespace due to graphies in hints.
alopatin authored
54 <div>
3542fde @alopatin Things that aren't interactive shouldn't be orange
alopatin authored
55 <code>\Huge\blue{<var>C</var>}\div\green{<var>B</var>}=\pink{<var>A</var>}</code>
4e4cb9b @beneater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
56 </div>
57 </div>
58 </div>
cde9e9f @jeresig Re-run the exercises through the updated cleaner.
jeresig authored
59 </body>
60 </html>
Something went wrong with that request. Please try again.