forked from Khan/khan-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddition_3.html
39 lines (38 loc) · 1.37 KB
/
addition_3.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
<!DOCTYPE html>
<html data-require="math graphie graphie-helpers-arithmetic">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Addition 3</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<var id="A_100">randRange( 1, 8 )*100</var>
<var id="A_10">randRange( 0, 7 )*10</var>
<var id="A_1">randRange ( 1, 9 )*1</var>
<var id="B_100" data-ensure="B_100+A_100<1000">randRange( 1, 8 )*100</var>
<var id="B_10" data-ensure="B_10+A_10<100">randRange( 0, 7 )*10</var>
<var id="B_1" data-ensure="B_1+A_1>=10">randRange ( 1, 9 )*1</var>
<var id="A">A_100+A_10+A_1</var>
<var id="B">B_100+B_10+B_1</var>
<var id="DUMMY">[]</var>
</div>
<div class="problems">
<div>
<div class="graphie" id="numbers">
graph.adder = new Adder( A, B );
graph.adder.show();
DUMMY = Array( graph.adder.getNumHints() );
</div>
<div class="solution" data-forms="integer"><var>A + B</var></div>
</div>
</div>
<div class="hints">
<div class="graphie" data-update="numbers" data-each="DUMMY as dummy">
graph.adder.showHint();
</div>
</div>
</div>
</body>
</html>