Permalink
Browse files

Added students' latest work.

  • Loading branch information...
1 parent 5e1b22a commit 5eaa62cd99c9870280229381dda4ed7dbf0bf227 @danfinlay committed Sep 27, 2012
Showing with 1,018 additions and 235 deletions.
  1. +101 −101 001.html
  2. +102 −0 002.html
  3. +32 −0 002.js
  4. +111 −0 003.html
  5. +40 −0 003.js
  6. +31 −0 003_files/003.js
  7. +4 −0 003_files/jquery.js
  8. BIN 003_files/oaktest-logo.png
  9. +98 −0 005.html
  10. +36 −0 005.js
  11. +119 −0 006.html
  12. +47 −0 006.js
  13. +103 −0 008.html
  14. +31 −0 008.js
  15. +33 −31 browser.js
  16. BIN graph_7.gif
  17. +61 −61 index.html
  18. +8 −0 index.js
  19. +3 −3 jquery.js
  20. BIN oaktest-logo.png
  21. +58 −39 style.css
View
202 001.html 100644 → 100755
@@ -1,101 +1,101 @@
-<html>
-<head>
- <link rel="stylesheet" href="style.css">
-</head>
-<body>
- <div><center>
- <img src="oaktest-logo.png"></center>
- </div>
-
- <h1>order of operations</h1><br>
- <div class = "lesson">
- In the order of operations, you always multiply or divide numbers before
- you add or subtract them, ignoring the order they are written. See if you
- can solve these problems using that rule:
- </div>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">
- 4 + 2 * 3
- </span>
- = <input type="text" class="answer">
- </div>
- <input type="submit">
- </form>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">
- (2 + 8) + 8 * 2
- </span>
- = <input type="text" class="answer">
- </div>
- <input type="submit">
- </form>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">
- (2 + 8) + 8 * 2
- </span>
- = <input type="text" class="answer">
- </div>
- <input type="submit">
- </form>
-
- <div class = "lesson">
- When there are parentheses in a series of operations, you always solve the
- problems that are within parentheses first! See if you can find the right
- answers to these:
- </div>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">
- (2 + 8) + 8 * 2
- </span>
- = <input type="text" class="answer">
- </div>
- <input type="submit">
- </form>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">(8 * 2 + 3)- 18</span>
- = <input type="text" class="answer">
- </div>
-
- <div>
- <input type="submit">
- </div>
- </form>
-
- <form class="question">
- <div class = answerBox>
- <span class="q">
- 1+2
- </span> = <input type="text" class="answer">
- </div>
-
- <div>
- <input type="submit">
- </div>
- </form>
-
- <form class="question">
- <div class = answerBox>
- <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>
-</html>
+<html>
+<head>
+ <link rel="stylesheet" href="style.css">
+</head>
+<body>
+ <div><center>
+ <img src="oaktest-logo.png"></center>
+ </div>
+
+ <h1>order of operations</h1><br>
+ <div class = "lesson">
+ In the order of operations, you always multiply or divide numbers before
+ you add or subtract them, ignoring the order they are written. See if you
+ can solve these problems using that rule:
+ </div>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ 4 + 2 * 3
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ (2 + 8) + 8 * 2
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ (2 + 8) + 8 * 2
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <div class = "lesson">
+ When there are parentheses in a series of operations, you always solve the
+ problems that are within parentheses first! See if you can find the right
+ answers to these:
+ </div>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ (2 + 8) + 8 * 2
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">(8 * 2 + 3)- 18</span>
+ = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ 1+2
+ </span> = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <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>
+</html>
View
102 002.html
@@ -0,0 +1,102 @@
+<html>
+<head>
+ <link rel="stylesheet" href="style.css">
+</head>
+<body>
+ <div><center>
+ <img src="oaktest-logo.png"></center>
+ </div>
+
+ <h1>Numeric Opposites</h1><br>
+ <h2>by Lavelle Vinson</h2>
+ <div class = "lesson">
+ Students understand and use such operations as taking the opposite, finding the
+reciprocal, taking a root, and raising to a fractional power. They understand and
+use the rules of exponents.
+ </div>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -1 * 1
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -1 * 8
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -2 * 2
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <div class = "lesson">
+ When there are parentheses in a series of operations, you always solve the
+ problems that are within parentheses first! See if you can find the right
+ answers to these:
+ </div>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -11 * 2
+ </span>
+ = <input type="text" class="answer">
+ </div>
+ <input type="submit">
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">-6 * 12</span>
+ = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -5 * -5
+ </span> = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
+ <form class="question">
+ <div class = answerBox>
+ <span class="q">
+ -12 * -12
+ </span> = <input type="text" class="answer">
+ </div>
+
+ <div>
+ <input type="submit">
+ </div>
+ </form>
+
+ <script src="jquery.js"></script>
+ <script src="002.js"></script>
+</body>
+</html>
View
32 002.js
@@ -0,0 +1,32 @@
+var questions = $('.question');
+
+function createQuestion (n) {
+ var qn = $(questions[n]);
+ qn.hide();
+ qn.submit(function (ev) {
+ ev.preventDefault();
+ var theirAnswer = parseInt(qn.find('.answer').val());
+ console.log("Their answer:" + theirAnswer);
+ var rightAnswer = eval(qn.find('.q').text());
+ console.log("The right answer is: "+rightAnswer);
+ if (theirAnswer === rightAnswer){
+ qn.hide();
+ if (n === questions.length - 1) {
+ alert('All correct!');
+ window.location.href = "003.html";
+ }
+ else {
+ $(questions[n+1]).show();
+ }
+ }else{
+ alert("Try again!");
+ }
+ });
+}
+
+// loop over the questions from 0 through n, inclusive
+for (var i = 0; i < questions.length; i++) {
+ createQuestion(i);
+}
+
+$(questions[0]).show();
Oops, something went wrong.

0 comments on commit 5eaa62c

Please sign in to comment.