|
|
Line 3: |
Line 3: |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <link href="http://www.metu.edu.tr/~e172018/metu-bin-style.css" rel="stylesheet" type="text/css" /> | | <link href="http://www.metu.edu.tr/~e172018/metu-bin-style.css" rel="stylesheet" type="text/css" /> |
- | <script language="JavaScript">
| |
- |
| |
- | function get(form) {
| |
- | var score = 0;
| |
- |
| |
- | var ans1 = document.form.q1;
| |
- | var ans2 = document.form.q2;
| |
- | var ans3 = document.form.q3;
| |
- | var ans4 = document.form.q4;
| |
- | var ans5 = document.form.q5;
| |
- | var ans6 = document.form.q6;
| |
- | var ans7 = document.form.q7;
| |
- | var ans8 = document.form.q8;
| |
- | var ans9 = document.form.q9;
| |
- | var ans10 = document.form.q10;
| |
- | var ans11 = document.form.q11;
| |
- | var ans12 = document.form.q12;
| |
- | var ans13 = document.form.q13;
| |
- | var ans14 = document.form.q14;
| |
- | var ans15 = document.form.q15;
| |
| | | |
- |
| |
- |
| |
- | //Get values "0 means YES" "1 means No"
| |
- |
| |
- |
| |
- | if( ans1[1].checked )
| |
- | {score++;}
| |
- | if( ans2[0].checked )
| |
- | {score++;}
| |
- | if( ans3[1].checked )
| |
- | {score++;}
| |
- | if( ans4[1].checked )
| |
- | {score++;}
| |
- | if( ans5[1].checked )
| |
- | {score++;}
| |
- | if( ans6[0].checked )
| |
- | {score++;}
| |
- | if( ans7[1].checked )
| |
- | {score++;}
| |
- | if( ans8[0].checked )
| |
- | {score++;}
| |
- | if( ans9[1].checked )
| |
- | {score++;}
| |
- | if( ans10[0].checked )
| |
- | {score++;}
| |
- | if( ans11[1].checked )
| |
- | {score++;}
| |
- | if( ans12[0].checked )
| |
- | {score++;}
| |
- | if( ans13[1].checked )
| |
- | {score++;}
| |
- | if( ans14[0].checked )
| |
- | {score++;}
| |
- | if( ans15[0].checked )
| |
- | {score++;}
| |
- |
| |
- | //Determine the result
| |
- |
| |
- |
| |
- | if ( 0 <= score && score <= 5)
| |
- | {
| |
- | document.write("<html><head></head><body>");
| |
- | document.write("<div class=\"test\"><h1>Result</h1>");
| |
- | document.write("<p class=\"p\">Your score is " + score + ".</p>");
| |
- | document.write("<p class=\"p\">You are the worst in the lab working. ");
| |
- | document.write("You should read and apply safety rules immediately or ");
| |
- | document.write("you should have emergency phone numbers in your pocket.</p>");
| |
- | document.write("<p class=\"p\"><a href=\"https://2011.igem.org/Team:METU-Ankara/Safety\" target=\"_blank\">");
| |
- | document.write("Read Safety Rules</a></p>");
| |
- | document.write("<p class=\"p\"><a href=\"self-evaluation.html\">Back to Test</a></p>");
| |
- | document.write("</div></body></html>");
| |
- |
| |
- |
| |
- |
| |
- | }
| |
- |
| |
- | else if ( 5 < score && score <= 10)
| |
- | {
| |
- | document.write("<html><head></head><body>");
| |
- | document.write("<div class=\"test\"><h1>Result</h1>");
| |
- | document.write("<p class=\"p\">Your score is " + score + ".</p>");
| |
- | document.write("<p class=\"p\">You have more than enough self confidence but sometimes ");
| |
- | document.write("lab conditions don't care your trust and your ");
| |
- | document.write("experiments could fail unless you obey the safety rules.</p>");
| |
- | document.write("<p class=\"p\"><a href=\"self-evaluation.html\">Back to Test</a></p>");
| |
- | document.write("</div></body></html>");
| |
- | }
| |
- |
| |
- | else if ( 10 < score && score <= 15)
| |
- | {
| |
- | document.write("<html><head></head><body>");
| |
- | document.write("<div class=\"test\"><h1>Result</h1>");
| |
- | document.write("<p class=\"p\">Your score is " + score + ".</p>");
| |
- | document.write("<p class=\"p\">You are the number one! You are a really good lab worker. ");
| |
- | document.write("Every iGEM team needs you. ");
| |
- | document.write("With this safety conciousness, next year we will be waiting you. :)</p>");
| |
- | document.write("<p class=\"p\"><a href=\"self-evaluation.html\">Back to Test</a></p>");
| |
- | document.write("</div></body></html>");
| |
- | }
| |
- |
| |
- |
| |
- | }
| |
- |
| |
- | </script>
| |
| </head> | | </head> |
| | | |
Self-Evaluation Test: Safety
Hey, this test is prepared by the team, who we collaborate, METU-Ankara, and coded by one of the members of METU-BIN team. We are happy to share this, and see what you got out of 15. :)
You can send us your results, we'll be gladly sharing them.