-
Notifications
You must be signed in to change notification settings - Fork 0
/
madlibs.html
54 lines (49 loc) · 2 KB
/
madlibs.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
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/madlibs.css" rel="stylesheet" type="text/css">
<script src="js/jquery-3.2.1.js"></script>
<script src="js/madlibs.js"></script>
<title>A fantastical adventure</title>
</head>
<body>
<div class="container">
<h1>Fill in the blanks to write your story!</h1>
<div id="blanks">
<form>
<div class="form-group">
<label for="person1">A name</label>
<input id="person1" class="form-control" type="text">
</div>
<div class="form-group">
<label for="person2">Another name</label>
<input id="person2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="animal">An animal</label>
<input id="animal" class="form-control" type="text">
</div>
<div class="form-group">
<label for="exclamation">An exclamation</label>
<input id="exclamation" class="form-control" type="text">
</div>
<div class="form-group">
<label for="verb">A past tense verb</label>
<input id="verb" class="form-control" type="text">
</div>
<div class="form-group">
<label for="noun">A noun</label>
<input id="noun" class="form-control" type="text">
</div>
<button type="submit" class="btn">Show me the story!</button>
</form>
</div>
<div id="story">
<h1>A fantastical adventure</h1>
<p>One day, <span class="person1"></span> and <span class="person2"></span> were walking through the woods, when suddenly a giant <span class="animal"></span> appeared. "<span class="exclamation"></span>", <span class="person1"></span> cried. The two
of them <span class="verb"></span> as quickly possible, and when they were safe, <span class="person1"></span> and <span class="person2"></span> gave each other a giant <span class="noun"></span>.</p>
</div>
</div>
</body>
</html>