-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundationsJS.html
64 lines (54 loc) · 2.57 KB
/
foundationsJS.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foundations JS | TOP Exercises</title>
<script src="foundationsJS.js" defer></script>
<style>
ul {
list-style: none;
}
.stationCode {
font-family:'Courier New', Courier, monospace;
}
.theoremPara {
margin-left: 10%;
margin-right: 10%;
}
</style>
</head>
<body id="site-body">
<header class="site-header">
<h1 id="site-title">Testing My JS Skills: Strings</h1>
</header>
<!-- To Do: place form in unordered list -->
<form action="" id="contact-form" method="post">
<label for="name" name="contact-name">Name:</label><input value="First and last name." type="text" id="name"><br>
<label for="email" name="contact-email">Email:</label><input value="Valid email only." type="email" id="email"><br>
<label for="message" name="contact-message"></label><textarea id="message" name="contact-message" cols="30" rows="10" >50 characters or less.</textarea><br>
<button id="submit-btn" type="submit" value="">Submit</button>
<!-- <input type="button" name="Contact Lester" value="Submit Form"> -->
</form>
<div id="examReport"></div>
<div id="pythagTheorem">
<p>This is a simple funciton that calculates the hypotenuse based on the Pythagorean theorem employing a javascript string template to output the text and a built-in math function:</p>
<p>From <em>Strings 4</em> at <a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_Strings#strings_4">Test you skills: Strings</a> on the <strong>MDN Javascript First Steps</strong> web development tutorial.</p>
</div>
<div id="holiday-greetings">Below are my holiday greetings.</div>
<!-- <div id="train-lines">Below are stops on the Leeds/Manchester/Liverpool line.</div> -->
<p id="contentSectionID">This is the contentSectionID 
 paragraph.</p>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent">MDN Node text.Content</a></li>
<li><a
href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Useful_string_methods#fixing_capitalization">MDN
Fixing Capitalization</a>
</li>
</ul>
<div id="train-lines">Below are stops on the Leeds/Manchester/Liverpool line.</div>
<p id="para">JS injection here ... <span id="demo">But this won't show up.</span></p>
<p><span class="whatevs"></span></p>
<p class="return-array"></p>
</body>
</html>