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

View of /trunk/pg/macros/source.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6248 - (download) (as text) (annotate)
Fri May 14 01:17:21 2010 UTC (9 years, 6 months ago) by gage
File size: 549 byte(s)
major update which adds objective methods to the basic code of PG.
HEAD should be considered more beta than usual for a few days until minor glitches
are shaken out.
new modules needed:

PGcore PGalias PGresource PGloadfiles PGanswergroup PGresponsegroup  Tie::IxHash

    1 if ($displayMode =~ m/HTML/ && !defined($_slides_loaded)) {
    2   TEXT(
    3      '<DIV ID="source_button" STYLE="float:right; margin-right:2em">'
    4     .  '<SCRIPT>function showSource () {'
    5     .  '  window.open("'.$htmlURL."show-source.cgi/$probFileName".'","ww_source");'
    6     .  '}</SCRIPT>'
    7     .  '<INPUT TYPE="button" VALUE="Show Problem Source" ONCLICK="showSource()">'
    8     .'</DIV>'
    9   );
   10 }
   11 
   12 sub NoSourceButton {
   13 #  if ($displayMode =~ m/HTML/) {
   14 #    TEXT('<SCRIPT>document.getElementById("source_button").style.display = "none"</SCRIPT>');
   15 #  }
   16 }
   17 
   18 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9