[system] / trunk / pg / macros / PG.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PG.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3520 Revision 3539
179# $main::QUIZ_PREFIX = '' unless defined($main::QUIZ_PREFIX) 179# $main::QUIZ_PREFIX = '' unless defined($main::QUIZ_PREFIX)
180 180
181 if ($main::envir{displayMode} eq 'HTML_jsMath') { 181 if ($main::envir{displayMode} eq 'HTML_jsMath') {
182 my $prefix = ""; 182 my $prefix = "";
183 if (!$main::envir{jsMath}{reportMissingFonts}) { 183 if (!$main::envir{jsMath}{reportMissingFonts}) {
184 $prefix .= '<SCRIPT>function NoFontMessage() {}</SCRIPT>'; 184 $prefix .= '<SCRIPT>noFontMessage = 1</SCRIPT>';
185 } elsif ($main::envir{jsMath}{missingFontMessage}) { 185 } elsif ($main::envir{jsMath}{missingFontMessage}) {
186 $prefix .= 186 $prefix .= '<SCRIPT>missingFontMessage = "'.$main::envir{jsMath}{missingFontMessage}.'"</SCRIPT>';
187 '<SCRIPT>'.
188 ' function NoFontMessage() {'.
189 ' document.writeln(\'<DIV CLASS="noFontMessage">'.
190 $main::envir{jsMath}{missingFontMessage}.'</DIV>\');'.
191 ' }' .
192 '</SCRIPT>';
193 } 187 }
194 $STRINGforOUTPUT = 188 $STRINGforOUTPUT =
195 $prefix . 189 $prefix .
196 '<SCRIPT SRC="'.$main::envir{jsMathURL}.'"></SCRIPT>' . "\n" . 190 '<SCRIPT SRC="'.$main::envir{jsMathURL}.'"></SCRIPT>' . "\n" .
197 '<NOSCRIPT><CENTER><FONT COLOR="#CC0000">' . 191 '<NOSCRIPT><CENTER><FONT COLOR="#CC0000">' .
198 '<B>Warning: the mathematics on this page requires JavaScript.<BR>' . 192 '<B>Warning: the mathematics on this page requires JavaScript.<BR>' .
199 'If your browser supports it, be sure it is enabled.</B>'. 193 'If your browser supports it, be sure it is enabled.</B>'.
200 '</FONT></CENTER><p></NOSCRIPT>' . 194 '</FONT></CENTER><p></NOSCRIPT>' .
201 $STRINGforOUTPUT; 195 $STRINGforOUTPUT;
196 $STRINGforOUTPUT .=
197 '<SCRIPT>jsMath.Setup.Script("plugins/noImageFonts.js")</SCRIPT>'
198 if ($main::envir{jsMath}{noImageFonts});
202 } 199 }
203 200
204 $STRINGforOUTPUT = '<SCRIPT SRC="'.$main::envir{asciimathURL}.'"></SCRIPT>' . "\n" . 201 $STRINGforOUTPUT = '<SCRIPT SRC="'.$main::envir{asciimathURL}.'"></SCRIPT>' . "\n" .
205 '<SCRIPT>mathcolor = "black"</SCRIPT>' . $STRINGforOUTPUT 202 '<SCRIPT>mathcolor = "black"</SCRIPT>' . $STRINGforOUTPUT
206 if ($main::envir{displayMode} eq 'HTML_asciimath'); 203 if ($main::envir{displayMode} eq 'HTML_asciimath');

Legend:
Removed from v.3520  
changed lines
  Added in v.3539

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9