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

Commit

Permalink
Small change to number line in one_step_inequalities
Browse files Browse the repository at this point in the history
  • Loading branch information
jpulgarin committed Aug 22, 2011
1 parent 9726b28 commit e6ef23d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions exercises/one_step_inequalities.html
Expand Up @@ -77,31 +77,34 @@

var offset;
var fill;
var startOffset = 0.12;
switch ( COMP_SOLUTION ) {
case ">":
fill = "#000000";
fill = null;
offset = 5;
break;
case "≥":
fill = "#6495ED";
offset = 5;
break;
case "<":
fill = "#000000";
fill = null;
offset = -5;
startOffset *= -1;
break;
case "≤":
fill = "#6495ED";
offset = -5;
startOffset *= -1;
break;
}

var x = SOLUTION_REAL - start;

style({ stroke: "#FFA500", fill: "#FFA500", strokeWidth: 3.5, arrows: "->" });
path([ [ x, 0 ], [ x + offset, 0 ]]);
path([ [ x + startOffset, 0 ], [ x + offset, 0 ]]);
style({ stroke: "#6495ED", fill: fill });
circle([ x, 0 ], 0.10 );
circle([ x, 0 ], 0.15 );
</div>
</div>
</div>
Expand Down

0 comments on commit e6ef23d

Please sign in to comment.