Repository navigation
Expand file tree
/
Copy pathexampleJS.html
More file actions
99 lines (87 loc) · 2.93 KB
/
Copy pathexampleJS.html
File metadata and controls
99 lines (87 loc) · 2.93 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A sample website for student development">
<meta name="author" content="Ruth Lamprecht, Ph.D.">
<title>CIS 265 - Example JS</title>
<link rel="icon" href="images/AmboxGlobe.png" >
<link href="styles/main.css" rel="stylesheet" >
<script type="text/javascript" src="javascript/navigation.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<link href="styles/hangman.css" rel="stylesheet" >
<script type="text/javascript" src="javascript/hangman.js" defer></script>
</head>
<body>
<!-- SITENAME SECTION -->
<div class="sitename">CMSCI 256 <em>Software Development</em></div>
<!-- END SITENAME SECTION -->
<!-- NAV SECTION -->
<nav id="navbar" class="topnav">
<button class="icon" onclick="navClick()"><i class="fa fa-bars"></i></button>
<ul id="navlist">
<li><a href="index.html">HOME</a></li>
<li><a href="milestones.html">MILESTONES</a></li>
<li><a href="grading.html">GRADING</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="about.html">ABOUT</a></li>
<li><a class="active" href="exampleJS.html">JS</a></li>
</ul>
</nav>
<!--END NAV SECTION -->
<!--TITLE SECTION-->
<header class="sub-head">
<h1 class="sub-first"><i class="fas fa-gamepad fa-2x"></i> Having Fun with JavaScript</h1>
<h2 class="sub-second">This page has a simple JavaScript hangman game.</h2>
</header>
<!--END TITLE SECTION-->
<!--MAIN SECTION-->
<main id="main">
<section class="main-block">
<article class="blockGreen">
<h3><i class="fa fa-laptop fa-2x"></i> Game Source</h3>
<p> Author: Cathy Dutton<br>
Link: <a href="https://codepen.io/cathydutton/pen/JjpxMm" target="_blank">codepen.io</a>
</p>
</article>
<article class="blockYellow">
<h3><i class="fa fa-book fa-2x"></i> Game Rules</h3>
<p>Click on a letter box to make a guess</p>
</article>
<article class="blockRed">
<h3><i class="fa fa-bullhorn fa-2x"></i> Solution</h3>
<p id="solution">??</p>
</article>
</section>
<section class="main-block">
<article class="blockBorder">
<h4>Letters</h4>
<div id="letters"></div>
<button id="reset">Play again</button>
</article>
<article class="blockBorder">
<h4>Chosen Category</h4>
<p id="categoryName"></p>
<hr>
<h3>Secret Word</h3>
<div id="hold"></div>
<hr>
<h4>Clue</h4>
<p id="clue"></p>
<button id="hint">Hint</button>
</article>
<article class="blockBorder">
<h3>Lives</h3>
<p id="mylives"></p>
<hr>
<canvas id="stickman" width="200">This Text will show if the Browser does NOT support HTML5 Canvas tag</canvas>
</article>
</section>
</main>
<!--END MAIN SECTION-->
<!--FOOTER SECTION -->
<footer id="footer">2025 Spring Semester | CMSCI 256</footer>
<!-- END FOOTER SECTION -->
</body>
</html>