summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/interactiveworkbook/epsfiles/popupsubmit.eps
blob: 808b722d45d33b1c68cd7dd0a501782c07249dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  POPUP SUBMIT BUTTON
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 90 30
%%EndProlog
[
    /T (Popup_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 \( "pageonepopup"+theCount != undefined \)
                    adjustIsRight\("pageonepopup"+theCount, "popupanswer"+theCount\);
            }

            if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; }
        )
    >>
/ANN pdfmark
%%EOF