Permalink
Browse files

adding final_answer style to final answers

  • Loading branch information...
1 parent 2a4d0c8 commit 2f417d3a58f9c26eb421ec9457e474cba141114b @mathiash mathiash committed Apr 13, 2012
@@ -52,12 +52,6 @@
</div>
<div class="example">a factored expression, like <b>(x+1)(x+3)</b></div>
</div>
-<!--
- <div class="solution" data-type="multiple">
- <p><span class="sol"><var>F</var></span>(<span class="sol"><var>A</var></span><code>x</code> - <span class="sol"><var>B</var></span>)(<span class="sol"><var>A</var></span><code>x</code> + <span class="sol"><var>B</var></span>)</p>
- <p class="example">enter a (possibly negative) integer for each input area.</p>
- </div>
--->
</div>
</div>
<div class="hints">
@@ -86,15 +86,19 @@
<p>or</p><p><code><var>parseFormat("(#{" + A + "}x^2+#{" + a + "}x)+(#{" + b + "}x+#{" + C + "})", [BLUE, GREEN, GREEN, ORANGE])</var></code></p>
<p>The next step is to factor both terms of the above expression:</p>
</div>
- <p>
- <code><var>format(HINT1, {del1factors:true, evalBasicNumOps:true})</var></code>
- </p>
- <p>
- Redistribute the common term to get the answer:
- </p>
- <p>
- <code><var>format(SOLUTION, simplifyOptions.basic, false, "large")</var></code>
- </p>
+ <div>
+ <p>
+ <code><var>format(HINT1, {del1factors:true, evalBasicNumOps:true})</var></code>
+ </p>
+ </div>
+ <div class="final_answer">
+ <p>
+ Redistribute the common term to get the answer:
+ </p>
+ <p>
+ <code><var>format(SOLUTION, simplifyOptions.basic, false, "large")</var></code>
+ </p>
+ </div>
</div>
</div>
</div>
@@ -178,10 +178,10 @@
var hintExpr = getFractionFromOccFactors(factors, newOccFactors, argsOccFactors);
if (KhanUtil.exprIdentical(newExpr, solExpr)) {
- steps.add("<p>There are no factors that can be simplified in this expression, so the answer is: <code>" + KhanUtil.format(solExpr) + "</code>");
+ steps.add("<p class='final_answer'>There are no factors that can be simplified in this expression, so the answer is: <code>" + KhanUtil.format(solExpr) + "</code>");
} else {
steps.add("<p>Applying the approach described above gives in this case:</p><p><code>" + KhanUtil.format(hintExpr) + "</code></p>");
- steps.add("<p>We obtain the following expression:</p><p><code>" + KhanUtil.format(solExpr) + "</code></p>");
+ steps.add("<p class='final_answer'>We obtain the following expression:</p><p><code>" + KhanUtil.format(solExpr) + "</code></p>");
}
var hints = KhanUtil.genHints(steps);
return {solution: solExpr, hints: hints, choices: choices};

0 comments on commit 2f417d3

Please sign in to comment.