Changeset 14733 for misc/runpugs/data

Show
Ignore:
Timestamp:
11/13/06 11:07:04 (2 years ago)
Author:
andara
Message:

[runpugs]
-Added POD
Please test the runpugs devel version:
interactive: http://feather.perl6.nl:8080/cgi-bin/runpugs2
non-interactive: http://feather.perl6.nl:8080/cgi-bin/runpugs2?ia=0

Location:
misc/runpugs/data
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • misc/runpugs/data/runpugs.html

    r14512 r14733  
    2727<div id="mainwindow"> 
    2828<h1>Run Perl 6 now -- in your browser!</h1> 
    29 <p>This live web terminal runs the <a href="http://www.pugscode.org">pugs</a> interpreter for <a 
    30 href="http://dev.perl.org/perl 6/">Perl 6</a>. For more details, read the <a 
    31 href="http://feather.perl6.nl/~andara/runpugs/">info page</a>. 
    32 </p> 
    33 <p>By default, the Pugs session will use the <a 
    34 href="http://search.cpan.org/search?query=perl6%3A%3Apugs&mode=module">latest 
    35 release</a>. To use the latest development snapshot, change the setting 
    36 below.</p> 
    3729 
    3830<form id="term" name="terminal" action="/cgi-bin/runpugs" method="POST">                   
    39                                 
    4031<input type="hidden" name="testing" value="_TESTING_"> 
    4132<input type="hidden" name="sessionid" value=""> 
    4233<input type="hidden"    name="action" value="runpugs"> 
    43 <!--<fieldset>--> 
     34<h2>Interactive Pugs Session</h2> 
     35<!-- _MOTD_ --> 
    4436<input type="radio" id="rel" value="0" name="reldev" _REL_ ><label 
    45 for="rel">Release</label>&nbsp;&nbsp; 
    46 <input type="radio" id="dev" value="1" name="reldev" _DEV_ ><label for="dev">Development</label> 
    47 <!--</fieldset>--> 
    48 <h2>Interactive Pugs Session</h2> 
    49 <!--<textarea id="history" name="history"  rows="1" cols="1" 
    50 style="overflow: hidden; border: 0px; width: 0px; 
    51 font-size:0px">_CMD_</textarea>--> 
    52 <!--<label for="cmd">Interactive Pugs Session<br>--> 
    53 <textarea id="cmd" name="cmd" rows="24" cols="80" wrap="virtual" onKeyPress="return submitenter(this,event)"> 
     37for="rel">Release version</label>&nbsp;&nbsp; 
     38<input type="radio" id="dev" value="1" name="reldev" _DEV_ ><label 
     39for="dev">Development version</label> 
     40<div id="termwindow"> 
     41<textarea id="cmd" name="cmd" rows="23" cols="80" wrap="virtual" onKeyPress="return submitenter(this,event)"> 
    5442pugs&gt;&nbsp; 
    5543</textarea> 
    56 <!--</label>--> 
    57 <br> 
     44</div> 
    5845<input id="enter" type="submit" value="Submit">&nbsp;&nbsp;&nbsp; 
    5946</form> 
    6047<script language="JavaScript"> 
    6148document.terminal.enter.style.display='none'; 
    62 document.terminal.cmd.focus() 
     49document.terminal.cmd.focus(); 
     50document.terminal.cmd.scrollTop =document.terminal.cmd.scrollHeight; 
    6351</script> 
     52<p>This live web terminal runs the <a href="http://www.pugscode.org">Pugs</a> interpreter for <a 
     53href="http://dev.perl.org/perl 6/">Perl 6</a>. Please <a 
     54href="http://feather.perl6.nl/~andara/runpugs/">read the documentation</a>. 
     55</p> 
    6456<p class="copyright">&copy; Copyright 2006 by Wim Vanderbauwhede</p> 
    6557</div> 
  • misc/runpugs/data/runpugs2.html

    r14512 r14733  
    2525function select_enter() 
    2626{ 
     27/* _SKIPC_ 
    2728document.terminal.cmdline.value=document.terminal.hist.options[document.terminal.hist.selectedIndex].value; 
    2829document.terminal.hist.selectedIndex=0; 
    2930document.terminal.cmdline.focus(); 
     31_SKIPC_ */ 
     32/* _SKIPT_ 
     33document.terminal.cmd.value+=document.terminal.hist.options[document.terminal.hist.selectedIndex].value; 
     34document.terminal.hist.selectedIndex=0; 
     35document.terminal.cmd.focus(); 
     36_SKIPT_ */ 
    3037} 
    3138 
     
    5057<div id="mainwindow"> 
    5158<h1>Run Perl 6 now -- in your browser!</h1> 
     59<!-- 
    5260<p>This live web terminal runs the <a href="http://www.pugscode.org">pugs</a> interpreter for <a 
    53 href="http://dev.perl.org/perl 6/">Perl&nbsp;6</a>. For more details, read the <a 
    54 href="http://feather.perl6.nl/~andara/runpugs/">info page</a>. 
     61href="http://dev.perl.org/perl 6/">Perl&nbsp;6</a>. Please <a 
     62href="http://feather.perl6.nl/~andara/runpugs/">read the documentation</a>. 
    5563</p> 
    56 <p>By default, the Pugs session will use the <a 
    57 href="http://search.cpan.org/search?query=perl6%3A%3Apugs&mode=module">latest 
    58 release</a>. To use the latest development snapshot, change the setting 
    59 below.</p> 
    60                                 
     64   -->                             
    6165<form id="term" name="terminal" action="/cgi-bin/runpugs2" method="POST">                   
    6266<input type="hidden" name="prompt" value="_PROMPTW_"> 
     
    6569<input type="hidden"    name="action" value="runpugs"> 
    6670<input type="radio" id="rel" value="0" name="reldev" _REL_ ><label 
    67 for="rel">Release</label>&nbsp;&nbsp; 
    68 <input type="radio" id="dev" value="1" name="reldev" _DEV_ ><label for="dev">Development</label> 
     71for="rel">Release version</label>&nbsp;&nbsp; 
     72<input type="radio" id="dev" value="1" name="reldev" _DEV_ ><label 
     73for="dev">Development version</label> 
     74<!-- 
    6975<br><br> 
    7076<span class="tabon">Interactive Pugs Session</span> 
    7177&nbsp;&nbsp;<a class="taboff" href="/cgi-bin/runpugs2?ia=0">Run a Perl 6 Script</a> 
     78--> 
    7279<div id="termwindow"> 
    7380<select name="history" id="hist" onChange="select_enter()"> 
     
    7683</select> 
    7784<br> 
     85<!-- _SKIPT_ 
     86<textarea id="cmd" name="cmd" rows="20" cols="80" wrap="virtual" 
     87onKeyPress="return submitenter(this,event)"> 
     88_ALL_ 
     89</textarea> 
     90_SKIPT_ --> 
     91<!--_SKIPC_ 
    7892<textarea readonly id="output" name="output" rows="_NROWS_" cols="80" wrap="virtual"> 
    7993_REPLYW_ 
     
    86100onKeyPress="return submitenter(this,event)"> 
    87101</label> 
     102_SKIPC_ -->  
    88103</div> 
    89 <br> 
    90104<input id="enter" type="submit" value="Submit">&nbsp;&nbsp;&nbsp; 
    91105</form> 
    92106<script language="JavaScript"> 
    93107document.terminal.enter.style.display='none'; 
    94 document.terminal.cmdline.focus() 
    95 document.terminal.output.scrollTop =document.terminal.output.scrollHeight; 
    96 if (document.terminal.output.rows==1) { 
     108document.terminal.cmdline.focus() // _SKIPT_ 
     109document.terminal.cmd.focus() // _SKIPC_ 
     110document.terminal.output.scrollTop =document.terminal.output.scrollHeight; // _SKIPT_ 
     111document.terminal.cmd.scrollTop =document.terminal.cmd.scrollHeight; // _SKIPC_ 
     112//if (document.terminal.output.rows==1) { 
    97113//document.terminal.output.style.height="2ex"; 
    98 } 
     114//} 
    99115</script> 
     116<p>This live web terminal runs the <a href="http://www.pugscode.org">pugs</a> interpreter for <a 
     117href="http://dev.perl.org/perl 6/">Perl&nbsp;6</a>. Please <a 
     118href="http://feather.perl6.nl/~andara/runpugs/">read the documentation</a>. 
     119</p> 
    100120<p class="copyright">&copy; Copyright 2006 by Wim Vanderbauwhede</p> 
    101121</div>