88 eBookConfig . peerMOde = "async" ;
99</ script >
1010
11- < h2 > Peer Instruction Question (Async)</ h2 >
12- < div id ="imessage "> </ div >
11+ < h2 > Peer Instruction Question (After Class)</ h2 >
12+ < div id ="imessage ">
13+ < p > This page is meant for you to use < i > after</ i > the inclass peer instruction is over.
14+ < ol >
15+ < li > Answer the question as best you can.</ li >
16+ < li > Then, in the space provided write a justification for your answer.</ li >
17+ < li > Read the dialog between two of your peers on why they answered the question the way they did.</ li >
18+ < li > Answer the question < strong > again.</ strong > Even if you are not changing your answer from the first time.</ li >
19+ </ ol >
20+ </ p >
21+ </ div >
1322
1423< div class ="row ">
1524 < div class ="oneq col-md-6 "> {{=XML(current_question['htmlsrc'])}}</ div >
@@ -34,7 +43,7 @@ <h4>A discussion for you to consider</h4>
3443 < form action ="/peer/peer_async ">
3544 < input type ="hidden " name ="assignment_id " value ="{{=assignment_id}} " />
3645 < input type ="hidden " name ="question_num " value ="{{=nextQnum}} " />
37- < button type ="submit "> Next Question</ button >
46+ < button type ="submit " onclick =" return checkVoteCount() " > Next Question</ button >
3847 </ form >
3948</ div >
4049
@@ -46,9 +55,18 @@ <h4>A discussion for you to consider</h4>
4655 setTimeout ( connect , 1000 ) ;
4756 } ) ;
4857 var studentVoteCount = 1 ;
58+ var vote2done = false ;
4959 var nextQuestionNumber = { { = nextQnum} } ;
5060 var assignId = '{{=assignment_id}}'
5161
62+ function checkVoteCount ( ) {
63+ if ( studentVoteCount < 2 ) {
64+ alert ( "You must vote twice before moving on" ) ;
65+ return false ;
66+ }
67+ return true ;
68+ }
69+
5270 // this cannot happen until the event that indicates components are loaded
5371 $ ( document ) . on ( "runestone:login-complete" , function ( ) {
5472 logPeerEvent ( {
0 commit comments