Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<h2>
Getting so good at Javascript!
</h2>
<p id="intro" >
This is an assignment/exercise which will review our skills in functions, if statements, switches, and accessing the DOM. Leave this text here at the top, but you may need to create more HTML below that will collect your input. You will need to research a few additional topics on your own. I'll help.
</p>
<button class="btn" onclick="hide('#intro')">Hide Intro Paragraph</button>
<form>
<div class="input-section">
<label class="input-label">Age 1</label>
<input class="input" name="age1" type="text" maxlength="512" placeholder="Input Age 1">
</div>
<div class="input-section">
<label class="input-label">Age 2</label>
<input class="input" name="age2" type="text" maxlength="512" placeholder="Input Age 1">
</div>
<div class="input-section">
<label class="input-label">Age 3</label>
<input class="input" name="age3" type="text" maxlength="512" placeholder="Input Age 3">
</div>
<button class="btn" onclick="calculateAges()" type="button">Average Ages</button>
</form>
<p id="average-age"></p>
<form>
<div class="input-section">
<label class="input-label">String for lowercase</label>
<input class="input" name="lowercase" type="text" maxlength="512" placeholder="Input string">
</div>
<button class="btn" onclick="getLowerCase()" type="button">Lowercase String </button>
</form>
<p id="lowercase-ans"></p>
<form>
<div class="input-section">
<label class="input-label">Letter Grade</label>
<input class="input" name="lettergrade" type="text" maxlength="512" placeholder="Input letter grade">
</div>
<button class="btn" onclick="getLetterGrade()" type="button">Get Grade</button>
</form>
<p id="grade-ans"></p>
<form>
<div class="input-section">
<label class="input-label">Color</label>
<input class="input" name="color" type="text" maxlength="512" placeholder="Input background color">
</div>
<button class="btn" onclick="getBackgroundColor()" type="button">Change Background</button>
</form>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body>
</html>