Difference between revisions of "Team:Cambridge-JIC/Make Your Own"
m |
|||
Line 157: | Line 157: | ||
1: "No" | 1: "No" | ||
}); | }); | ||
− | + | step2 = new q.step("Do you need to image GFP fluorescence?", { | |
0: "Yes", | 0: "Yes", | ||
1: "No" | 1: "No" | ||
}); | }); | ||
− | + | step3 = new q.step("Do you need to image RFP fluorescence?", { | |
0: "Yes", | 0: "Yes", | ||
1: "No" | 1: "No" | ||
}); | }); | ||
− | + | step4 = new q.step("Do you need to image other fluorescent proteins, e.g. YFP?", { | |
0: "Yes", | 0: "Yes", | ||
1: "No" | 1: "No" | ||
}); | }); | ||
− | + | step5 = new q.step("Do you want your microscope to be manual, motorised, or will you need to swap between both?", { | |
0: "Manual only", | 0: "Manual only", | ||
1: "Motorised only", | 1: "Motorised only", | ||
2: "Both", | 2: "Both", | ||
}); | }); | ||
− | + | step6 = new q.step("Do you need your microscope to be fully battery-powered, e.g. for fieldwork?", { | |
0: "Yes", | 0: "Yes", | ||
1: "No" | 1: "No" | ||
Line 182: | Line 182: | ||
window.location.href="#CC0"; | window.location.href="#CC0"; | ||
ret = '<h3>Thanks!</h3><br/><table><tr><th>Number</th><th>Part</th><th>Cost (GBP)</th><th>STL file</th><th>SCAD file</th></tr>' | ret = '<h3>Thanks!</h3><br/><table><tr><th>Number</th><th>Part</th><th>Cost (GBP)</th><th>STL file</th><th>SCAD file</th></tr>' | ||
− | if(options[ | + | if(options[2] == 0) { |
ret += '<tr><td>1</td><td>epicube</td></tr>' | ret += '<tr><td>1</td><td>epicube</td></tr>' | ||
} else { | } else { | ||
Line 193: | Line 193: | ||
step0.bind(step1, [1]); | step0.bind(step1, [1]); | ||
− | step1.bind( | + | step1.bind(step2, [0]); |
− | step1.bind( | + | step1.bind(step2, [1]); |
− | + | step2.bind(step3, [0]); | |
− | + | step2.bind(step3, [1]); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
step3.bind(step4, [0]); | step3.bind(step4, [0]); | ||
step3.bind(step4, [1]); | step3.bind(step4, [1]); | ||
− | |||
− | step4.bind( | + | step4.bind(step5, [0]); |
− | step4.bind(final, [1]); | + | step4.bind(step5, [1]); |
+ | |||
+ | step5.bind(step6, [0]); | ||
+ | step5.bind(step6, [1]); | ||
+ | step5.bind(step6, [2]); | ||
+ | |||
+ | step6.bind(final, [0]); | ||
+ | step6.bind(final, [1]); | ||
q.start(step0); | q.start(step0); | ||
Line 234: | Line 234: | ||
<noscript>Enable JavaScript to be able to display the quiz properly.</noscript></div> | <noscript>Enable JavaScript to be able to display the quiz properly.</noscript></div> | ||
</section> | </section> | ||
− | |||
− | |||
</html> | </html> | ||
{{:Team:Cambridge-JIC/Templates/Footer}} | {{:Team:Cambridge-JIC/Templates/Footer}} |
Revision as of 16:30, 14 September 2015