Debian Codegraph @

texmf-dist/doc/latex/interactiveworkbook/epsfiles/popupsubmit.eps

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 % POPUP SUBMIT BUTTON
4 %
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 %!PS-Adobe-3.0 EPSF-3.0
7 %%BoundingBox: 0 0 90 30
8 %%EndProlog
9 [
10 /T (Popup_Submit_Button)
11 /Rect [0 0 90 30]
12 /Subtype /Widget
13 /F 4
14 /FT /Btn
15 /Ff 65540
16 /H /P
17 /AP << /N {Submit_Up} /D {Submit_Down} >>
18 /Action <<
19 /Subtype /JavaScript
20 /JS(
21 this.pageNum = 0;
22 var isRight = true;
23 var undefined;
24
25 function adjustIsRight\(inAnswerName, inCorrectName\) {
26 var theAnswerField = this.getField\(inAnswerName\);
27 var theCorrectField = this.getField\(inCorrectName\);
28 if \( theAnswerField != undefined \) {
29 if \( theAnswerField.value != theCorrectField.value \) { isRight = false; }
30 }
31 }
32
33 for \(theCount = 1; theCount < 6; theCount++\) {
34 if \( "pageonepopup"+theCount != undefined \)
35 adjustIsRight\("pageonepopup"+theCount, "popupanswer"+theCount\);
36 }
37
38 if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; }
39 )
40 >>
41 /ANN pdfmark
42 %%EOF