summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps
Initial commit
Diffstat (limited to 'macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps')
-rw-r--r--macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps45
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps b/macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps
new file mode 100644
index 0000000000..ced008274f
--- /dev/null
+++ b/macros/latex/contrib/interactiveworkbook/epsfiles/checksubmit.eps
@@ -0,0 +1,45 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% CHECK SUBMIT BUTTON: COMPARE "GUESSED" QUESTION TAKER ANSWER WITH
+% "CORRECT" QUESTION GIVER ANSWER AND
+% THEN GO TO CORRECT RESPONSE (PAGE 1) OR
+% INCORRECT RESPONSE PAGE (PAGE 2) , ACCORDINGLY
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 0 0 90 30
+%%EndProlog
+[
+ /T (Check_Submit_Button)
+ /Rect [0 0 90 30]
+ /Subtype /Widget
+ /F 4
+ /FT /Btn
+ /Ff 65540
+ /H /P
+ /AP << /N {Submit_Up} /D {Submit_Down} >>
+ /Action <<
+ /Subtype /JavaScript
+ /JS(
+ this.pageNum = 0;
+ var isRight = true;
+ var undefined;
+
+ function adjustIsRight\(inAnswerName, inCorrectName\) {
+ var theAnswerField = this.getField\(inAnswerName\);
+ var theCorrectField = this.getField\(inCorrectName\);
+ if \( theAnswerField != undefined \) {
+ if \( theAnswerField.value != theCorrectField.value \) { isRight = false; }
+ }
+ }
+
+ for \(theCount = 1; theCount < 6; theCount++\) {
+ if \( "pageonecheck"+theCount != undefined \)
+ adjustIsRight\("pageonecheck"+theCount, "checkanswer"+theCount\);
+ }
+
+ if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; }
+ )
+ >>
+/ANN pdfmark
+%%EOF