Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

. Change square_roots to use sqrt symbol. . Use final_solution class …

…where appropriate. . Minor language tweak. . Reduce size of answer boxes for simplifying_radicals.html

Reviewers: eater

Reviewed By: eater

Differential Revision: http://phabricator.khanacademy.org/D416
  • Loading branch information...
commit a56412228b8c20b75abc86b3c6d06573ea9dff1a 1 parent 6ae91a2
@khirasaki khirasaki authored
View
6 css/khan-exercise.css
@@ -12,6 +12,11 @@ var { font-style: normal; }
.final_answer{ font-weight:bold; }
+/* Override MathJax's behavior of always using font-weight: normal.
+ * Instead, inherit the font-weight (which is bold for question/final_answer).
+ */
+.MathJax { font-weight:inherit !important; }
+
div.subhint {
border: 1px solid #aaaaaa;
background: #f9f9f9;
@@ -82,6 +87,7 @@ table.limit th:first-child { text-align: right; }
.radical .surd { font: 150% Arial; padding: 0 0 0 5px; }
.radical .overline { border-top: 1px solid #000; padding: 6px 1px 0 3px; margin-left: -1px; }
+#answer_area .radical input[type=text] { width: 30px; }
body.debug .graphie { outline: 1px dashed red; }
.graphie svg { position: absolute; top: 0; left: 0; }
View
10 exercises/cube_roots.html
@@ -48,7 +48,7 @@
circle( [cx + 1, y], 0.5);
</div>
- <p>So we found that the prime factorization of <code><var>Q</var></code> is <code><var>PRIMES.join( "\\times " )</var></code>.</p>
+ <p>So the prime factorization of <code><var>Q</var></code> is <code><var>PRIMES.join( "\\times " )</var></code>.</p>
</div>
<div class="problems">
@@ -60,19 +60,19 @@
<var id="curr">Q</var>
</div>
- <p class="question">What is the cube root of <code><var>Q</var></code>?</p>
+ <p class="question">What is <code>\sqrt[3]{<var>Q</var>}</code>?</p>
<p class="solution"><var>N</var></p>
<div class="hints" data-apply="prependContents">
<p>
- The cube root of <code><var>Q</var></code> is the number that, when
+ <code>\sqrt[3]{<var>Q</var>}</code> is the number that, when
multiplied by itself three times, equals <code><var>Q</var></code>.
</p>
</div>
<div class="hints" data-apply="appendContents">
- <p>We're looking for the cube root of <code><var>Q</var></code>, so we want to split the prime factors into three identical groups.</p>
+ <p>We're looking for <code>\sqrt[3]{<var>Q</var>}</code>, so we want to split the prime factors into three identical groups.</p>
<div data-if="PRIMES.length === 3" data-unwrap>
@@ -94,7 +94,7 @@
</div>
- <p>So the cube root of <code><var>Q</var></code> is <code><var>N</var></code>.</p>
+ <p class="final_answer">So <code>\sqrt[3]{<var>Q</var>}</code> is <code><var>N</var></code>.</p>
</div>
</div>
View
5 exercises/simplifying_radicals.html
@@ -4,11 +4,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Simplifying radicals</title>
<script src="../khan-exercise.js"></script>
- <style type="text/css">
- #answer_area input[type=text] {
- width: 30px;
- }
- </style>
</head>
<body>
<div class="exercise">
View
5 exercises/square_roots_2.html
@@ -3,11 +3,6 @@
<head>
<title>Square roots 2</title>
<script src="../khan-exercise.js"></script>
- <style type="text/css">
- #answer_area input[type=text] {
- width: 30px;
- }
- </style>
</head>
<body>
<div class="summary">Estimating square roots as between two roots
Please sign in to comment.
Something went wrong with that request. Please try again.