Difference between revisions of "Team:Cambridge-JIC/Make Your Own"
Line 150: | Line 150: | ||
q = new quiz('#cam-quiz'); | q = new quiz('#cam-quiz'); | ||
− | step0 = new q.step(" | + | step0 = new q.step("Tell us which options you'd like for your microscope.", { |
− | 1: " | + | 1: "Okay!" |
}); | }); | ||
− | step1 = new q.step(" | + | step1 = new q.step("Besides bright-field, do you want dark-field imaging?", { |
− | 0: " | + | 0: "Yes", |
− | 1: " | + | 1: "No" |
}); | }); | ||
− | step2a = new q.step("Do you | + | step2a = new q.step("Do you need to image GFP fluorescence?", { |
− | 0: " | + | 0: "Yes", |
− | 1: " | + | 1: "No" |
}); | }); | ||
− | step2b = new q.step("Do you | + | step2b = new q.step("Do you need to image RFP fluorescence?", { |
− | 0: " | + | 0: "Yes", |
− | 1: " | + | 1: "No" |
}); | }); | ||
− | + | step2c = new q.step("Do you need to image other fluorescent proteins, e.g. YFP?", { | |
− | 0: " | + | 0: "Yes", |
− | 1: " | + | 1: "No" |
}); | }); | ||
− | + | step3 = new q.step("Do you want your microscope to be manual, motorised, or will you need to swap between both?", { | |
− | 0: " | + | 0: "Manual only", |
− | 1: " | + | 1: "Motorised only", |
+ | 2: "Both", | ||
}); | }); | ||
− | + | step4 = new q.step("Do you want the microscope to be fully battery-powered? This is ideal for field-work.", { | |
− | + | 0: "Yes", | |
− | + | 1: "No" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | 0: " | + | |
− | 1: " | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}); | }); | ||
− | + | final = function(options) { | |
window.location.href="#CC0"; | window.location.href="#CC0"; | ||
− | return $('<h3>').text(' | + | return $('<h3>').text('Thanks! '+options) |
} | } | ||
− | + | step0.bind(step1, [1]); | |
− | + | ||
− | + | ||
− | + | ||
− | + | step1.bind(step2a, [0]); | |
− | + | step1.bind(step2a, [1]); | |
− | + | ||
− | + | ||
− | + | step2a.bind(step2b, [0]); | |
− | + | step2a.bind(step2b, [1]); | |
− | + | ||
− | + | ||
− | + | step2b.bind(step2c, [0]); | |
− | + | step2b.bind(step2c, [1]); | |
− | + | ||
− | + | ||
− | + | step2c.bind(step3, [0]); | |
− | + | step2c.bind(step3, [1]); | |
− | + | ||
− | + | ||
− | + | step3.bind(step4, [0]); | |
− | + | step3.bind(step4, [1]); | |
− | + | step3.bind(step4, [2]); | |
− | + | ||
− | + | step4.bind(final, [0]); | |
− | + | step4.bind(final, [1]); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
q.start(step0); | q.start(step0); |
Revision as of 18:00, 13 September 2015