Permalink
Browse files

added a question, removed the hard-coded 6

  • Loading branch information...
1 parent 65f00a9 commit 3cefb119171ee6efdc05c0caf7cd71a95e2b90b0 @substack committed Jul 21, 2012
Showing with 14 additions and 2 deletions.
  1. +2 −2 browser.js
  2. +12 −0 index.html
View
@@ -23,8 +23,8 @@ function createQuestion (n) {
});
}
-// loop over the questions from 0 through 5, inclusive
-for (var i = 0; i < 6; i++) {
+// loop over the questions from 0 through n, inclusive
+for (var i = 0; i < questions.length; i++) {
createQuestion(i);
}
View
@@ -83,6 +83,18 @@
</div>
</form>
+ <form class="question">
+ <div>
+ <span class="q">
+ 3*4 + 2*5
+ </span> = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
<script src="jquery.js"></script>
<script src="browser.js"></script>
</body>

0 comments on commit 3cefb11

Please sign in to comment.