Permalink
Browse files

added enhanced iteration over dictionaries (thanks to spicyj)

  • Loading branch information...
1 parent a34b678 commit 540cd8a810be4ddadfee9e5bc8ab4428485cb25d @drewbent committed Apr 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 exercises/converse_inverse_and_contrapositive.html
@@ -29,11 +29,11 @@
<p class="solution"><var>CHOICES[TYPE]</var></p>
<ul class="choices" data-show="4" data-none="true">
- <span data-each="['converse', 'inverse', 'contrapositive', 'other1', 'other2'] as key"><li><var>CHOICES[key]</var></li></span>
+ <span data-each="CHOICES as key, value"><li><var>value</var></li></span>
</ul>
</div>
- <div id="sun-and-hat" data-type="rain-and-soccer-practice">
+ <!--<div id="sun-and-hat" data-type="rain-and-soccer-practice">
<div class="vars">
<var id="CHOICES">{
"converse" : "If I need to wear a hat today, then the sun is bright outside.",
@@ -87,7 +87,7 @@
</div>
<p class="question">"Elephants eat peanuts."</p>
- </div>
+ </div>-->
<div id="equations-and-equations" data-type="rain-and-soccer-practice">
<p class="question">"If <code>3x+1=7</code>, then <code>x=2</code>."</p>

0 comments on commit 540cd8a

Please sign in to comment.