Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Add simple arithmetic exercise. Example of how maintaining pos of sub…
Browse files Browse the repository at this point in the history
…bed elems would be nice
  • Loading branch information
Marcia Lee committed May 12, 2011
1 parent e83b654 commit 6bb1d1c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions exercises/arithmetic.html
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Simple arithmetic</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<!-- How about maintaining position of substituted elements? -->
<div id="vars">
<var id="A">rand(10)</var>
<var id="B">rand(10)</var>
</div>

<div id="problems">
<div class="problem" id="original">
<span class="t1"><var>A</var></span>
<span class="operator">+</span>
<span class="t2"><var>B</var> = ?</span>
<div class="solution"><var>A + B</var></div>
</div>

<div class="problem" data-type="original">
<span class="operator">-</span>
<div class="solution"><var>A - B</var></div>
</div>
</div>
</body>
</html>

0 comments on commit 6bb1d1c

Please sign in to comment.